2
votes
3answers
1k views

How to recursively find a .doc file that contains a specific word?

I'm using bash under Ubuntu. Currently this works well for the current directory: catdoc *.doc | grep "specificword" But I have lots of subdirectories with .doc files. How can I search for, ...
5
votes
3answers
1k views

Showing the line count of a specific file

Is this the correct way to show the line count of a specific file? cat file | grep * -c
5
votes
7answers
6k views

List only the device names of all available network interfaces

I want to get a list of all available Network-Device Names on my Linux server. I figured that netstat -a would do the job, however netstat produces quite much output: eth0 Link encap:Ethernet ...