TRIM (tr) Command
tr command can be used to trim the specified contents of a file.
To Remove NULL from file
using tr
tr -d '\000' <
Path/filename1.txt > Path/filename2.txt
tr command can be
used to delete the NULL character from a file.
To Remove UNIX newline from
file
tr -d '\n' <
Path/Filename1.txt > Path/Filename2.txt
tr command can be used to delete the NewLine character from a
file.
Filename1.txt
and filename2.txt should be different.
No comments:
Post a Comment