Månedsarkiv: juni 2013

Find XML part in files

If you have a lot of XML files, like Magento Module Config Files, and need to find a code snippet, like the Crontab definitions in all files, try this: find . -name ‘*.xml’ | xargs awk ‘/<crontab>/,/<\/crontab>/{print FILENAME, $0; nextfile}’ … Læs resten

Udgivet i Knowledge Base | Skriv en kommentar