securitybreach Posted December 30, 2017 Share Posted December 30, 2017 Linux from the command line - Using the Word Count (wc) command wc is a very simple program that is very handy and very powerful. It allows you to count things. The obvious use is counting the words in an essay to make sure you've reached the assigned 5000 word minimum for example. But when combined with bash scripts, wc has a lot more diverse and powerful uses, especially when combined with pipes and redirects. For example, if you want to know how many PCI devices are in your system, type: lspci | wc -l USB devices? lsusb | wc -l https://www.howtofor...ers-6-examples/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.