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
Post a Comment