Skip to main content
4 events
when toggle format what by license comment
Apr 13, 2017 at 12:36 history edited CommunityBot
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
Mar 1, 2016 at 16:27 comment added Stéphane Chazelas What's the point of that c array? word_count() { echo "$#"; } would be enough. The point of @Gilles solution is to store the count in a returned variable to avoid having to use command substitution (which involves a fork and pipe in shells other than ksh93).
May 14, 2015 at 14:14 history edited Stéphane Chazelas CC BY-SA 3.0
missing quotes
Aug 24, 2010 at 1:16 history answered Dennis Williamson CC BY-SA 2.5