7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i would like to insert a if-then-else function in to cycle for
# cat test
This is my script:
for i in $(cat test); if ; then
else (5 Replies)
Discussion started by: elilmal
2. Shell Programming and Scripting
i have a question how to modify below script to generate the expect result below :
for ((i=0; i < 25; i++))
200901018 (2 Replies)
Discussion started by: bleach8578
3. Shell Programming and Scripting
I have a question:
is there a way to have a "for" cycle done a certain number of times. For example in c++ I can do this:
and the cycle will be repeated 10 times.
in UNIX for example I do this:
for i in `cat /etc/host` do done
and the cycle will be repeated... (6 Replies)
Discussion started by: jcpetela
4. Shell Programming and Scripting
I need help on putting a wildcard match inside an if condition (I'm using korn shell):
then echo ' '
echo ''$MYSEL' is not a correct option'
echo ' '
i tried also #if -ne "``" and a lot of combinations of `"' but I didn't find the... (2 Replies)
Discussion started by: elionba82
Hi! I am new to HP-UX. :o
By using the command glance, I found the user memory usage was very high. I would like to know is there any command can show the process which consume most available memory ? (Just like the command top, but order by memory, not CPU) (1 Reply)
Discussion started by: alfredo
6. Shell Programming and Scripting
I have files in a dir.
I what to create a FOR cycle that will do this
FOR <condition> do
file=`ls <directory> | tail -1`
mv -f $file <another dir>
What I want to now is what should I put in the <condition>. The condition I want is that the FOR will execute... (3 Replies)
Discussion started by: nagomes
7. Shell Programming and Scripting
I got a cycle in the script which open another scripts.
Scripts action will be running 2 times at the same time.
Inside of action() is insert into the table.
But what I want is that only first script can do insert into table.
So how to do... (2 Replies)
Discussion started by: mape