Unix one-liner to extract substring from all files in a directory and subdirectories -


i'm looking unix one-liner output file occurrences of nslocalizedstring (from word end of line) in files in current directory , subdirectories. i've googled, haven't found solution.

find . -type f -exec fgrep nslocalizedstring {} \+ | \     sed -e 's/^.*\(nslocalizedstring.*\)$/\1/' > ../your_output_file 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -