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 -->
#
5
(
permalink
)
10-29-2008
sai21
Registered User
Join Date: Oct 2008
Posts: 27
Hope ...this will work out
echo $TMPVAR | awk -F / '{ for (i=1;i<NF;i++) printf $i"/"; }'
Where TMPVAR contains the path of the file.
sai21
View Public Profile
Find all posts by sai21
Find sai21's past nominations received
Find sai21's present nominations given