![]() |
|
|
|
|
|||||||
| 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 |
|
#15
|
|||
|
|||
|
well i do get the sliding abc...
my text files is actually spooled out from the database table which is like this Text_abc -------------------------------------------------- abc abc abc thats why i want to delete away the first 3 lines...and only want the abc. i not sure or maybe i guess it is because there is an empty line after each abc..thats why i have the sliding manner...can you help me? |
| Forum Sponsor | ||
|
|
|
#16
|
||||
|
||||
|
ok, how about this:
Code:
#!/bin/sh
home=c:/..../
input=$1
nawk 'FNR > 3 && NF {printf("%s%c", $0, OFS)}END{print ""}' "$1" > "$1".out &&
mv "$1".out "$1"
|
|
#17
|
|||
|
|||
|
i still get the sliding manner............signed...
hi..i have upload my textfile... hope you guys can help...thanks... Last edited by forevercalz; 11-22-2005 at 10:46 PM. |
|
#18
|
||||
|
||||
|
Quote:
Maybesomeone else will have better ideas... sorry. |
|
#19
|
|||
|
|||
|
well its ok......thanks for your help! vgersh99...thanks for spending time helping me do all this.........it is very much appreciated...
|
|
#20
|
||||
|
||||
|
Quote:
Code:
#!/bin/sh
home=c:/..../
input=$1
#sed '1,3d' $input > $1.out
nawk 'FNR > 3 && NF {for (i=1; i<= NF; i++) printf("%s%c", $i, (i==NF) ? "\n" : OFS' "$1" > "$1".out && mv "$1".out "$1"
Last edited by vgersh99; 11-22-2005 at 11:15 PM. |
|
#21
|
|||
|
|||
|
Wow! once again..thanks so much! thank you!
|
|||
| Google The UNIX and Linux Forums |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|