![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Retaining spaces between words | RcR | Shell Programming and Scripting | 7 | 07-29-2008 11:29 PM |
| Retaining Spaces within a word | RcR | UNIX for Dummies Questions & Answers | 0 | 09-09-2007 08:19 PM |
| Redirecting OUTPUT | Chanakya.m | Shell Programming and Scripting | 1 | 08-13-2007 01:27 PM |
| redirecting the output of aspell | leekb | UNIX for Advanced & Expert Users | 6 | 07-10-2006 02:50 AM |
| Redirecting output to TCP port | mscomms | UNIX for Dummies Questions & Answers | 1 | 09-30-2003 07:51 PM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Retaining Spaces while redirecting output
I need to merge data from more than one file and I am using
while read line_record do field1=`echo $line_record | awk -F "," '{ print $1 }'` echo $line_record >> $outFile if [ "$field1" = "qualifier1" ] then while read new_linerec do echo $new_linerec >> $outFile done < $File2 done < $File1 File 1 and File 2 contains indented data in it and after executing this code; the new file outFile contains all records with truncated spaces, tabs, etc... How can I retain the original format of data when copying it to output ? Last edited by skrakesh; 01-30-2007 at 04:23 PM. Reason: Reformatting issue |
| Forum Sponsor | ||
|
|