Rename files with single quotes

So you have a bunch of files that have single quotes in them (silly windows people…). And you want them renamed to reasonable things that you can actually type without resorting to an army of backslashes and quotes. This will eliminate all the single quotes, and most of the other substitutions you might do make much more sense than this, so this should get you going.

rename ‘s/”\’\”//g;’ files

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: