Wednesday, December 28, 2016

GREP - find text in files

You can use grep -ilR: grep -Ril "text-to-find-here" / i stands for ignore case (optional in your case). R stands for recursive. l stands for "show the file name, not the result itself". / stands for starting at the root of your machine. Answer by fedorqui: http://stackoverflow.com/questions/16956810/how-to-find-all-files-containing-specific-text-on-linux

No comments:

Post a Comment

Ubuntu 12.04, 14.04, 16.04 - auto start an app or script before login

To run a command or application at startup, even before the user has logged in, you can use this file: /etc/rc.local The commands entered...