Skip to main content

All Questions

Tagged with
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 ...
Madhur Ahuja's user avatar
  • 1,919
-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....
alhelal's user avatar
  • 121
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 ...
sober's user avatar
  • 75
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?
Belmark Caday's user avatar
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 ...
Tom's user avatar
  • 145
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
Test3r's user avatar
  • 67
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 ...
ftiaronsem's user avatar