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.
set variable to and exec sequence
Name: tqnguyen67 Date: May 26, 2004 at 12:19:15 Pacific OS: unix CPU/Ram: 400Mhz
Comment:
Hi all;
I keep getting syntax error on this command. Would any one help?
set [ $var [ exec grep "testtime" testfile.log | sed -e "/repo/s/.*.repo//" | sed -e "/ -f/s/ -f.*.//" | sed -e "/ -DMPMD/s/ -DMPMD.*.//" | sed -e "/ -a/s/ -a.*.//" | sed -e "/ -continue/s/ -continue.*.*//" | cut -d "/" -f 2 | uniq ]]
I set the result of the exec to $var the exec sequence is a grep for a parttern and strip everything off.
Summary: Is it possible to pass a Unix environment variable to sed? The example script I have included shows what I am trying to do and the header explains why. I am running this script on Solaris KSh. #######...
Summary: I have converted a given date to julian date, done some calculations (add, subtract,etc)and have converted the result back to gregorian date - but I can not figure out how to split the result back int...
Summary: Hey guys/gals, hope someone can help with this.... I am getting the following error: "Mput_Files[4]: xc!=0: 0403-009 The specified number is not valid for this command." I believe it is being caused b...