Search Results

Search: Posts Made By: damanidada
10,026
Posted By chihung
awk ' BEGIN { RS="" FS="\n" } ...
awk '
BEGIN {
RS=""
FS="\n"
}
$1=="Standard" && /Visual/ {
s=$2
for (i=3 ; i<=NF ; ++i ) {
if ( $i=="Visual" ) { break }
s=sprintf("%s\n%s",s,$i)
}
}
END {
print s...
10,026
Posted By ctsgnb
awk '/Standard/,/Visual/' inputfile | awk...
awk '/Standard/,/Visual/' inputfile | awk 'END{print $(NF-1)}' RS= FS="Standard|Visual"

If running on Solaris or SunOS plateform, just use nawk or /usr/xpg4/bin/awk instead of awk
10,026
Posted By joeyg
Highlighting often does not show
Please show an examples of file
original
desired output
Showing results 1 to 3 of 3

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