10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have multiple files test1, test2, test3 etc. I want to move to a different directory with ABC_ prefixed to every file and and current dat time as postfix using a single command. (I will be using this is sftp with ! (command for local server).
I have tried the following but it gives error
... (5 Replies)
Discussion started by: Soham
2. UNIX for Dummies Questions & Answers
I Installed mysql on my CentOS 6.2 Server. But when I tried to change the location of /var/lib/mysql to another directory. I can't start the mysql. Below is what I've done
yum install mysql mysql-server mysql-devel
cp -R /var/lib/mysql /path/to/new
chown -R... (1 Reply)
Discussion started by: ganitolngyundre
3. Shell Programming and Scripting
i have below list of files in a directory.
i need combine the above text files in the below sequence,
file1.txt, pattern.txt,server.txt =>... (8 Replies)
Discussion started by: vel4ever
4. Homework & Coursework Questions
Use and complete the template provided. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write a command that will delete the john directory, and all of its contents. The problem I can't firgure out is how to create a absoute path to... (5 Replies)
Discussion started by: jorogon0099
5. Shell Programming and Scripting
This is a quick one.
I have got a review comment in one of the scripts that i wrote:
"In UNIX script it not advisable to use cd to a directory and then run command."
Is this true?
I was trying to cd to log directory and use some cat or head or ls command.
Sam (2 Replies)
Discussion started by: samplify
6. Shell Programming and Scripting
What's wrong with this script?????
echo "please enter dir"
I'm trying to make a simple script to change dir. But does not work.
it stays at the same dir where i run the script.
What did i do wrong?? (21 Replies)
Discussion started by: c00kie88
7. UNIX for Advanced & Expert Users
What is the command for search the program name from the entire directory (all directories in the unix box, means including sub directories...) (2 Replies)
Discussion started by: gksenthilkumar
8. UNIX for Dummies Questions & Answers
i need to print pathname in which the string present using 'find' command
sample output like this
Pathname String to be searched
Thanks in... (4 Replies)
Discussion started by: princein
9. Shell Programming and Scripting
I want to search files/directories in /temp directory which starts with letter 'a'. How can I do that using grep command.
I can find out like ls -ltr a* but I want to use grep command like ls -ltr | grep ..... like that.
Malay (4 Replies)
Discussion started by: malaymaru
10. Shell Programming and Scripting
I want to limit the directories that a user can
access. When this users logs in, I do not want
them to cd to any directory but those in their
$HOME. In other words:
cd / -- user tries to cd to root directory.
/home/user -- user is still in home... (4 Replies)
Discussion started by: oscarr