Tagged Questions
2
votes
2answers
516 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
942 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
3
votes
4answers
2k 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 ...