![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| Getting same exit status for empty and non empty file | mavesum | UNIX for Dummies Questions & Answers | 4 | 12-03-2008 09:59 AM |
| iCal, Mac OS X 10.5: Empty "Home" and "Work" calendars may appear after installing Le | iBot | OS X Support RSS | 0 | 10-13-2008 10:20 PM |
| iCal, Mac OS X 10.5: Empty "Home" and "Work" calendars may appear after installing Le | iBot | OS X Support RSS | 0 | 10-03-2008 04:40 AM |
| how to find empty folders without using -empty | lasse | UNIX for Dummies Questions & Answers | 7 | 01-17-2008 02:30 AM |
| split string with multibyte delimiter | azmathshaikh | Shell Programming and Scripting | 1 | 03-06-2005 06:50 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Awk split doesn't work for empty delimiter
Does anyone know how will I make awk's split work with empty or null separator/delimiter?
Code:
echo ABCD | awk '{ split($0,arr,""); print arr[1]; }'
HTML Code:
A B C D |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|