Quote:
Originally Posted by droopy
find . -type f -ls | cut -c48- | sort -rn | sed -e 's/\\//g' | pg
bash: pg: command not found
Is there a way to do this while ignoring the file extensions I've checked already (epub, cbz, mobi, pdf, db, etc)?
|
Code:
find . -type f -ls | egrep -v '\.(epub|cbz|mobi|pdf|db)' | cut -c48- | sort -rn | sed -e 's/\\//g' | more
Notice now I am using the "more" command rather than the "pg" command. They basically do the same thing. Note that with "more" you use the spacebar to advance a page, rather than enter key like you do with "pg". On Linux distros, you will usually find either the pg command or the more command installed, usually both. In your case, you don't have pg. So use more instead.
Nore: The -v option to the egrep command means "everything except". So the above command will list everything
except epub's, cbz's, mobi's, pdf's and db's