If you find sed useful I would encourage you to check out Perl (https://www.perl.org/).
It has all of the powerful regular expression capabilities that sed has plus much more.
It has all of the powerful regular expression capabilities that sed has plus much more.
Yes, I wanna learn Perl! :)
I recommend the reading "Programming Perl" (the Camel book) or "Learning Perl", both from O'Reilly press.
If you are using a Mac or Linux system, you probably already have Perl installed, so there is no setup to start using it.
(( `ls | wc -l` > 100 )) && echo "many files" || echo "few files"