Created
August 29, 2016 09:12
-
-
Save paveljasek/972868e1066e02dfa52d40feefef42f2 to your computer and use it in GitHub Desktop.
Count number of product items in a XML feed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Search for lines including a string and count number of these lines | |
grep -o '<item>' feed.xml | wc -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment