Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

As i use grep

E.g: grep -iL or -ir /directoryname

It just displays all the file-names and when i opened them it doesn't have the relevant specified string in it. I want to know does grep really work. Or I want to change to something else.

share|improve this question
did you put a /* behind the /directoryname? – Rinzwind Oct 9 '12 at 14:36
like how please explain? /directoryname/* like this? – asadz Oct 9 '12 at 15:03
Like so rep -ir /directoryname/* – Rinzwind Oct 9 '12 at 17:06

It is working fine..


grep -ir "XDG" ~/.config
.config/user-dirs.dirs:# This file is written by xdg-user-dirs-update
.config/user-dirs.dirs:# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
.config/user-dirs.dirs:# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
share|improve this answer
hm idk let me check it again. Thanks for your help – asadz Oct 9 '12 at 14:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.