All Questions
3
questions
1
vote
0
answers
101
views
How to move all the files with specific prefix of the directory? [duplicate]
I have a following directory structure (assume no two files have the same name):
Apple1
apple1.jpg
apple2.jpg
Apple2
apple3.jpg
apple4.jpg
Apple3
Tomato
Peach
And i would like to move one ...
10
votes
3
answers
51k
views
Why can't find -regex match a newline?
Why does this fail?
touch "$(printf "a\nb")"; find . -regex './.\n.'
I also tried these, none of which work:
find . -regextype posix-extended -regex '.\n.'
find . -regextype posix-awk -regex '.\n.'
...
3
votes
1
answer
192
views
find utility does not recognize bracket notation
I've two files in the current folder:
submitWeb.m
submit.m
the following find does not show the two files:
find . -regex .*submit\(Web\)?\.m
But the above regex expression works fine in emacs ...