![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| plz help me in writing a script | Renjesh | SUN Solaris | 3 | 03-24-2008 08:31 AM |
| Writing the script | jess_t03 | Shell Programming and Scripting | 1 | 10-10-2007 06:17 AM |
| plz help in writing awk script | LAKSHMI NARAYAN | Shell Programming and Scripting | 3 | 07-14-2007 04:06 AM |
| Writing Script? | wmosley2 | Shell Programming and Scripting | 15 | 01-12-2004 05:01 PM |
| need help writing a script | tarballed | Shell Programming and Scripting | 3 | 04-17-2003 05:50 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
help writing script
hi all
i am having a file(a fixed length file) of 28 bytes.The file has account number from 5th place to next 16 digits. the file looks like below, 58331600563588885696ACXT5263 58331600563588885697ACXT5263 58331600563588885698ACXT5263 i want to write a script which will extract the account number from 5th palce to length 16 and append ' before and afeter that and , after each line except the last one. my out put should look like '600563588885696', '600563588885697', '600563588885698' please help me in writing a shell script |
|
||||
|
Quote:
Code:
cut -c6-20 filename | sed ..... |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|