Hello ,
I'm trying to split a file which contains a single very long line.
My aim is to split this single line each 120 characters.
I tried with the
sed command :
`cat ${MYPATH}/${FILE}|
sed -e :a -e 's/^.\{1,120\}$/&\n/;ta' >{MYPATH}/${DEST}`
but when I wc -l the destination file it is still a 1 line file hu.
my original file is a 0 line file as it doesn't contain any CR/LF.
Can some one help me with this
sed syntax to make it work pls?
Thanks in advance!
Jerome.