I want to perform the following operations:
- Find/replace (using regexp) all occurrences of
<>:"\|?and replace it with an empty string - Find/replace (using regexp) all occurrences of
^\.+|\.+$and replace it with an empty string
As a test, I manually created 2 folders (see screenshot) and ran these:
find "/home/users/Downloads/test" -regextype sed -regex "*<>:\|?*" -type d
find "/Users/chiyo/Downloads/test" -regextype sed -regex "*[<>:\|?]*" -type d
find "/Users/chiyo/Downloads/test" -regextype sed -regex "[<>:\|?]" -type d
and didn't find any.
I'm using this version of find.
=> find --version
find (GNU findutils) 4.6.0
Copyright (C) 2015 Free Software Foundation, Inc.
Any ideas how this can be done?
