![]() |
|
|
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 |
| perl-like split function for bash? | eur0dad | Shell Programming and Scripting | 5 | 09-05-2008 07:23 PM |
| awk - split function | fusionX | Shell Programming and Scripting | 7 | 04-10-2008 03:32 AM |
| split to array in perl | jaganadh | Shell Programming and Scripting | 3 | 07-06-2007 06:29 AM |
| perl split function | new2ss | Shell Programming and Scripting | 5 | 06-08-2006 11:17 PM |
| split function | ktsirig | UNIX for Dummies Questions & Answers | 4 | 09-29-2005 11:58 AM |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
||||
|
Use split function in perl
Hello,
if i have file like this: 010000890306932455804 05306977653873 0520080417010520ISMS SMT ZZZZZZZZZZZZZOC30693599000 30971360000 ZZZZZZZZZZZZZZZZZZZZ202011302942311 010000890306946317387 05306977313623 0520080417010520ISMS SMT ZZZZZZZZZZZZZOC306942190000 30971360000 ZZZZZZZZZZZZZZZZZZZZ202010300391748 010000890306945153336 05306977918990 0520080417010521ISMS SMT ZZZZZZZZZZZZZOC306942190000 30971360000 ZZZZZZZZZZZZZZZZZZZZ202011304607230 010000890306948068406 05306977404213 0520080417010523ISMS SMT ZZZZZZZZZZZZZOC306942190000 30971360000 ZZZZZZZZZZZZZZZZZZZZ202010000717971 010000890306998573372 How can i perform a split based on the number of characters or base on the "size? For example split every 70 characters. Foa example i want in array[0] to be stored the 70 first characters of the file and in array[1] the next 70 charactets etc... How can i do this? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|