10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I facing a problem :
I have a Source and Destination directory. The Source directory is linked to SVN and is updated by the Script to Head Revision.
After that i copy the Source to Destination by this command:
cp -r /SOURCE PATH /DESTIUNATION PATH
Now if a delete a file in source and... (5 Replies)
Discussion started by: ankur328
5 Replies
2. Shell Programming and Scripting
Hi,
i have a problem with this script:
for i in $(cat list_ip_switch)
do
if
if ; then
echo "found ip"
else
echo "not found ip"
fi
done
cat list_ip_switch
10.155.249.171
10.155.249.172 (3 Replies)
Discussion started by: elilmal
3 Replies
3. Shell Programming and Scripting
Hi,
I'm new to sh scripting and have the following problem. I have a script to sftp that is now working with ssh key. But i need to change this, i wan't to sftp with a password. I have the following script, tried a lot to make a variabel for the password. But i can't make it work
... (2 Replies)
Discussion started by: kvhindex
2 Replies
4. UNIX for Dummies Questions & Answers
Hello,
In my directory i have got a list of files like below
unix1a.csv
unix1b.csv
unix1c.csv
unix1d.csv
unix1y.csv
I have done ls -lrt unix1.csv, how can i get my unix1y.csv also get listed along with this.. (5 Replies)
Discussion started by: sathyaonnuix
5 Replies
5. Shell Programming and Scripting
hi All,
I am using the command
find /home/mqm/check/ -mtime +1|wc -l
to get a count of the files older than a day under the check directory. But instead of getting the count of the files under check directory I m getting a count including the check directory itself. Can someone please tell... (0 Replies)
Discussion started by: jayii
0 Replies
6. UNIX for Dummies Questions & Answers
Hi
I want to make a script . In this script i want to use input file and this input file consist of three numbers in a line
for example input file is as below:
919876543210 09876543234567876 98764534245678 aircelmms","aircelweb","aircelwap"
096574235625... (2 Replies)
Discussion started by: esumiba
2 Replies
7. Programming
I wrote a simple program to have cat pipe its output into less through a FIFO. The write works fine, but the child won't exit after writing to the FIFO. Another program needs to read from the FIFO for it to exit, but the parent (less) must wait for the data to become available to read the FIFO. ... (0 Replies)
Discussion started by: Ultrix
0 Replies
8. Shell Programming and Scripting
Hi,
This is the script that am trying to execute.
a= sar 1 5 | grep ^A | awk '{print $5}'
echo $a
i am getting output.
99
i get a blank space for echo $a.
Why is the value not getting assigned to a??
Thanks in Advance.
How to use code tags (6 Replies)
Discussion started by: aksijain
6 Replies
9. UNIX for Dummies Questions & Answers
Hey,
I want to create a new file (devices) with the 39th and the 40th character of the line wich is in the array line and in the file drivers.
But unfortunately my try doesn't work:
sed -n '$linep' drivers | cut -c 39-40 | echo >>devices Perhaps one of you can help me. Thank you!
emoly
... (0 Replies)
Discussion started by: emoly
0 Replies
10. UNIX for Dummies Questions & Answers
Hello,
Going through book, "Guide to UNIX Using Linux". I am doing one of the projects that has me writing scripts to join files. Here is my pnumname script and I am extracting the programmers names and numbers from the program file and redirecting the output to the file pnn. I then created a... (0 Replies)
Discussion started by: thebeav
0 Replies