General :: Figure Out How To Write An Awk Script
Jul 5, 2011
I am trying to figure out how to write an awk script(or something better if it exists) to read a text file that contains lines like below.
4517-s-1295546289-10:58:09-2011-01-20.wav | 19990 KiB | 2940.5 KiB/s | binary | 100%
4517-s-1303247233-15:07:13-2011-04-19.wav | 167 KiB | 2918.3 KiB/s | binary | 100%
4517-s-1301431748-14:49:08-2011-03-29.wav | 36220 KiB | 2589.3 KiB/s | binary | 100%
4517-s-1295974735-09:58:55-2011-01-25.wav | 20038 KiB | 2646.0 KiB/s | binary | 100%
4517-s-1295648478-15:21:18-2011-01-21.wav | 45561 KiB | 2154.1 KiB/s | binary | 100%
4517-s-1300384178-11:49:38-2011-03-17.wav | 6752 KiB | 2216.0 KiB/s | binary | 100%
I want to find lines that start with 4517-s and end with 100% and delete them from a directory.
View 14 Replies
ADVERTISEMENT
Mar 1, 2011
i have an old system. I am total layman in reading motherboards and chipsets. is there anyway in any linux distro, which can tell me what kind of sound card i have so i can search and install it ? Basically i am concerned about finding what sound card i have in my system
View 4 Replies
View Related
Feb 24, 2011
Very simple question but I cant proceed without thWhat is this symbol 'and how do I type it? I tried google but dont really know to search for it.I'm trying to type in:Quote:
cat > ~/.bash_profile << "EOF"
exec env -i HOME=$HOME TERM=$TERM PS1='u:w$ ' /bin/bash
EOF
View 6 Replies
View Related
Mar 6, 2010
i have been trying to figure out wine and iso mounting for like 3 days i need a step by step guide on how to do this the things i need to mount are in /home/patches/downloads/diablo 2 full game with expansion and thats the folder in which the iso files are in and first i need to mount "diablo 2 install disk.iso" and im using linux helena or thats what it's called on the boot menu
View 7 Replies
View Related
Feb 4, 2011
Somebody deleted a folder from /opt, now how I to know who did it? should I login to every user from root and check the history? or there is better and easy solution?
View 11 Replies
View Related
Mar 12, 2010
I just downloaded a new app(vrs call logging) which doesn't work very well. I'm just trying to figure out how to properly remove the program. I've drilled down to the "uninstall.sh" but it will not run the uninstall program.
View 6 Replies
View Related
Feb 17, 2010
I want to write a shell script which will simultaneously collect OS user information and write in an individual text files.Can anyone tell me the syntax of the script.N.B. The user name will be mentioned in an array within the shell script.
View 8 Replies
View Related
Jan 3, 2011
I�m kind of newbie trying to figure out a LAMP setup that will require as little maintenance as possible, and still be reasonable secure and maintained.After lots of googeling i think CentOs 5.x looks nice, the only problem is that i need PHP5.2.13 or later.If i add it from some 3 rd party repository it looks easy to install but what happens when there is security patches needed etc?I don�t like the idea of compiling it myself, I would probably get it running but there is always lots of do and donts that im unaware about to get it �right� not only �running�.
View 1 Replies
View Related
Jul 19, 2011
I think I can do it by brute force with a crontab entry for each of the 15 days at a time, but I'm not even sure I know how to do that.I'm trying to automate a process I do manually every day. That is, I execute the same command every day for 15 days running, manually changing the filename of the file by 1 each time, i.e. file.1.dmp, file.2.dmpThen after I reach the end of 15 days, I start again changing the filename being written back to the name of the first file I created 15 days ago. This overwrites the 15 files one a day for 15 days. That is, after I create the file.15.dmp, I (manually) change the name of the file being created back to file.1.dmp again.
I realize that this may not be descriptive enough to help me with getting an answer. I don't know how else to explain it. I'd be more than glad to fill in any details I've missed.I've thought about using a for loop, but it's been so long since I've had to do any programming I hesitate to go down that path. I've though about using the current date variable to change the filename, but how do I reset the script to start again after 15 days?The point of my exercise is to have a rolling backup/dump file for 15 days that I can restore from if needed.
View 7 Replies
View Related
Dec 14, 2010
open and run pivot stick figure animator?
View 1 Replies
View Related
Jan 31, 2010
I am just starting out in LINUX and I know the basic commands but I am a having a problem. I scoped the man pages but I can't get it. Maybe one of know... Can anyone tell me the cmd to figure out the system a file was created on? I just can't figure out this problem.
View 6 Replies
View Related
Mar 12, 2011
i am trying to install imageos on my old laptop buti can not figure out the password. i have tried a ton of them,
View 1 Replies
View Related
Jun 30, 2011
I'm a total newbie in Linux, so patience I've managed to get Ubuntu up and running and love it so much I want to wipe out my Windows XP partition. (Right now I boot from startup and choose Ubuntu.)But when I open up Gparted it only shows me one "host" partition, a ntfs file system, and no reference to linux anywhere. More troubling, I cannot figure out how to "unmount" the partition. I've tried to boot from a CD unsucessfully, not sure why, but can't get the download to unzip, I think. Sorry, I said I'm a newbie.
View 7 Replies
View Related
Apr 29, 2011
I'm attempting to put together a 'nice' front-end for a set of image deployment scripts I've written. I'm running in to two different issues that I'm sure are related, but I can't quite figure out what the cause is. I am populating a variable with information from several text files to form my tag, string and default state for a dialog statement...
Code:
for dir in /tmp/apps/* ; do
APPMENU="$APPMENU $(echo $dir | sed 's//tmp/apps///') $(cat $dir/info)"
An example of the contents of /tmp/apps/office/info:
Code:
'Microsoft Office Enterprise' 'on'
The result of echo $APPMENU:
[Code]...
Does anyone have any idea what I should check for? Is there's a specific quoting method I need? In a Bash script I'm pulling quoted text from a file with cat then writing that same string (hopefully quoted!) to a variable. I have a single set of hard quotes (') in my text files presently.
View 1 Replies
View Related
Jan 31, 2011
I have a Red Had EL5 server. Free -m shows total mem: 3042 and used mem: 2903. However, when I run a top or ps, there's barely anything using any memory. how I can identify what is using all this memory?
View 2 Replies
View Related
Jan 31, 2011
solve the following problem...mtrr: type mismatch for c0000000,10000000 old: write-back new: write-combiningThis i am getting many lines in DMESG.
View 10 Replies
View Related
Nov 17, 2009
Ive installed Gaussian '03 on fedora Core 10, but I'm unable to run it. It aborts and i get the following error
Code:
Erroneous write during file extend. write -1 instead of 4096
Probably out of disk space.
Write error in NtrExt1
View 3 Replies
View Related
Feb 11, 2010
i think this is not the right place for this post, but i can not figure out how to post a bug. i am talking about the permissions of: /tmp/orbit-root. please don't tell me now "don't" log in as root if you once login as user root from the login screen the permissions of /tmp/orbit-root are set to: drwx root but if log out the permissions are not set back / or the entry will be deleted. this will end for the next login as a normal user that you will get a bulp of error messages. easy to reproduce. this is not a feature - it's a bug.
View 1 Replies
View Related
Jun 15, 2010
I've been troubled by the high amount of RAM that is used by my Ubuntu desktop. Before I installed Ubuntu 10.04 (desktop, 64-bit) my system used around 500MB of RAM when no applications were open (just cold boot into the GNOME under 9.10). But when I installed Lucid, I've noticed that my used memory is now reported as 1GB or more as soon as I log into the system.
I want to figure out what is using all the extra RAM but I can't seems to find the culprit. I looked at all of the processes and numbers just don't add up. I exported the list of processes into a file and summed up the memory used by every process in a spreadsheet. The total came to around 700MB. Yet, both System Monitor and "free" reported the time that system was using over 1GB of memory. This means that at least 300MB of RAM are used but not by any process, at least as reported by "ps".
View 9 Replies
View Related
Jul 22, 2010
i am trying to learn though i have a powercolor ATI radeon hd 5570 video card and i have never installed one in a pc with ubuntu having trouble figuring out how to get drivers.
View 3 Replies
View Related
Sep 3, 2010
[URL]I can't get it going.
View 8 Replies
View Related
Jan 7, 2011
I made a bootable usb drive that I would like to test on my sony viao laptop. I cannot seem to figure out how to get into the bios so I could set it to boot from the usb. I tried pressing F10 and F12 while booting but these were all guesses as I do not know which key combination is used to go to bios on this machine.
View 9 Replies
View Related
Apr 16, 2011
I know this has been asked, but I can't seem to figure out which answer will work for me.I'm not a programmer. I am an experienced computer user, and have been using 10.04 for about 6 months.I rarely use my Vista OS, and have to sit with my computer as it boots up, so I can select Ubuntu during the process.Vista was on the machine when I installed 10.04, but I would really like it (10.04) to boot first.
View 4 Replies
View Related
Nov 29, 2010
I installed slackware 13.1 (64) but I didn't install kde because I am using fluxbox. Now I would like to install k3b. I have gslapt installed but there are no dependencies listed. The k3b website says that kde is a requirement but that can't be true. find the dependencies of the official slackware package. The slackware book does not seem to have that information.
View 14 Replies
View Related
Mar 23, 2010
I cannot figure out how to install Flash on Fedora 12. Which is the best option for downloading and where is a good tutorial on how to "unpackage" something?
View 1 Replies
View Related
Mar 30, 2010
i'm new to opensuse and i'm liking it so far. I was trying to figure out how to play avi,mp4's and dvd's. I have accomplished to get an avi working in totem but not in banshee or mplayer or kaffeine. I can't seem to get the mp4 player playing or a dvd. All media players come up with an error, whether for a missing codec or no video out.
View 8 Replies
View Related
Dec 25, 2010
My computer has a much bigger hard drive than 11 gb but that is all I have access to when I transfer files using an external hd -- can anybody set me straight as to what I did wrong installing dual boot ubuntu 10.10 on my windows 7 machine?
View 1 Replies
View Related
May 21, 2011
I've been searching and searching trying to figure out how to get ubuntu to connect to ad-hoc connections and just can't figure it out. Can anyone help me out with this?I have the Droid 2 Global and I use "wifi tether" and it works for getting internet on windows and on my 360. But I just installed ubuntu and can not get it to connect.
View 6 Replies
View Related
Mar 20, 2011
I know you've probably seen this type of request numerous times, but I just can't get it right.Objective: to get to grips with Linux network routers.Problem: Cannot ping across the router.On the router itself, I can ping to clients on ether side.Server: Ubuntu 10.10NIC1: connects to home broadband router. Static IP address. Eth1 has no problem pinging outside world.NIC2: Static IP address. This NIC is configured for DHCP server and will have a home machine or two connected to it assigned IP addresses from the DHCP server.Set ip forwarding from 0 to 1
/etc/sysctl.conf
net.ipv4.ip_forward=1
Static assignment of IP addresses to the 2 NIC's of router.
[code]....
View 7 Replies
View Related
Mar 16, 2010
I am trying to figure out ho to setup EC2 clustering. I am seeing heartbeat as an option. I need something that will monitor the state of a daemon, and not if a daemon is running. For example, say I want httpd to be high availability. Does heartbeat monitor if httpd is not in a hung state, or does it simply do a ps -e |grep httpd? So my question is, how does heartbeat work?
View 2 Replies
View Related