Skip to content

feeding a LIST of files into a command; eg evince multiple files simultaneously

ls | grep B0950 | grep ps > pslist.B0950  (puts file names with B0950 and ps into a file pslist.B0950)

cat pslist.B0950+08 | xargs evince (cats the list file and passes it to xargs which puts them into a space-separated single line and provides that string as the argument for evince, thereby displaying all of the chosen postscript files onto the screen.

Published inUnix Hint

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *