9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i've read somewhere a long time ago that there's a way to hide the workings of a script in sub functions so that when run, it doesn't show up in the process table.
is this really possible?
for instance, i need to run a command that has a password in it. and when that;s being run, it can be... (2 Replies)
Discussion started by: SkySmart
2. Shell Programming and Scripting
I have the following in my path:
But I want to change it programmatically(for the purpose of JBoss automatic(ansible) installs) to:
and after that I need to insert the JAVA_HOME programmatically,... (7 Replies)
Discussion started by: hvdalsen
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
7. UNIX for Dummies Questions & Answers
If I the path to a directory, what command can I use to return the actual name of that directory.
I'd rather avoid anything with regular expressions. Any ideas? (1 Reply)
Discussion started by: ordano
8. Shell Programming and Scripting
In my continuing struggle with my menu for record manipulation, I've been scripting to add records to the 'records' file. For the most part, I've been successful. I am, however, running into a strange problem.
... (9 Replies)
Discussion started by: Silentwolf
9. Shell Programming and Scripting
I need a script to be able to take a path such as "/foo/bar/thing" a put the "/foo/bar/" bit in one variable and the "thing" bit in another.
I figured awk would probably be the best tool for the job but looking at the man page didn't seem to help. The only way i know how to use awk is with... (12 Replies)
Discussion started by: Nat