Search Results

Search: Posts Made By: father_7
1,966
Posted By father_7
Thank you RudiC for your support. For...
Thank you RudiC for your support.

For clarification: - it works.

The updated script-file:

s/^$/d/
/^[a-zA-Z]/d
/[0-9]{4}(\.[0-9]{2}){2}, [[:alpha:]]+/ {h;n;}; H; x; s/\n/\t/; p; G;...
1,966
Posted By father_7
script-file: s/^$/d/ /^[a-zA-Z]/d ...
script-file:


s/^$/d/
/^[a-zA-Z]/d
/[0-9]{4}(\.[0-9]{2}){2}, [[:alpha:]]+/ {h;n;}; H; x; s/\n/\t/; p; G; s/\n/\t/; s/(.*)(\t.*)\2/\1/; x; file


file:


2018.07.01, Sunday
09:27 some...
1,966
Posted By father_7
Thanks a lot RudiC :b: I have more sed...
Thanks a lot RudiC :b:

I have more sed commands to execute as below.


s/^$/d/
/^[a-zA-Z]/d


I want to use

sed -f script-file

but if I add your sed it does not work. Could your...
1,966
Posted By father_7
I tried to use sed command as below (copied from...
I tried to use sed command as below (copied from a one tutorial) but I can not adjust sed to my issue.

sed -e '1!G;h;$!d' forward.txt > backward.txt

The file includes billing phone number...
1,966
Posted By father_7
[sed] Finding and sticking the pattern to the beginning of successive lines up to the next pattern
I have a file like below.

2018.07.01, Sunday
09:27 some text 123456789 0 21 0.06 0.07 0.00
2018.07.02, Monday
09:31 some text 123456789 1 41 0.26 0.32 0.00
09:39 some text 456789012 1 0.07...
Showing results 1 to 5 of 5

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