The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Find a path of a specific file
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Find a path of a specific file
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
10-29-2008
vino
Supporter (in vino veritas)
Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,798
Quote:
Originally Posted by
samir_standing
Can anyone help me
how to extract /home/samir/datas
from /home/samir/datas/data.txt
Code:
path=$(dirname /home/samir/datas/data.txt)
vino
View Public Profile
Find all posts by vino
Find vino's past nominations received
Find vino's present nominations given