10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
while read -a line; this is not working in ksh. what is the equivalent of this in ksh.
read: -a: unknown option (2 Replies)
Discussion started by: archana25
2. Shell Programming and Scripting
Based on text file:
PATH:/media/hdd/Media/Video/title4 FILE:/media/cache/281662-17.jpg... (12 Replies)
Discussion started by: TiedCone
3. Shell Programming and Scripting
I'm looking for some help in figuring why my little bit of code will not process any entries other then the first one in my list.
while read line ;do
a=`ssh user@$hostname uptime;echo $?`
touch... (6 Replies)
Discussion started by: whegra
4. Shell Programming and Scripting
As a newbe in scripting, i struggle hard with my first script.
What i want to do is, bringing data of two files together.
05/14/12-04:00:00 41253 4259 5135 5604 5812 5372
05/14/12-04:10:00 53408 5501 6592 7402 7354 6639
05/14/12-04:20:00 58748 6037 7292 8223... (13 Replies)
Discussion started by: IMPe
5. Shell Programming and Scripting
I have written a script to read the file line by line.
It is reading and printing the lines.
But it is coming out of loop before reading last line.
So I am not able to print last line.
How do I solve it. (6 Replies)
Discussion started by: dgmm
6. Shell Programming and Scripting
I am using while loop, below, to read lines from a very large file, around 400,000 rows. The script works fine until around line 300k but then starts giving incorrect result.
I have tried running the script with a smaller data set and it works fine. I made sure to include the line where... (2 Replies)
Discussion started by: saurabhkumar198
7. Shell Programming and Scripting
Hi I'm writing a bash script which will read an input file and look for occurrences of the current user ($USER) executing the script. When i find the occurrence of the username I take that line and append it to a file with a line number and bracket display next to line.
The input file has been... (12 Replies)
Discussion started by: BundBash
8. Shell Programming and Scripting
How can we use read line using the index value of a FOR loop?
From this file i want to read the line2, 3 and 4 only using a FOR... (3 Replies)
Discussion started by: balajim
9. UNIX for Dummies Questions & Answers
HELLO all :),
I have been trying to use a simple while loop to read a file " templist", line by line and perform an action. See the code below. The reason for not using a while read line loop is the for the use of the if condition that wouldn't work. I would appreciate some ideas as this has... (2 Replies)
Discussion started by: kabs
10. Shell Programming and Scripting
Can anyone please help me: i'm trying to read a file with directory-names , then go to that directory and read another (output) file to perform some tasks per line (second read line in the part of script below).
The problem is that after the nested while loop has finished, the first while... (7 Replies)
Discussion started by: Rakker