10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to create a shell script to add a user and modify its comment field mentioned in a file.
username comment field value
2. i am using below loop to create user... (2 Replies)
Discussion started by: Anil
2. UNIX for Beginners Questions & Answers
I am using hp unix server and not getting variable output present inside the while loop. I have tried changing the code and need to verify whether it is proper practice of code. I am expecting the output of varible RUN_FILE 3 to TRUE which i get inside the while loop.
RUN_FILE 1=TRUE... (8 Replies)
Discussion started by: gowthamsoft
3. UNIX for Beginners Questions & Answers
Thanks all for taking time out and reading this thread and big Thanks to all who have come forward for rescue.
Background: I have a variable "nbrofcols" that has number of columns from a data file. Now, using this count in for loop, I am trying to get the maximum length of each column present... (7 Replies)
Discussion started by: svks1985
4. UNIX for Dummies Questions & Answers
I'm taking a unix class and need to countdown to 0 from whatever number the user inputs. I know how to do this with a while or until loop but using the for loop is throwing me off....
I know I can use an if-then statement in my for loop but can I include a while loop in my for loop? (3 Replies)
Discussion started by: xxhieixx
5. Shell Programming and Scripting
I have an input file at ./$1.txt
with content of seq numbers like :
I need to take each seq nbr from the input file ,run the query below:
select ackname,seqnbr from event where event_text like '%seqnbr( from the input file)'
and redirect the... (11 Replies)
Discussion started by: rkrish
6. Shell Programming and Scripting
I run my program prog.c in the following way :
$ ./prog 1 > output.txt where 1 is a user defined initial value used by the program.
But now I want to run it for many a thousand initial values, 1-1000, and store all the outputs in different files.
$ ./prog 1... (1 Reply)
Discussion started by: alice06
7. Shell Programming and Scripting
i'm using the following script,
while read line;
if ; then
if ; then
echo " LINKINK ERROR "
done < ldd.log
Function_do (4 Replies)
Discussion started by: vij_krr
8. Shell Programming and Scripting
I have a file called /tmp/CMDB which looks like this
I am writing a for loop that will go through this file line by line creating a variable of itself. Using the first iteration of the loop (i.e. the first line) as... (6 Replies)
Discussion started by: hcclnoodles
9. Shell Programming and Scripting
I have a continous polling happening inside a shell script on AIX. This actually calls a PL/SQL block. Is there a way I can set up a variable or pass an interrupt to end the script gracefully. I cant read from the config once the job starts running. Ideally I should change value of a variable and... (1 Reply)
Discussion started by: kshyju
10. Shell Programming and Scripting
I need help for the below logic.
I ve a file like following
NopTX(5) // should be remain same as input
--Nop@( 40); ... (3 Replies)
Discussion started by: user_prady