Summary: Dear all I have an awk script as below but it just prints only to the last file when I wanted t o print all which satisfies the the "if" conditions. ...
Summary: MrJake, The part echo $var | awk '{ print substr($1,0,1) }' says to take just the first character of $var The next part | tr 'YN' 'yn' says to tran...
Summary: you could use emacs, vi, possibly joe, or others (ed is "line-oriented"), but if this is to involve doing the same thing to many files, look into sed,...
Summary: ordinarily you would just do something like this: a = system("ls * 2&1 > /dev/null"); if (a != 0) { printf "%s", "Bogus run::program failed"; } e...
Summary: huuhhuhu thanks ... but i have other problem,,, is the same, but is other,,, in this script for example: #!/bin/sh a=1 while [ $a -le 10 ]; do ...
Summary: If you have worked with c++ on the MS platform then you will need to learn to use gcc. That's about it. Most of what you know is still applicable. I...
Summary: I want to wget an html file then cut the file in a way that I can get some of the data from inside the file. I need a command that I can give it a sta...
Summary: well, here is a possible 'for' solution :) for ij in `ls *.out`; do mv $ij `echo $ij|sed s/".out$"/""/` done note the backquotes! (meaning to substi...
Summary: the typeset might help you. You could also use awk and int int(arg) Return integer value of arg. compare int(arg) to arg I hope you are asking about ...
Summary: wow! that's not a command! that's a program. what you need to do is look up info about "sed" and "awk" and "piping" (denoted by the pipe symbol: | ...
Summary: well i dont know awk and perl well but heres one possibility. (this is meta code only) NUMBER=`grep -c DAVID filename` for ((i=0;i cachefile mv cach...
Summary: i have ~100 data files which contain ~10000 rows - the files are slightly different size. each row contains various data values including a unique num...
Summary: So, this will kill all processes idled for 1 hour or more unless it's root or an su process? I just need to change HOURS to equal 1...is that correct...
Summary: I have two files...file1 looks kinda like this: tomj male painter cynthiaw female administrator ... The other (file2) looks similar to this: mikek,pai...
Summary: Is there a way to prevent updatedb and awk from running when I am right in the middle of using my system? It seems they fire up right in the middle o...
Summary: hi I'm trying to take the following line and delete and then add text to it 211.252.61.0/24 via 12.123.1.236, 7w0d i want to end up with only 211.25...
Summary: Hi there! When i exec. "uptime" i get to see the uptime of my machine on one line. How do get that information cropped so that i just displays the num...
Summary: Hi, Samba running. Here is the config file... # This is the main Samba configuration file. You should read the # smb.conf(5) manual page in order to u...
Summary: Need awk for windows..don't ask why-is there something I can use ? i have sed and strings and dosnix , but i need a real programming interface and m...
Summary: I'm just learning perl and I have a question. Can I use awk in a perl script? I tried this @s_users=`/usr/bin/last | head |awk {'print $1'}"` ; but i...
Summary: 1. How can I use grep, awk, sed or whatever to grep out a log and ignore the first 5 columns or whatever column I choose? 2. How can I use grep, awk...
Summary: Hi, I want to print out ALL the words that appears more than N times from a file call "foo.txt", this is what i got: foo.txt: a b c e g o z a g a a a ...
Summary: I have a problem with my AWK script! I would like to take a field value for every ligne in my input file and copare it to the coresponding fields in ...
Summary: You really don't need to dump it to a temp file, but use awk to cut out the second field and use command line substitution to store it in a variable #...
Summary: Help… I have a bash script and within the script I have a variable TEMP which is loaded with space-delimited text from a short c-prog. This prog alway...