You are not logged in.

#1 2018-03-13 04:02:50

ninioArg
Member
Registered: 2014-09-21
Posts: 19

[Solved] grep fails

Trying a simple grep piping like:

$ glxinfo | grep Rendering

Yields:

ls: cannot access 'Rendering': No such file or directory

Or:

$ps aux | grep vlc

Which yields:

ls: cannot access 'vlc': No such file or directory

Same for finding in file like:

grep Rank /mnt/data/personal/configs/pacman

Yields:

ls: cannot access 'Rank': No such file or directory

-------------

$ uname -a
Linux darkBit 4.15.7-1-ARCH #1 SMP PREEMPT Wed Feb 28 19:01:57 UTC 2018 x86_64 GNU/Linux

$ ls -lh /usr/bin/grep
-rwxr-xr-x 1 root root 156K Jul  3  2017 /usr/bin/grep

What's going on with grep?

Last edited by ninioArg (2018-03-13 05:53:53)

Offline

#2 2018-03-13 04:03:42

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: [Solved] grep fails

What does `type grep` give you?

Offline

#3 2018-03-13 05:53:38

ninioArg
Member
Registered: 2014-09-21
Posts: 19

Re: [Solved] grep fails

Good catch, Scimmia! Some how it was aliased as "ls". I've changed the alias in the .bashrc file and that solved the problem.

Thanks! smile

Last edited by ninioArg (2018-03-13 05:54:57)

Offline

Board footer

Powered by FluxBB