Thread: sed help
i want able match multiple spaces , replace them comma.code:$ echo 'asdasd cvbcvb'|sed -e 's/[:space:]/,/g' ,,d,,d ,vb,vb $echo 'asdasd cvbcvb'|sed 's/ +/,/g' asdasd cvbcvb $echo 'asdasd cvbcvb'|sed -n 's/[ ]*//p' asdasd cvbcvb
i'm running oneiric x64.code:$echo 'asdasd cvbcvb'|sed 'magic' asdasd,cvbcvb
code:sed '/ \{1,\}/,/g'
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] sed help
Ubuntu
Comments
Post a Comment