What is Wrong
by TBotNik from LinuxQuestions.org on (#4ZWA3)
All,
I'm using the cmd:
Code:locate php | grep topic | grep -E ^'backups|Trash' > /home/files/tcr_dump.txt && nano /home/files/tcr_dump.txtWhich searched for my files topic*.php and eliminates the /backups directory but does not eliminate the:
Code:/home/$USER/.local/share/Trash/directory!
What is wrong with my cmd string? I tried the cmd with the fulll "/home/$USER/.local/share/Trash/" path in the grep REGEX filter section after the "|" or seperator, but it is not working correctly/ The "/backups/" directory is actually in the root directory and of course the "Trash" directory is not. Wondering why that makes a difference?
Cbeers!
TBNK


I'm using the cmd:
Code:locate php | grep topic | grep -E ^'backups|Trash' > /home/files/tcr_dump.txt && nano /home/files/tcr_dump.txtWhich searched for my files topic*.php and eliminates the /backups directory but does not eliminate the:
Code:/home/$USER/.local/share/Trash/directory!
What is wrong with my cmd string? I tried the cmd with the fulll "/home/$USER/.local/share/Trash/" path in the grep REGEX filter section after the "|" or seperator, but it is not working correctly/ The "/backups/" directory is actually in the root directory and of course the "Trash" directory is not. Wondering why that makes a difference?
Cbeers!
TBNK