Search Results

Search: Posts Made By: vibra
5,585
Posted By vibra
thanks. i will switch for this approach... looks...
thanks. i will switch for this approach... looks more light and clean :b:;)
5,585
Posted By vibra
each one are more fast? both are similar, right? ...
each one are more fast? both are similar, right?
thanks anyway, but i wanna put two points, like:
2: line bXPTO
3: line cXPTO
4: line dXPTO

and i never find a easy way to do it with awk. and...
5,585
Posted By vibra
Also for me... I'm using a file to big, and the...
Also for me... I'm using a file to big, and the lines... errr :o

anyway. thank you very much. problem solved :b:
5,585
Posted By vibra
No... that replace XPTO at the beginning of...
No... that replace XPTO at the beginning of string



The same problem above...


At least in my console I don't get the desired result...
5,585
Posted By vibra
sed magic!
Hi,

I have this line in my script, and works perfect!
tran= "$(sed = "$fname" | sed "/./N; s/\n/: /" | sed -n "${beg},${end}p")"

$fname its a file, and gets multilines between beg and end.:...
2,293
Posted By vibra
whow man!!! thanks for the fast replay... ...
whow man!!!

thanks for the fast replay...

this sed = file.txt | sed "/./N; s/\n/: /;5,7p" solved my problem!

-- EDIT --

well, i used a little different approach: sed = file.txt | sed...
2,293
Posted By vibra
Numbering Lines
Hello everyone,

I want get numbered lines from a file. and i can do it with: sed = file.txt | sed "/./N; s/\n/ /" | sed -n "5,7p"

but the output that i get is something similar to:
5 line5...
Showing results 1 to 7 of 7

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