I am trying to extract a file using tar. I cd'ed to the directory I wanted to start in. I had the tar file in the same directory. I executed tar xvf filename . It appeared that it was extracting into the directory the tar file was created from instead of into the directory I was in. How do I... (1 Reply)
Hi,
Does anyone knows the command syntax for the following Unix commands:
at
mount
The OS is the Chorus/Mix 4.3 BSD Unix.
The "at" command does the following: at a precise date and hour it executes a desirede command.
Many thanks !!!
Regards, Pedro Pereira (3 Replies)
Here's my situation. I am trying to move all files from one directory to another. I have the following requirements:
1) Move all files in /myfiles/wip matching pattern "*.tif" to /work/in that are at least 10 minutes old (or older).
2) When the files are moved, they need to be moved into... (2 Replies)
Hi there.
I spent too much time away from Unix, now I can't remember how to issue a simple until command in ksh :mad:
could you tell me what is wrong with the following code sample:
export v = "1"
until
do
echo 'executing repeat_until'
v = `expr $v + 1`
done
I've... (3 Replies)
Can anyone tell me what the syntax is for the bind command in bash? I'm using OS X and the book i have ias written in 2005 ('Learning the bash shell') I'm guessing it was for an earlier version. It says something about single and double quotes, but I'm not sure exactly in what order they're... (2 Replies)
hi All,
how can i make my own commamnds for unix shell scripts.
lets xmple..
1-i want to use "down arrow key" for previous runned unix commands.
then how to acheive it.
2-Generally TAB --- complete filename or command up to the point of uniqueness ..but here its not working ..
I m new to... (1 Reply)
Hi all,
I want to add a shortcut "xmll" to my .cshrc file. By using "xmll" I want the following command to be executed:
find . -type f -name 'T*.xml' > xml_list.txt
BUT:
alias xmll 'find . -type f -name 'T*.xml' > xml_list.txt'
doesn't work.
What is the correct syntax?
Thank... (7 Replies)
Hey gang,
I'm confused about the 'exec' command. I get the basics. I can redirect stdout and stderr to one log file with:
exec >> $logFile 2>&1
However, that code requires admin rights. In other scripts, when faced with this, I'll call 'sudo' and then pass a hashed password like this:
... (8 Replies)