Search Results

Search: Posts Made By: RobP
4,235
Posted By Ygor
Try...awk '/\/\*------/{if(b)print...
Try...awk '/\/\*------/{if(b)print b;b=$0;next}NF{b=b "^" $0}END{print b}' file1 > file2
4,235
Posted By birei
Hi RobP, One way using perl: $ cat...
Hi RobP,

One way using perl:

$ cat infile
/*------XXXXXX-------*/

owner: XXXX
location: XXXX
Comment: XXXX
Phone: XXXX

/*------XXXXXX-------*/

owner: XXXX
location: XXXX
Desc:...
1,360
Posted By Scrutinizer
The variable $state is set before the while loop,...
The variable $state is set before the while loop, but not in the loop, so it never changes
Showing results 1 to 3 of 3

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