grep . global regular expression print

commandline session

$ 4.2.20 1 501---> ls /usr/sbin/ | grep kernel
$ 4.2.20 2 502---> ls /usr/sbin/ | grep ker
cracklib-packer
cracklib-unpacker
$ 4.2.20 3 503---> ls /usr/sbin/ | grep linux
$ 4.2.20 4 504---> ls /usr/sbin/ | grep lin
update-ccache-symlinks
$ 4.2.20 5 505---> ls /usr/sbin/ | grep li
cracklib-check
cracklib-format
cracklib-packer
cracklib-unpacker
create-cracklib-dict
gnome-menus-blacklist
libgvc5-config-update
remove-default-wordlist
select-default-wordlist
split-logfile
update-ccache-symlinks
update-cracklib
update-default-wordlist
update-fonts-alias
validlocale
$ 4.2.20 6 506--->


$ 4.2.20 6 506---> ls /usr/sbin/ | grep -cv li
261
$ 4.2.20 7 507---> ls /usr/sbin/ | grep -c li
15
$ 4.2.20 8 508--->

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s