Search Results

Search: Posts Made By: wambli
1,147
Posted By wambli
Thank you very much...
Thank you very much...
1,147
Posted By wambli
Return line when line below has the string
I have a file with data like this. I want to look for MultiLoad and pull that line and the line above. I cant use the grep -B 1 I dont have that version and cant install on the server. is there a...
2,964
Posted By wambli
awk '/comment/ {F=1} F {P=P$0} !F; F&&/;/ {print...
awk '/comment/ {F=1} F {P=P$0} !F; F&&/;/ {print P;F=0}'

sed '/^comment/,/;$/{/^[^0-9]/N;s/\n//;}'

these dont grab more than two lines and they dont work well with other items in the file. ...
2,964
Posted By wambli
Merge multiple lines to one line when line starts with and ends with
example:

comment Now_TB.table column errac is for error messages
1 - first
2 - second
3 -third ;

in this example I need to be able to grab the comment as first word and ; as the last...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 01:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy