0
votes
2answers
102 views

Print the common of the two files

i want it to print the common of the 2 file one file contain the ls -l option and the other one have the ls ls only have the file name ls -l have everything including the permission and other ...
0
votes
0answers
28 views

continued… grep -c gives inconsistent outputs [duplicate]

Possible Duplicate: grep -c gives inconsistent outputs I am trying to determine the number of processes that are running via the following command line: ps aux | grep -c 'Xvfb :1' When ...
1
vote
3answers
148 views

grep -c gives inconsistent outputs

I am trying to determine the number of processes that are running via the following command line: ps aux | grep -c 'Xvfb :1' When the process "fiji :1" is not running I sometimes get a value of 0 ...
0
votes
2answers
3k views

Filtering output by OR condition in Linux

is there some way to filter output of command by OR condition in Linux? There is filtering by AND condition with grep in way like: ls -l | grep "^a" | grep "z$" That says: list all files that ...