10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
What is the difference ../directory path and ./directory path in ksh? (1 Reply)
Discussion started by: TestKing
2. UNIX for Beginners Questions & Answers
I am creating a file with all the source folders included in my git branch, when i grep for the used source, i found source included as relative path instead of absolute path, how can convert relative path to absolute path without changing directory to that folder and using readlink -f ? ... (4 Replies)
Discussion started by: Sekhar419
3. UNIX for Dummies Questions & Answers
My input is as below :
From the above input I want to extract the file names only .
Basically I want to... (5 Replies)
Discussion started by: IshuGupta
4. Shell Programming and Scripting
I am looking for a command that will give me the last directory name from a path
ex 1 :
ex 2 :
dir4 (1 Reply)
Discussion started by: Aswex
5. Shell Programming and Scripting
If I enter (simplified):
find . -printf "%p\n"
then all files in the output are prepended by a "." like
How can achieve that
a.) the leading "./" is omitted
b.) the full path to the current directory is inserted (enclosed by brackets and a blank)... (1 Reply)
Discussion started by: pstein
6. Shell Programming and Scripting
I have a file abcd.txt which has contents in the form of full path file names i.e.
$home> vi abcd.txt
Now I want to retrieve only the directory path name for each row
How to get the same through shell script?... (7 Replies)
Discussion started by: royzlife
when ever i login my unix system it is going to root directory....how can i change it specified directory.. (3 Replies)
Discussion started by: rsivasan
8. UNIX for Advanced & Expert Users
Need your help. The question is:
1) We have directory '/SomeDirectory/SubDirectory'
2) And have symlink pointing to it like '/AnotherOneDirectory/symlink'
'/AnotherOneDirectory/symlink' -> '/SomeDirectory/SubDirectory'
3) Need to get real path without symlinks knowing only... (7 Replies)
Discussion started by: kandrewo
9. Shell Programming and Scripting
I need to write a login script for multiple computers, however, one of the directories in question will have a different name from computer to computer.
~/Library/Application\ Support/Firefox/Profiles/<unique filename>.default/myfile
For the directory named <unique filename>.default , I... (2 Replies)
Discussion started by: glev2005
10. Shell Programming and Scripting
I have a script where I get the full directory path of the script being executed:
echo "BASE:" $BASE
The output looks like this:
I'd like to truncate the shell name, leaving just the directory path. The directory path can be... (2 Replies)
Discussion started by: cwalsek