![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| version identification | knopix | Shell Programming and Scripting | 1 | 11-14-2006 05:06 AM |
| Need Help in Users Identification ( TRU64 ) | catfish | Shell Programming and Scripting | 2 | 11-08-2006 07:25 AM |
| Moving Part of a field to another field using AWK | rjsha1 | Shell Programming and Scripting | 5 | 08-04-2006 06:39 AM |
| System RAM identification slot-wise | diliphere | UNIX for Advanced & Expert Users | 0 | 08-23-2005 09:45 AM |
| file identification | mnsalazar | SUN Solaris | 3 | 01-20-2004 05:06 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Field identification starting from the right
Hi all
If I have lines in a file as follows :- /ora04/oradata/data1/data1.dbf /ora01/app/product/8.1.6/dbs/F1.Dbf /ora04/oradata/data2.dbf How can I select the last part of the line as my file name. Can I start from the right and define "/" as my delimeter ? Thx J |
|
||||
|
Puuurfect !!!!!!!!!
Thank you One last question on this. How do I capture the rest of the line from the position where field 1 ends. e.g. Field1=`echo '/a/b/c/d' | sed 's#.*/\(.*\)#\1#'` Restof= ? output Field1=d Restof=/a/b/c/ Thx J |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|