Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The issue withdelimitters

Status
Not open for further replies.

k0nnie

Technical User
Jul 22, 2004
4
US
Does anyone have a quick and dirty script to count the number of delimitters say | in a file. I am new to this and in dire straits.
 
A number of delimiters in each line or in whole file ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
The number of delimitters in a file. It is a huge file and | are being used as delimitters.

Thanks. I looked at you link.
 
Something like this ?
tr -d -c '|' </path/to/input | wc -c

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top