I have a
Music folder, in which I have some music tracks, which aren't organized too well. Thus, if I want to find a particular track, I usually type:
ls Music | grep <keyword>, where
<keyword> is some keyword I expect the filename to have. Then my command line will return the name of the file for which I am looking,
<name>, and then to open the music file, I will type
vlc <name> &.
My question is whether it would be possible to streamline all of this into one operation? I tried using
ls Music | grep <keyword> | vlc, but this was unsuccessful. How would I go about doing this?
(More generally, how would I use the pipeline for this sort of purpose?)