awk '/\/\./ { print }' all.txt > dotfiles.sh
- call awk and open command with single quote
- open pattern with slash
- pattern is
- escaped slash
- escaped dot
- close pattern with slash
- call print and close command with a single quote
- input file name
- redirect results to
- output file name
awk '/.+[0-9]{2,4}x[0-9]{2,4}\.[a-z]{3,4}/ { print }' all.txt > wpresizes.sh
- call awk and open command with single quote
- open pattern with slash
- pattern is
- at least one character
- from 2 to 4 numerals
- an ex
- from 2 to 4 numerals
- a dot
- 3 or 4 lowercase letters (file name extension
- close pattern with slash
- call print and close command with a single quote
- input file name
- redirect results to
- output file name