0
votes
1answer
44 views

Find directory and delete it's content but not itself

How do I find a directory and delete all it's content but not the directory itself? find -type -d -name 'Tmp' -exec rm -rf {} \; But this also deletes 'Tmp' directory. Thanks in advance.
1
vote
2answers
45 views

Find out where the directory is in Linux?

When I executed the command to give the pid of my processes running, it gave me like this - user@machineA:/$ ps -eo pid,command | grep exhibitor | grep java | grep -v grep 1615 java -jar ...
0
votes
2answers
169 views

Command for find in page (Ubuntu 12.04)

I'm keybinding some shortcuts and I just want to know what the "find in active window" command is. <-- windows equivalent is ctrl-f
1
vote
1answer
406 views

Ubuntu doesn't find installed drivers for Brother MFC-255CW printer

I am brand new to Ubuntu, but I a fairly experienced computer user. Following the instructions provided by the Brother website, I was able to install the drivers (CUPSwrapper and LPR) for the ...
0
votes
1answer
192 views

Find and exec using pulled variable

So far I have a simple batch script that moves *.mkv files from their source folders to a folder called "Movies". Now I would like FileBot to rename them using the 'find' command, since it (filebot) ...
11
votes
2answers
157 views

Does apt-cacher change packages access time?

I tried to remove the long time unused packages from apt-cacher archive using find: $ find /var/cache/apt-cacher -atime +5 -type f -name ".*deb*" | wc -l 8471 $ find /var/cache/apt-cacher -atime +9 ...
3
votes
1answer
1k views

How to find files between two dates using “find”?

I have an email account that has passed 60GB of emails, and currently I'm having a lot of trouble using an email client to archive emails of last year (2011). Via terminal, I am trying to use find to ...
1
vote
1answer
247 views

Count duplicated words in a text file

I have a 20 mb file with text and ids. I need a grep or something to count and show any duplicated ids.
11
votes
2answers
35k views

How to find a text file which contains a specific word inside (not in its name)

I want to find a text file in my hard disk which contains a specific word. I want to use a graphic application. I'm on 12.4 "Precise Pangolin". Prior to Ubuntu 12.4 I used to start in the dash an ...