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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -