![]() |
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. |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Help with Sed
Hi All,
Based from the following string, is there a way to parse the 4th value after the occurrence of / character? For example: "hostname /exp/jump/SH_REL_NO/FOLDER_A.daily/boot/Solaris_10 10.10.120.32" I need to get the value FOLDER_A I tried the following command, but its removing all the occurrence of /. echo "hostname /exp/jump/SH_REL_NO/FOLDER_A.daily/boot/Solaris_10 10.10.120.32" | sed 's/\(.*\)\///' Solaris_10 10.10.120.32 Thanks in advance for the help. //racb |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|