Jul 22, 2004 #1 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.
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.
Jul 22, 2004 #2 PHV MIS Nov 8, 2002 53,708 FR 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 Upvote 0 Downvote
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
Jul 22, 2004 Thread starter #3 k0nnie Technical User Jul 22, 2004 4 US The number of delimitters in a file. It is a huge file and | are being used as delimitters. Thanks. I looked at you link. Upvote 0 Downvote
The number of delimitters in a file. It is a huge file and | are being used as delimitters. Thanks. I looked at you link.
Jul 22, 2004 #4 PHV MIS Nov 8, 2002 53,708 FR 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 Upvote 0 Downvote
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
Jul 22, 2004 Thread starter #5 k0nnie Technical User Jul 22, 2004 4 US Thanks for your tip. I'll try it. Upvote 0 Downvote
Jul 26, 2004 Thread starter #6 k0nnie Technical User Jul 22, 2004 4 US Thanks it worked K0nnie Upvote 0 Downvote