Sed part 3

|

Following on from Absoblogginlutely: renaming files on unix using sed the problem changed so that we had to rename files from A?\abc to A-abc. Various permutations of /, \, ", and ' were used until we came up with

#for file in * ; do mv $file `echo $file | sed 's/\?\\\\/-/'` ; done

Why we had to use 4 \ I'm not sure, but it worked.

Categories

Pages

Powered by Movable Type 4.1

About this Entry

This page contains a single entry by published on June 28, 2004 10:59 AM.

Ximeta NDAS disk was the previous entry in this blog.

New broadband provider? is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.