![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| replace a character with another character | satish@123 | Shell Programming and Scripting | 8 | 05-13-2009 04:04 PM |
| Can I read a file character by character? | murtaza | Shell Programming and Scripting | 4 | 04-27-2009 06:51 AM |
| Korn: How to loop through a string character by character | shew01 | Shell Programming and Scripting | 10 | 12-02-2008 07:58 AM |
| read a variable character by character, substitute characters with something else | vipervenom25 | UNIX for Dummies Questions & Answers | 2 | 06-06-2008 04:18 PM |
| Can i read a file character by character | karnan | Shell Programming and Scripting | 6 | 05-19-2008 03:22 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Setting FS to more than one character
Hi!
In an awk tutorial i was reading (from www.grymoire.com), it was mentioned that i can set the input field separator to more than one character using FS. However when i tried it out, it wasnt working. File a : abc/:/:as as/:f/:f AE/:/:as/:/:s script a.sh #!/bin/awk -f BEGIN { FS="/:"; } { print $1, $2; } command: home/# as.sh<a abc : as :f AE : however, the output i shud get is abc as f AE can someone tell me what am i doing wrong here? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|