Removing asterisks from a file
James Gray
james at gray.net.au
Thu Oct 16 05:04:33 UTC 2008
On 16/10/2008, at 3:51 PM, Ranmadhu Wijayatilaka wrote:
> Hi all,
> I have a text file with a bunch of asterisks in it. It is possible to
> remove the asterisks using the command line? I tried using echo and
> sed
> but the echo command simply outputs all the files in the current
> directory when it gets up to an asterisks.
sed "s#*##g" file.txt > new_file.txt
That will remove the asterisks from "file.txt" and dump the result
into "new_file.txt"
HTH,
James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2417 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20081016/278e1bb1/attachment.bin>
More information about the ubuntu-users
mailing list