View Single Post
Old 08-05-2020, 10:35 PM   #38
haertig
Wizard
haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.
 
Posts: 1,926
Karma: 33156336
Join Date: Sep 2017
Device: PW3, Galaxy Tab A9+, Moto G7
Quote:
Originally Posted by droopy View Post
Is there a way to print the output into some file? It may be easier to view/search/share if it's in some output file.
Code:
find . -type f -ls | egrep -v '\.(epub|cbz|mobi|pdf|db)' | cut -c48- | sort -rn | sed -e 's/\\//g' > filename.txt
Commands like the above are just a bunch of simple, basic Linux commands strung together using "pipes". e.g., the output of one goes to the input of the next. The command above used to end with "| more", the output of the command before was "piped to the input of the more command". I replaced that with "> filename.txt". This takes the output of the previous command and "redirects it into a file".

You might want to do a Google search for "Linux command line free ebook". There are many available. Lot's on Kindle Unlimited too, sometimes you will find them for free purchase there as well. Using pipes and redirects are basic to understanding the command line.
haertig is offline   Reply With Quote