Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
shell script /awk
Name: Mehul Date: May 19, 2003 at 17:16:05 Pacific OS: sun CPU/Ram: sun
Comment:
Hi gurus ,
I need one help in shell script i have a file which looks like this
subject: this is subject comments:this is comment Elements: /vob/puma/dos/unix/abc/file.java@@main/ddd/0 /vob/puma/dos/file.java@@main/ddd/sss/1
many line after this
I need to collect the file name with the whole path in a seperate file means i want /vob/puma/dos/unix/abc/file.java /vob/puma/dos/unix/abc/file.java
rest of all the other to be eliminated i can grep for .java but how to collect the path name also ?i donno
Summary: Hi! I'm trying to use my shell script variables in my awk-line. Is not working! month3 is my variable and i'm aware that I can't use the $-prefix in awk. awk ´$2==$month3{printf ("%16d,%14.1f\n",i+1,\...
Summary: How do i transfer the value from a shell script to awk script... for example: echo "blah.. blah.." read x echo `ls -l | awk '{if (NR=x) print $9}' i'm trying to get the value of x to be insert to the ...
Summary: Hello, I want to give back the first 3 letters of my hostname to a variable in a shell script like this principle: N=awk'{printf substr(`uname -n`,1,3) };{exit}' but so it doesn't work. I have one err...