I want to open an image from a specific date and time inside the terminal. I located the image with the following command:
# find . -type f -name '*2018-05-24*' | grep 18-46-31 ./Screenshot from 2018-05-24 18-46-31.png
Now I want to open this image from the output above in the terminal but the command below doesn't seem to work.
# find . -type f -name '*2018-05-24*' | grep '18-46-31' | xargs xdg-open
What am I doing wrong? I used xargs(may be I'm using xargs wrong) to try to pass the output from grep as an option to xdg-open but I'm getting:
xdg-open: unexpected argument 'from' Try 'xdg-open --help' for more information.