Command to Replace a String in all Files in Current Directory

Replaces all instance of ‘ ’ with ‘’ in all the files of the current directory.

perl -pi -e “s/ //g;” *

Tags: , , , ,

This entry was posted on Sunday, February 24th, 2008 at 12:05 am and is filed under gnu/linux. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

You must be logged in to post a comment.