Bash : Piping to eog -
i'm trying pipe filename via bash code eog.
here's code : ls | grep "sample" | head -1
sample name of required file.
i'm having trouble figuring out how pipe output eog.
i've tried storing output of above code variable , pass variable eog unsuccessfully.
any suggestions?
is you're looking for?
ls | grep "sample" | head -1 | xargs eog
Comments
Post a Comment