All Questions
7
questions
2
votes
1
answer
1k
views
cat and grep with a huge file - Broken pipe
I am tryting to cat and grep a huge 40 GB file. After some output, my process get killed.
Any idea what can be the issue? Using OSX
[1] 37392 broken pipe cat output.txt |
37393 killed ...
-4
votes
2
answers
124
views
How to delete line which have only number using vim/grep/cat/awk?
I have this text
which will be considered further in Chapter 6
Siannis et al., 2005
Crowther and Lambert, 2013a
Schumacher et al., 1994
2014
df=4
2005
2005
0, 1
4....
0
votes
1
answer
1k
views
Grep with multiple patterns used on the command
A few days ago I installed Centos 7 on my server and run ssh. Now I want to track logs. Is there anyway to combine cat or tail with grep to have clear failed and accepted login attempts list from a ...
0
votes
2
answers
3k
views
How can I simplify this command in Linux consisting of cat piped to a grep?
How can I simplify this command in Linux consisting of cat piped to a grep.
cat foo*.txt | grep cow
I was told that this is the wrong way to do this. Why is that?
11
votes
3
answers
12k
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, let's ...
5
votes
3
answers
2k
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
31
votes
18
answers
86k
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
ifconfig
would do the job, however ifconfig produces quite much output:
eth0 Link encap:Ethernet ...