Changes

Jump to navigation Jump to search
293 bytes added ,  00:11, 2 December 2015
a beautiful one-liner
You're cleaning up a Linux filesystem to make it compatible with Windows (which doesn't accept the kind of characters that Linux hangs around with).

<source lang="bash">

find . -name "*[<>:\\|?*]*" -exec bash -c 'x="{}"; y=$(sed "s/[<>:\\|?*]\+/-/g" <<< "$x") && mv "$x" "$y" ' \;

</source>
4,558

edits

Navigation menu