10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Two numerical lines, found by either header line, need to be added
and the total placed in a new-header section. Also the total should
should be rounded or cut to a two decimal anynumber.XX format
with the AB string added on the end.
For example: The numerical lines from headers 2 and 3 are... (3 Replies)
Discussion started by: jessandr
3 Replies
2. Shell Programming and Scripting
Hi,
I need help with this-
input.txt :
L B white
X Y white
A B brown
M Y black
Read this input file and if 3rd column is "white", then add specific lines to another file insert.txt.
If 3rd column is brown, add different set of lines to insert.txt, and so on.
For example, the given... (6 Replies)
Discussion started by: prashob123
6 Replies
3. Shell Programming and Scripting
Hi,
I have a txt file in below format -
START
1
2
3
4
END
START
5
6
7
8
END
START
9
10
END (8 Replies)
Discussion started by: bhupinder08
8 Replies
4. Shell Programming and Scripting
Hello,
Am trying to print three lines in a single line using AWK getline command.
Below is the command am trying and its displaying only two lines in a single line.
Command:
awk '{getline n; printf($0,t);next}'
Can you please help me ?
Thanks,
Prince (1 Reply)
Discussion started by: prince1987
1 Replies
5. UNIX for Dummies Questions & Answers
Hello All,
i am a newbie and need some help when reading a csv file in a bourne shell script. I want to read 10 lines, then wait for a minute and then do a reading of another 10 lines and so on in the same way. I want to do this till the end of file.
Any inputs are appreciated
... (3 Replies)
Discussion started by: victor.s
3 Replies
6. Shell Programming and Scripting
I want to read a large (~1-4Gb) txt file with fields separated by "," and line separator "\n". Unfortunately, file contains \x00 (zero ASCII) symbols
AWK treats them as end of line + it ignores reminder of the line after the \x00.
As a simple example:
echo "\0060\0061\000\0060\0063" | nawk... (6 Replies)
Discussion started by: Murfury
6 Replies
7. Shell Programming and Scripting
any idea please!!!
I want to pick up all lines of "state" and "desc" from x files:
...
# state
blah blah
blah blah
...
..
# desc
blah blah
blah
....
Thx
Andy (7 Replies)
Discussion started by: andy2000
7 Replies
8. UNIX for Dummies Questions & Answers
i have a problem on my bourne shell script. I want to read line by line and then stop when the line does not have letters or is an empty string. But i encounter an error at "while ". The error nessage is "test.sh: test: unknown operator line". Can anyone help me on this thanks :) (2 Replies)
Discussion started by: sagolo
2 Replies
9. UNIX for Dummies Questions & Answers
I have one file in which some commands have written line line
i have to read lines from this file(file name passed as avariable)
and then i have to execute these commands..
how can i do it? (5 Replies)
Discussion started by: bihani4u
5 Replies
10. Programming
Please Help me
I have a Bulk file containing Hex data
I want to read specific lines from that bulk file by ID number.
example
ID DATE Time data
14 2005/09/28 07:40:08.546 0 5 078B1C 01916C 0FE59C 004B54 0A9670 0D04ED 05B6B4 0E2223... (10 Replies)
Discussion started by: rajan_ka1
10 Replies