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
1 Replies
2. UNIX for Beginners Questions & Answers
Hello,
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
4 Replies
3. UNIX for Dummies Questions & Answers
My input is as below :
/splunk/scrubbed/rebate/IFIND.REBTE.WROC.txt
/splunk/scrubbed/rebate/IFIND.REBTE.WROC.txt
/splunk/scrubbed/loyal/IFIND.HELLO.WROC.txt
/splunk/scrubbed/triumph/ifind.triumph.txt
From the above input I want to extract the file names only .
Basically I want to... (5 Replies)
Discussion started by: IshuGupta
5 Replies
4. Shell Programming and Scripting
I am trying to do the following task :
export ENV=aaa
export ENV_PATH=$(cd /apps | ls | grep $ENV)
However, it's not working. What's the way to change to directory and search some file in that directory in single command
Please help. (2 Replies)
Discussion started by: saurau
2 Replies
5. SuSE
Hi,
I want to add a path to PATH. I added export PATH=$PATH:$HOME/newpath in the ~.profile. I exit the shell and reenter shell. After I type echo $PATH. The new path is not added. I don't know why. Can someone give advice?
Thanks! (3 Replies)
Discussion started by: jianma
3 Replies
6. Shell Programming and Scripting
Hello,
I have a doubt:-
---------------------
Current script:-
################################################################################################
prefix=user@my-server:
find . -depth -type d -name .git -printf '%h\0' | while read -d "" path ; do (
cd "$path" || exit $?... (4 Replies)
Discussion started by: sahil_jammu
4 Replies
7. Shell Programming and Scripting
1. that you are calling the POSIX UNIX commands located under /usr/xpg4/bin instead of those under /usr/bin
2. that you can run programs from the current directory
3. that your scripts located in the bin directory under your HOME directory can be found and executed from any... (1 Reply)
Discussion started by: vpatel44
1 Replies
8. Shell Programming and Scripting
Hi,
I have a file abcd.txt which has contents in the form of full path file names i.e.
$home> vi abcd.txt
/a/b/c/r1.txt
/q/w/e/r2.txt
/z/x/c/r3.txt
Now I want to retrieve only the directory path name for each row
i.e
/a/b/c/
/q/w/e/
How to get the same through shell script?... (7 Replies)
Discussion started by: royzlife
7 Replies
9. Solaris
I used set PATH$
but that worked until I closed Terminal , now qouestion is how to put this in... (7 Replies)
Discussion started by: microbot
7 Replies
10. UNIX for Advanced & Expert Users
Dear All
When i am telnet' ing to some IP, after logging in, i am into some default path.I want to specify "custom path" , that is after logging in , when i do pwd it should be custom path.For this where i have to change the setting or edit the path already specified.
I am having... (4 Replies)
Discussion started by: tkbharani
4 Replies