Hi,
I am running a script sample.sh in bash environment .In the script i am using sed and awk commands which when executed individually from terminal they are getting executed normally but when i give these sed and awk commands in the script it is giving the below errors :-
./sample.sh: line... (12 Replies)
hi, im trying to some data but only certain ones.
like for instance "aaaaaaaaaaaaaa" "\$123 456.52"
and i would like the filtered line to be "aaaaaaaaaaaaaa" "\$123456.52"
By reading each line and finding the character $ then deleteing any spaces in between $ and the decimal.
I tried... (4 Replies)
Hey all,
Can I put sed command inside the awk action ?? If not then can i do grep in the awk action ??
For ex:
awk '$1=="174" { ppid=($2) ; sed -n '/$ppid/p' tempfind.txt ; }' tempfind.txt
Assume: 174 is string.
Assume: tempfind.txt is used for awk and sed both.
tempfind.txt... (11 Replies)
i definitely want to thank and congratulate zazzybob on becoming a moderator in record time.. ZazzyBob you definitely have skills and hopefully they will continue to grow and spread...
thanx for helping me out all those times
moxxx68 (1 Reply)
I have many messages such as the test message below:
00:00000:00021:2002/05/13 13:57:00.51 ERROR:- Test error, my test error!!!
I am writing a script in which I need to get everything from the word "ERROR:-" onwards.
I normally use awk for these things, but I am not an expert at it so i am... (6 Replies)