![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum 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 |
| To convert multi format file to a readable ascii format | gaur.deepti | UNIX for Dummies Questions & Answers | 5 | 03-25-2008 12:03 PM |
| Need help to format a file | ratheesh | Shell Programming and Scripting | 2 | 02-13-2008 03:04 PM |
| Convert UTF8 Format file to ANSI format | rajreddy | UNIX for Dummies Questions & Answers | 9 | 05-25-2007 05:26 AM |
| Convert UTF8 Format file to ANSI format | rajreddy | UNIX for Advanced & Expert Users | 1 | 05-24-2007 03:40 AM |
| man format file | trynew | Shell Programming and Scripting | 3 | 10-07-2004 12:17 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
file format....
I have a file of 1000 rows , I need to format it to be coulmn seperatred by TAB , and print it
Ex: 12345 12345 12343 32232 23432 34242 43224 to like 12345 TAB 12345 12343 TAB 32232 23432 TAB 34242 43224 TAB ......... Thanks alot for your helping and care... |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
paste - - < inputfile
default output delimiter is a tab.... cheers ZB |
|
#3
|
|||
|
|||
|
Sed...
Can be processed using sed...????
Thanks,, Atiato |
|
#4
|
|||
|
|||
|
Using sed
Quote:
Code :- sed 's/^\([0-9]*\)/\1 \1/' inputfile |
|
#5
|
||||
|
||||
|
Code:
sed "$!N;s/\n/$(/bin/echo '\t')/" inputFile |
|
#6
|
|||
|
|||
|
Can u explain this :-
Quote:
Vgresh , Can u plz explain that ... |
|
#7
|
||||
|
||||
|
Quote:
Thanks, vino |
||||
| Google The UNIX and Linux Forums |