View Single Post
  #7   (View Single Post)  
Old 3rd November 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: New Zealand
Posts: 2,200
Default

Quote:
I don't know of a csh feature to do this, but you might use the port misc/seq2.
seq is the GNU/Linux tool, FreeBSD, OpenBSD (And NetBSD?) come with jot(1), i.e.:
Code:
% jot -s ' ' - 0 9
0 1 2 3 4 5 6 7 8 9
Arguably, the built-in bash syntax is easier to use and understand ... But the end result is the same nonetheless.

tcsh is (in my opinion) an excellent interactive shell, it supports most features bash does, and generally just works well.
However, (t)csh is not a very good scripting language, as stated above, this is a entirely different task, FreeBSD has /bin/sh for that.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote