Skip to content

Instantly share code, notes, and snippets.

@sampersand
Created February 6, 2025 07:05
Show Gist options
  • Save sampersand/86dc596f290d24759625cd7a969308ef to your computer and use it in GitHub Desktop.
Save sampersand/86dc596f290d24759625cd7a969308ef to your computer and use it in GitHub Desktop.
## SH
while test $count -gt 0; do
echo $string\\c
count=`expr $count - 1`
done
## CSH
while ( $count > 0 )
echo -n $string
@ count--
end
# or
repeat $count echo -n $string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment