Search Results

Search: Posts Made By: Biederman
13,657
Posted By Biederman
hi jayan_jay, The problem has just been...
hi jayan_jay,

The problem has just been solved. It turned out the <file_name> should be just file_name, without arrows. Both codes you have previously posted work fine.
I am so sorry for my...
13,657
Posted By Biederman
Can you tell me, where should the input file name...
Can you tell me, where should the input file name be positioned in the above code?
13,657
Posted By Biederman
Thank you all for your help, but just the example...
Thank you all for your help, but just the example given by 'bartus11' worked for me.

But I really need an working sed version of this.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Jayan_jay, it's really...
13,657
Posted By Biederman
Hi Jayan_jay, when I run one of the commands...
Hi Jayan_jay,

when I run one of the commands above I get:
sed -n 's/^\(1\.05[0-9]*\).*/\1/p' <input_file> | sed "s,^,echo \"scale=25; ,g;s,$, + $q\" | bc,g" | sh

./testshel.sh: line 10: syntax...
13,657
Posted By Biederman
Тhank you very much for the link. I'll pay a...
Тhank you very much for the link. I'll pay a special attention to it.

Regards.

---------- Post updated at 11:49 AM ---------- Previous update was at 12:38 AM ----------

hi again guys.

How...
13,657
Posted By Biederman
Thanks again, this works fine too. Where did...
Thanks again,
this works fine too.
Where did you learn all these? Could you recommend a good tutorial of sed?
I must confess that I spent few days in trying to solve that, unfortunately...
13,657
Posted By Biederman
Thanks very much Bartus11. The code you've posted...
Thanks very much Bartus11. The code you've posted works perfectly fine.
I would be grateful if you could show the "sed" version of the code.

Once again, thank you for your help though.
13,657
Posted By Biederman
Match a pattern starting with sub-pattern using sed
Hi all,

I've been experiencing a difficulty trying to match a number and write it to a new file.

My input file is: input.txt
It contains the lines:

103P 123587.256971 3.21472112 ...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 09:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy