I'm trying to replace a font name and size within all the jwmrc files in the themes directory.
Is it possible to use grep and sed to do this?
It seems the lines I'm coming up with are only designed to pipe filenames to sed. Is there a way to output the contents of the files using grep?
What I have is below, which doesn't work on any level, is trying to replace text within file contents in the directory /DejavuSans-11
I know it's pretty botched, but it's been awhile since I used grep and sed, so I'm really foggy on the syntax particulars.
Code: Select all
grep -rl 'jwmrc' /mnt/home/tbox/jwm/themes-desk/DejavuSans-11 | xargs sed -i 's/DejaVu\ Sans-13\:style\=Book/DejaVu\ Sans-11\:style\=Book/g'