10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to read file multiple times. Right now i am using while loop but that is not working.
While read line
while read line2
#processing some data based on data.,
done < file2.txt
done < file1.txt # This will have 10... (4 Replies)
Discussion started by: tmalik79
2. Shell Programming and Scripting
Any reason why this thing doesn't works in Korn Shell
for (( expr1; expr2; expr3 ))
..... ... repeat all statements between do and done until expr2 is TRUE Done
TS (4 Replies)
Discussion started by: targetshell
3. Shell Programming and Scripting
I need an echo "hit enter" running every 3 seconds till user hit enter key.
10x (1 Reply)
Discussion started by: LiorAmitai
4. Shell Programming and Scripting
I'm developing a script; the first step is to create a file (its name is IP) which contains several lines. The second step is to create and execute expect programs using the data in the (IP) file.
Unfortunately, the loop is not executed properly....sometimes, the 2nd expect file is... (2 Replies)
Discussion started by: Hossam_Nox
5. Shell Programming and Scripting
I need to take some command line arguments for my script and then want to run a function for each argument.I thought of using for loop as below, but its not working , can some one please help...
echo "$lpar1" >>lpar.txt
echo... (4 Replies)
Discussion started by: prashant43
6. Shell Programming and Scripting
I have a few general qns, so I'd appreciate quick responses.
1. How do u read a file line by line and display its contents using KSH?
2. How to kill a process using only the name?
3. How to create an empty file with 1MB memory size?
4. How to append some content to an existing... (3 Replies)
Discussion started by: sasuke_uchiha
7. Shell Programming and Scripting
I am running the following log.sh shell script.
echo "hello $no_of_ps"
ps_file=`tail -$no_of_ps /tmp/A380_RFS24/test.ls | head -1`
no_of_ps=`expr $no_of_ps - 1`
echo "package is: $ps_file" >> /tmp/A380_RFS24/log/A380_RFS24.log
ps_file1=`echo $ps_file| sed... (1 Reply)
Discussion started by: sunitachoudhury
8. Shell Programming and Scripting
Please help me out in this... I am new to scripting
How to compare two strings by using the same string in single loop,
I am using ksh
for ex:see the code snippet below
I am writing in java,
Can u guys tell me that in scripting
if ("string1"=="string2" ||... (2 Replies)
Discussion started by: Anji
9. UNIX for Advanced & Expert Users
Today I logged as root on my HP-UX server and by mistake executed below command
# ksh –i vi
Then onwards for every root logging the ksh shell giving wired output to every command
: : :
And so on…..... (6 Replies)
Discussion started by: zing_foru
10. Shell Programming and Scripting
i have to copy files from server A to server B,and at the same time create a back up of the existing files on server B and delete the uncommonm files between both the servers,please any help will be appreciated.
bkan (1 Reply)
Discussion started by: bkan77