Here I search for the contents of all src (from an HTML tag) attributes in the files in a folder. sed -n 's/.*src="\([^"]*\).*/\1/p' *