Thread
:
X Terminal Commands for Noobs
View Single Post
AlMehdi
2010-09-28 , 09:03
Posts: 1,751 | Thanked: 844 times | Joined on Feb 2010 @ Sweden
#
10
"grep" is used to find a string from an output of a command.. when you only write "find /" it will output all the files on the n900. Which is not that useful. But if you add grep to find so it becomes "find / | grep <name>". Then "find" will only output the words that equals the one in grep.
Code:
find <path to look in> | grep <word to look for>
If you know the file you are looking for is in "/home" and that it starts with "xou" you could write:
Code:
find /home/ | grep "xou"
It will then give an out put on all the files and directories with "xou" in it. In this case it would find all the cases of xournal in /home/.
__________________
You like what i do?
Donate!
Make your desktop look awesome - use the
AwOken Theme
with the
AwOken Icon Theme.
Add me on twitter
@almehdin
Visit
the swedish maemo/meego community forums
Last edited by AlMehdi; 2010-09-28 at
09:07
.
Quote & Reply
|
The Following 2 Users Say Thank You to AlMehdi For This Useful Post:
Crashdamage
,
RenaldoTT
AlMehdi
View Public Profile
Send a private message to AlMehdi
Find all posts by AlMehdi