I have a directory with over 1000 files, and a few of them are .zip files, and I want to turn them all into .tgz files.
I want to use grep to make a list of file names. I have tried "grep *.zip" to no avail. Reading the man pages, I thought that * was a universal selector. Why is this not working?
Thank you.
ls
, notgrep
. – Maxime R. Jan 19 '12 at 17:38*.zip
is expanded by the shell, you don't even need to use ls - you could useecho *.zip
– dannysauer Nov 06 '15 at 15:32