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 -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -