Friday, May 3, 2024
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 1486  / 3 Years ago, sun, may 16, 2021, 11:41:04

I trying to remove boring -escaping from this command:



find . ( -name '*.mp3' -o -name '*.jpg' ) -print


by wrapping it in single quotes:



find . '( -name *.mp3 -o -name *.jpg )' -print


implying that arguments go straight to the find without any expansions.



However the output is different.


More From » command-line

 Answers
5
find . -name '*.mp3' -o -name '*.jpg' -print

[#34141] Monday, May 17, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
percol

Total Points: 493
Total Questions: 116
Total Answers: 107

Location: Taiwan
Member since Mon, Sep 6, 2021
3 Years ago
;