![]() |
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 |
| help for shell script of finding shortest substring from given string by user | pankajd | Shell Programming and Scripting | 1 | 11-22-2007 12:27 PM |
| Using Awk in shell script to extract an index of a substring from a parent string | sandeepms17 | Shell Programming and Scripting | 2 | 11-07-2007 07:44 AM |
| Substring Function | sasikumar_l | Shell Programming and Scripting | 1 | 02-23-2007 12:25 PM |
| Substring function in UNIX shell script | csrazdan | UNIX for Dummies Questions & Answers | 5 | 08-12-2006 04:07 PM |
| Substring function in UNIX shell script | csrazdan | Shell Programming and Scripting | 1 | 08-11-2006 06:15 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
How to do String manipulations using Substring function in Shell
Hi,
I have a scenario to just plug out the file name from the following location path. /opt/project/data/int/holdFiles/csv195687.csv So, how do I get just file name which is "csv195687.csv" from the above line using awk/shell scripting? Can we use indexOf and Substring in awk to get last indexOf "/" and then end of String to get file name? Thanks. |
![]() |
| Bookmarks |
| Tags |
| awk, indexof, shell, substring |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|