Search Results

Search: Posts Made By: seanmonaco
2,100
Posted By rdrtx1
try: awk ' /^ *$/{gsub("[-]","",l);gsub("...
try:
awk '
/^ *$/{gsub("[-]","",l);gsub(" *[|] *","|",l);sub("^[|]*","",l);print l; l="";}
/, *.. [0-9][0-9]*$/ {sub(",","|"); $NF="|"$NF}
/^ *[0-9 -][0-9 -]* *$/ {gsub("[ -]","")}
{l=l $0 "|";}...
2,100
Posted By rdrtx1
also try: awk ' /^...
also try:
awk '
/^ *$/{gsub("[-]","",l);gsub(" *[|] *","|",l);sub("^[|]*","",l);print l; l="";}
/, *.. [0-9][0-9]*$/ {sub(",","|"); $NF="|"$NF}
{l=l $0 "|";}
' infile
2,100
Posted By vgersh99
nice attempt at being subliminal... nawk...
nice attempt at being subliminal...

nawk '$1=$1' RS='' OFS='|' myFile
Showing results 1 to 3 of 3

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