10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
My files look like this
I need to remove the sequence GGGAAA and anything before that
I also need to remove the sequence AGCCCTA and anything after that
So I will end up with something like this
The left side is done but I cannot get the right side correctly. I would like to use... (3 Replies)
Discussion started by: Xterra
3 Replies
2. Shell Programming and Scripting
I am new to bash/shell scripting.
I want to find all the files in directory and subdirectories, which are not ends with “.zip” and which are contains in the file name “*.log*” or “*.out*”.
I know below command to get the files which ends with “.log”; but I need which are not ends with this... (4 Replies)
Discussion started by: Mallikgm
4 Replies
3. Shell Programming and Scripting
I need to run few commands in a ksh script sequentially.
Some of the commands are jobs submitted to the server and the consecutive commands are dependent on the completion of the jobs submitted to the server.
It works if i separate the commands into different files like this
#!/bin/ksh... (1 Reply)
Discussion started by: prashob123
1 Replies
4. Shell Programming and Scripting
Hi,
I have a ksh script running on AIX 5.3 which has sometimes a bizarre behaviour.
The script runs a child script like follow.
trap 'rm -f /tmp/res.log;exit 0' 2 15
run_child.sh > /tmp/res.log 2>&1
echo "run_child.sh is terminated"
next instructions...
rm -f /tmp/res.log
... (12 Replies)
Discussion started by: rivalgro
12 Replies
5. Shell Programming and Scripting
Hi,
There is a ksh file as below
/scripts/dir> ls -ltr script.ksh
-rwxrwxrwx 1 oprlxr lxr 4937 Aug 19 11:13 script.ksh
i logged on to the server with my ID and able to see the above file. I tried executing it but it was shoing below error.
(JSKOBS) /scripts/dir>... (2 Replies)
Discussion started by: JSKOBS
2 Replies
6. Shell Programming and Scripting
Hello,
I am on solaris 9 (KSH). I need to get the execution time of my script. I can't use the time command as I have to send by mail the result in a human readable way.
So I am looking for a code to add to my script.
The output result would be :
Execution time :... (1 Reply)
Discussion started by: Aswex
1 Replies
7. Shell Programming and Scripting
Dear All,
I have a script as follows:
1 #! /bin/ksh
2 #
28 varDate=`date +%d%h%y`
29 export spool_file=/app/my_user/work/TH_Status_${varDate}_Check.txt
30
31 #########################
32 # Unix Code Starts here #
33 #########################
... (3 Replies)
Discussion started by: saps19
3 Replies
8. Shell Programming and Scripting
I have an expect script that interrogates several hundred unix servers for both access and directories therein using "ssh user@host ls -l /path". The combination of host/path are unique but the host may be interrogated multiple times if there are multiple paths to test.
The expect script is run... (2 Replies)
Discussion started by: twk
2 Replies
9. Shell Programming and Scripting
Dear all,
I'm new in Unix system, I need help about how to create execution file.
for example in my system i have file fg*
when i open fg file i get :
cmd='basename$0'
$cmd "$@"
how to create file like that (execution file) in KSH shell
thank you for your help
heru (4 Replies)
Discussion started by: heru_90
4 Replies
10. UNIX for Advanced & Expert Users
Hi
i have question, is this ok in ksh, like
while ]
do
something
read true
done
loop runs but never ends even i pass y/Y.
can any body please resolve it (4 Replies)
Discussion started by: Raom
4 Replies