Search Results

Search: Posts Made By: Epsilon
3,007
Posted By Epsilon
An easy approach:
You can use the basename command for the same purpose very conveniently.Here is its syntax:

basename <absolute pathname>

It will extract the filename from the absolute path.

Example:


$$...
3,532
Posted By Epsilon
You can also try the following: echo...
You can also try the following:


echo "piece handle=/test123/disk_dump/test123/df0_cntrl_PCPFCI20120404_68498 tag=TAG20120404T180035 comment=NONE" | cut -d " " -f 2 |cut -d "/" -f 5


Output:...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 09:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy