Search Results

Search: Posts Made By: qranumo
2,307
Posted By qranumo
Hi all, First of all, sorry if I didn't...
Hi all,

First of all, sorry if I didn't explain myself properly. My original file has <CR><LF> as line termination pattern for every single line. But as Don suggested that it will not work with...
2,307
Posted By qranumo
I'm afraid they're not working: ##File with...
I'm afraid they're not working:

##File with LF only or CR/LF at end of line:

$ awk '
substr($0, 30, 1) == "\n" {
printf("%29.29s", $0)
next
}
1' shorttest1.txt
this is ok...
2,307
Posted By qranumo
1) This is what I've tried so far: sed...
1) This is what I've tried so far:

sed ':a;N;$!ba;s/^\(.\{30\}\)\n/./g'
sed 's/^\(.\{30\}\)\n/./g'
awk '{ gsub(/\n/,"",$30); print $0}'

2) I don't consider that any line should have a CR at...
2,307
Posted By qranumo
That is. I want to remove the CR/LF that are at...
That is. I want to remove the CR/LF that are at position 30.
2,307
Posted By qranumo
Hi Joeyg, It's not a homework. I have a file...
Hi Joeyg,

It's not a homework. I have a file (more than 450000 lines) where all longest lines were cropped at position 171. I created a short file as an example with lines splitted in two when...
2,307
Posted By qranumo
Remove line break at specific position
Hi,

I need to remove line breaks from a file, but only the ones at specific position.

Input file:

this is ok
this line is divided at posit
ion 30. The same as this one,
also position 30...
Showing results 1 to 6 of 6

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