![]() |
|
|
|
|
|||||||
| 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 |
| bash. convert mpeg adts to normal mp3 | stahoo23 | Shell Programming and Scripting | 5 | 05-18-2008 02:26 AM |
| what are some different commands in c shell and korn shell?? | EquinoX | UNIX for Dummies Questions & Answers | 1 | 01-28-2008 09:14 PM |
| bourne shell or korn shell? | XZOR | UNIX for Dummies Questions & Answers | 2 | 10-05-2006 11:34 PM |
| How to Convert scientific notation to normal ? | maheshsri | Shell Programming and Scripting | 2 | 01-05-2006 10:33 AM |
| KORN Shell - Spawn new shell with commands | frustrated1 | Shell Programming and Scripting | 2 | 04-20-2005 11:23 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#8
|
||||
|
||||
|
Quote:
|
| Forum Sponsor | ||
|
|
|
#9
|
|||
|
|||
|
it is a txt file. abc.txt
the text file contains this: abc abc abc |
|
#10
|
||||
|
||||
|
Quote:
if abc.txt contains the following: Code:
abc def 123 456 789 Code:
456 789 |
|
#11
|
|||
|
|||
|
yes..you are right...but now i do not want it to be done in korn shell..i want it in bourne shell....when i run it in bourne shell..it doesnt works..which i hope you guys can help me out...
|
|
#12
|
||||
|
||||
|
a shell independent script:
Code:
#!/bin/sh
home=c:/..../
input=$1
nawk 'FNR > 3 {printf("%s%c", $0, OFS)}END{print ""}' "$1" > "$1".out && mv "$1".out "$1"
|
|
#13
|
|||
|
|||
|
hi thanks however..why i get my output like this? in sliding manner.. i only want a space after each abc...
abc ...................abc ............................................... abc please ingore the dots... |
|
#14
|
||||
|
||||
|
Quote:
given input [ $1 ]: Code:
1 2 3 4 123 123456 Code:
4 123 123456 |
||||
| Google The UNIX and Linux Forums |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|