Search Results

Search: Posts Made By: futurelet
75,502
Posted By futurelet
BEGIN { out_file = "junk2" print "line 1"...
BEGIN {
out_file = "junk2"
print "line 1" >out_file
print "line 2" >out_file
}
10,919
Posted By futurelet
Use Awk: BEGIN { FS="\034"; RS="\035";...
Use Awk:

BEGIN { FS="\034"; RS="\035"; OFS="," }
{ gsub( /\n/, "" )
$1=$1
# If last field is empty, remove it.
if ( ""==$NF ) NF--
print
}
Showing results 1 to 2 of 2

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