![]() |
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 |
| awk sed cut? to rearrange random number of fields into 3 fields | axo959 | Shell Programming and Scripting | 4 | 04-29-2009 05:18 AM |
| need help with awk in printing the fields in a file | sais | Shell Programming and Scripting | 4 | 10-07-2008 06:48 AM |
| AWK - printing certain fields when field order changes in data file | eric4 | Shell Programming and Scripting | 3 | 04-15-2008 07:48 PM |
| Sorting Files / Combing Fields / Printing | ccfc1986 | Shell Programming and Scripting | 12 | 12-03-2007 02:38 PM |
| printing select fields in awk | maverix | Shell Programming and Scripting | 5 | 06-22-2007 10:25 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Printing First Three Fields
Hello,
I have several files in the following format: 1*2,3,4,5 And I wish to only print the first three fields, including the special characters '*' and ','. I have used awk to print fields before, but I do not know how to do it to include the delimiters, and how you can do it with delimiters of different types. Any help would be greatly appreciated! Thank you, -Jahn |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|