Tr: Difference between revisions

From Wiki
Jump to navigation Jump to search
Created page with '{{lowercase title}} Count the number of slashes in a string: <pre> echo "/incoming/data/" | tr -dc '/' | wc -c </pre>'
(No difference)

Revision as of 18:00, 20 April 2011

Count the number of slashes in a string:

echo "/incoming/data/" | tr -dc '/' | wc -c