Replacing whitespaces in a filename using sed

All about shell scripts.
Post Reply
User avatar
klaus
Posts: 16
Joined: Fri Apr 01, 2011 10:38 pm

Replacing whitespaces in a filename using sed

Post by klaus » Tue Sep 13, 2011 3:10 pm

It works with:

Code: Select all

find / -type f -name "*.end" | sed -e 's/ //g' 
It is used with the "tar" command, which has some problems with whitespaces in the filename.

Post Reply