10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
How to read multiple files at simultaneously? (1 Reply)
Discussion started by: Priyanka_M
1 Replies
2. IP Networking
Hi,
When can the read() system call gives timeout error when the same connection worked for writing data to the other end of the socket, while the next call with read() gives timeout error?
Can anyone please explain when this kind of situation appears?
Thanks,
Sanzee (2 Replies)
Discussion started by: sanzee007
2 Replies
3. Shell Programming and Scripting
Hello community,
what I need to do is read 2 rows at time from a file. I have this simple solution:
File to read:
LINE1
LINE2
LINE3
LINE4
LINE5
LINE6
LINE7
LINE8Read routine:#!/bin/ksh
sed '1,3d' /out.txt | while read line; do
read line2
echo $line $line2
doneResult:LINE1... (5 Replies)
Discussion started by: Lord Spectre
5 Replies
4. Shell Programming and Scripting
Hi
I am new to writing script and want to use a Bash Piped while-read and read from user input.
if something happens on server.log then do while loop or if something happend on user input then do while loop.
Pseudocode something like:
tail -n 3 -f server.log | while read serverline || read... (8 Replies)
Discussion started by: MyMorris
8 Replies
5. Shell Programming and Scripting
hi,
how to check the file latest read time.. (2 Replies)
Discussion started by: rsivasan
2 Replies
6. UNIX for Advanced & Expert Users
Hi the following c-code utilizing the 'read()' man 2 read method cant read in files larger that 2gig.
Hi I've found a strange problem on ubuntu64bit, that limits the data you are allowed to allocate on a 64bit platform using the c function 'read()'
The following program wont allow to allocate... (14 Replies)
Discussion started by: monkeyking
14 Replies
7. Shell Programming and Scripting
Hi All,
Please advise . Welcome more suggestions.
For examples, I have 1000 file with prefix x??? In fact, I want to convert them to x???.txt with max 10 files at a time. As such, I will need to call another script to read from those 10 *txt files and sleep 5000 to convert the next 10 again.... (10 Replies)
Discussion started by: cedrichiu
10 Replies
8. Shell Programming and Scripting
just have a muddled head at the moment... bare with me.
say i have a variable $count... and a list in a file
i want to use the $count line from that textfile but don't seem to recall how to access it?
eg
user=`cat file1.txt` # user to be $count line in that list?
eg
david... (7 Replies)
Discussion started by: nortypig
7 Replies
9. Shell Programming and Scripting
Hi,
There are two scripts. The second script is called from the first one. These will create two processes on unix. In the second script, there is a read statement in the while loop.
Under unexpected conditions, at the time of reading response from the user, if the terminal hungup happens,... (1 Reply)
Discussion started by: pkusumam
1 Replies
10. UNIX for Dummies Questions & Answers
Hi!
All!
I am wirting a shell script in which i want to read one line
at a time from the file and write it simultaneouly to other file one line at a time.
Please let me know about some shell utility which can help me out.
Thanx.
If further clarifications are needed then please let me know... (2 Replies)
Discussion started by: s_chopra
2 Replies