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


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

selamat mencoba

Leave a Reply

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

You are commenting using your 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 )

Connecting to %s