10 More Discussions You Might Find Interesting
I am presently working in a migration project from HP Unix to Sun Solaris.
I need to place all the directory structures, shell scripts and users into
Sun Solaris. By doing this task manually there is a possibility for
discrepencies. So any tools are there to do these kind of... (4 Replies)
Discussion started by: nag_sathi
2. Shell Programming and Scripting
I have a shell scripts which create a directory and perform moving some files, when the script is kept where it is creating directory then it runs fine , but when the scripts is run where it is supposed to be which is different location then where i am creating directory , scripts... (2 Replies)
Discussion started by: guddu_12
3. Shell Programming and Scripting
Can you please check this code .I am getting the follwing error while executing the script.
Please help me out.
for files in $dir_one/*.txt
do ... (31 Replies)
Discussion started by: soumyamishra
4. Shell Programming and Scripting
I've never toyed with awk, but it seems every time I present an elegant 2- to 8-line script, someone comes back with an awk 1-liner.
I just came up with this to count all the lines of source code in a directory. How would I do it in awk?
for n in $(wc -l *.cpp *.h | cut -b-7); do
... (2 Replies)
Discussion started by: KenJackson
5. Shell Programming and Scripting
I have a tricky one here for me. Hope somebody can help.
I am looking for a way to take a single script in a directory and use it to fire all scripts within a subdirectory.
Lets say I have the following in /lcl/prd/apps
file4.sh... (2 Replies)
Discussion started by: LRoberts
6. Shell Programming and Scripting
Can someone please help me figure out what is wrong here, my script does not move on to the "else" part even though there is no .ssh directory on my remote server:
for server in `cat list`
if ; then
cat $HOME/.ssh/id_rsa.pub |ssh $server ' cat >>... (4 Replies)
Discussion started by: Sara-sh
7. Shell Programming and Scripting
I am trying to replace a few lines with other lines of all files in a directory which contain those few lines.
say - there are some 10 files in a dir having the same 4 lines as 1.txt at the starting
....................................... (1 Reply)
Discussion started by: rooster005
8. UNIX for Dummies Questions & Answers
I'm trying to make a CRON job that will execute Fridays at 7am. I have the following:
* 7 * * 5
I've been studying up on CRON and I know to have this in a file and then "crontab filename.txt" to add it to the CRON job list.
The CRON part I believe I understand, but I would... (6 Replies)
Discussion started by: Annorax
9. Shell Programming and Scripting
Is it good practice to leave scripts in the root directory?
if no, why is it not? (1 Reply)
Discussion started by: stephen adebayo
10. Shell Programming and Scripting
does somebody know, how i can get the full path of my home-directory in a shell-script? But not with the $home-variable or ~ (i don't know for sure, but i think this does not work in every shell...).
qsi (5 Replies)
Discussion started by: qsi