ls *.ogm | xargs -i basename {} | xargs -i ls {} *some files* xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option *more files but not all, died after the first filename including a quote* ls *.ogm | xargs -0 -i basename {} | xargs -0 -i ls {} ls: cannot access *ALL the filenames plus the newlines concatenanted* : File name too long