Remove odd lines in a text file
File:
/home/USER/DIR/a
http://www.here.is.a.hyper.link.net/
/home/USER/DIR/b
http://www.here.is.another.hyper.link.net/
Need to remove all odd lines in this file ( PUBLIC-DIRECTORY-LIST
)? Its for my batch script which can be found below (pubbox batch print creator):
for PATH in `cat LIST`
do
echo $PATH
dropbox puburl $PATH
done > PUBLIC-DIRECTORY-LIST
Will I just add a trim command PUBLIC-DIRECTORY-LIST
at the end of the script?
+2
source to share