To replace "NEWLINE" (\n) with "comma" (,)
cat filename | tr '\n' ','
To find "tree" and replace with "plant" in a file (using sed):
sed -i 's/tree/plant/g' filename
DISCLAIMER: Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog.
You may use the commands/method/scripts on your own responsibility.
If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.
Note: The blog is best viewed with 1680x1050 pixel settings.
cat filename | tr '\n' ','
sed -i 's/tree/plant/g' filename
No comments:
Post a Comment