Skip to main content

Thread: sed help


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 want able match multiple spaces , replace them comma.

code:
$echo 'asdasd       cvbcvb'|sed 'magic' asdasd,cvbcvb
i'm running oneiric x64.

code:
sed '/ \{1,\}/,/g'


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] sed help


Ubuntu

Comments

Popular posts from this blog

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support