I am new in shell script i want to convert .txt file
in the format
axsjdijdjjdk
to
a
x
s
j
d
i
j
d
j
j
d
k
I am new in shell script i want to convert .txt file
in the format
axsjdijdjjdk
to
a
x
s
j
d
i
j
d
j
j
d
k
awk '{ for(i=1; i<=length($0 );i++) {print substr($0,i,1) } } ' oldfile > newfile
sed 's/\(.\)/\1\n/g' -i filename
try also:
awk '$1=$1' FS= OFS="\n" input.txt
---------- Post updated at 11:22 PM ---------- Previous update was at 10:51 PM ----------
also, more sed:
sed 's/./&\n/g' input.txt
is there any way to handle unicode such as m
Both example in post #4 does handle your unicode text, giving on characters pr line.