remove all space from your text using sed

perintah ini akan membuang semua spasi di document kamu secara menyeluruh

remove space character in front and back

#cat nama_file.txt | sed "s/^ *//;s/ *$//"

remove all space in paragraph

#cat nama_file.txt | sed "s/ //g"

kalau mau permanen pakai opsi -i

sample


#sed -i "s/ //g" nama_file.txt

selamat mencoba

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s