Hello,
I have problems executing a script in ksh with this script named process.sh:
ps -ef | grep process.sh | grep -v grep | wc -l | read a
if [ $a -gt 1 ]
then
echo "The script is running"
exit 0
fi
The problem is that when I execute the script, sometimes it shows the message...
Hello,
I have problems executing a script in ksh with this script named process.sh:
ps -ef | grep -v grep | grep process.sh | wc -l | read a b
if [ $a -gt 1 ]
then
echo "The script is running"
exit 0
fi
The problem is that when I execute the script, sometimes it shows the message...
Hello,
I want to make a script that given a <tag1> finds all the lines between <tag1> and </tag1> on a xml file and inserts this string after another </tag2> of another given xml file.
In other words: find a string between <tag1> & </tag1> on file1 and insert it into file2 after </tag2>...
Hello,
I want to make a awk script that given a pattern finds a record on a file and inserts this record after another patter into another given file.
In other words: find record with pattern1 on file1 and insert it into file2 after pattern2.
Any ideas?
Thanks in advance.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.