Search Results

Search: Posts Made By: CAGIRL
1,601
Posted By agama
Depends on which shell. For Kshell, and probably...
Depends on which shell. For Kshell, and probably bash, this will work:


# assume original filename in ofile
filename=${ofile##*/} # basename -- delete all to the last slant...
1,601
Posted By rdcwayx
# get the filename basename...
# get the filename
basename /app/myapp/bin/my.sql

# get the folder
dirname /app/myapp/bin/my.sql
Showing results 1 to 2 of 2

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