When I perform a search with, for example:
find . -iname "U2*.mp3"
or
ls *U2
I obtain the output:
U2 With or Without You.mp3
U2 When the Streets have no name.mp3
...
If I try to play them with the command:
smplayer $(!!)
then, smplayer assumes the filenames are:
U2
With
or
Without
...
How can I deal with this, without changing the file names?
$(!!)
doesn't do what you think it does. I recommend using the-exec
functionality offind
such as:find . -iname 'U2*.mp3' -exec smplayer {} \;
– jesse_b Dec 28 '19 at 13:45