![]() |
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 |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to change field seperator | onthetopo | Shell Programming and Scripting | 2 | 05-11-2007 01:11 PM |
| Can a shell script pull the first word (or nth word) off each line of a text file? | tricky | Shell Programming and Scripting | 5 | 08-17-2006 07:29 AM |
| Using | as a seperator in join | firvin | UNIX for Dummies Questions & Answers | 5 | 03-28-2006 12:23 PM |
| Comma seperator | premar | Shell Programming and Scripting | 6 | 02-17-2006 04:16 AM |
| Awk Field Seperator Help | insania | Shell Programming and Scripting | 3 | 11-11-2005 04:29 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
how i can use a WORD for seperator
hi,
i want to use A WORD for seperator in awk or especially in cut. how i can perform this. is there any way to use a word for seperator. For example: i want to list all word after FROM and the files name contains this word. chatnorollback.svc: delete from info where nick chatnorollback.svc: delete from webbilling where chatnorollback.svc: delete from webbilling where chatnorollback.svc: sql {delete from login where chatnorollback.svc: sql {delete from odablack chatnorollback.svc: sql {delete from blacklist chatnorollback.svc: sql {delete from info where chatnorollback.svc: sql {delete from register thanks in advance, |
|
|||||
|
Set the awk built-in variable FS (Field Separator) to the value you want...
Code:
awk -v FS=from '{print $2}' file.txt
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|