9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I need a program that read a file line by line and prints out lines 1, 2 & 3 after an empty line... An example of entries in the file would be:
SRVXPAPI001 ERRO JUN24 07:28:34 1775
REASON= 0000, PROCID= #E506 #1065: TPCIPPR, INDEX= 003F
... (8 Replies)
Discussion started by: Ferocci
8 Replies
2. Programming
Hi, could you please help with the following:
I have an input file like:
one
two
three
four
five
six
I want to print the lines starting from 'three' to the empty line.
Something like that:
if ( line == "three" )
{
while ( !line.empty() )
{
cout <<... (0 Replies)
Discussion started by: apenkov
0 Replies
3. Shell Programming and Scripting
Hi How Are you?
I am doing fine!
I need to go now?
I will see you tomorrow!
Basically I need to replace the entire line containing "doing" with a blank line:
I need to the following output:
Hi How Are you?
I need to go now?
I will see you tomorrow!
Thanks in advance.... (1 Reply)
Discussion started by: sags007_99
1 Replies
4. Shell Programming and Scripting
FIle A
"A" 2 aa 34
3 ac
5 cd
"B" 3 hu 67
4 fg
5 gy
output shud be
A"" 2 aa 34
"A" 3 ac 34
"A" 5 cd 34
"B" 3 hu 67
"B" 4 fg 67
"B" 5 gy 67 (6 Replies)
Discussion started by: cdfd123
6 Replies
5. Shell Programming and Scripting
Hi
Trying to do like this :
echo "$variable1\n $(cat file.txt)"
but it only adds one time. When I run this cmd again with different variable it only replaces line of variable1.
How to add constantly line into first line in file ? (3 Replies)
Discussion started by: presul
3 Replies
6. Shell Programming and Scripting
Hi all,
How to specify two delimiters in agrep for record definition, one for the beginning of the record and the other for the end ?
Most of examples I see so far only specify 1 delimiter, e.g. agrep -d '^From ' 'pizza' mbox. But that won't work for me. I need to 2 delimiters to indicate the... (2 Replies)
Discussion started by: qiulang
2 Replies
7. Shell Programming and Scripting
Hi All,
I found this line in my crontab..
0 6 * * * "some script name"
my question is it means the script should run at 6 00 am. But on what those days are not mentioned. Then in that case when will the script will run?
Thanks for ur help in advance,
Magesh (3 Replies)
Discussion started by: mac4rfree
3 Replies
8. Shell Programming and Scripting
agrep -d Seconds "29 06 0e 2b 06 01 04 01 9d 64 03 08 02 01 05 05" filename
agrep: pattern too long
Guys,
I am trying to grep for some data in a flat ascii file and I get this error, can someone please help me out (3 Replies)
Discussion started by: knijjar
3 Replies
9. Shell Programming and Scripting
new problem comes out..
unix script calls sql script and save the output into a file. but now there are many empty lines in the output file.
first line is empty and follow by 13 rows of data and another empty line and data and so on..
how can I fix that?
thanks (4 Replies)
Discussion started by: YoYo
4 Replies