I would like to replace the entire contents of the file that matches the given regular expression with their lower case. How:
grep -o '[^ ]*[AZ][^ ]*.png' file-21-05-2013.sql* | awk '{print tolower($0)}'
The line above contains all lines in the specified file that have at least one uppercase character and print the lowercase equivalent.
I would like to replace the output of the grep command with the output of the entire command above
It makes sense?
source share