bash seq for loop not working on osx
I have a very simple loop (taken from
http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-7.html):
#!/bin/bash
for i in `seq 1 10`;
do
echo $i
done
This works perfectly on Scientific linux (bash --version
GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.)
But produces the following error on OSX 10.6.6:
~/scripts > ./test.sh
./test.sh: line 5: seq: command not found
~/scripts > bash --version
GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)
Copyright (C) 2007 Free Software Foundation, Inc.
~/scripts >
Where is the seq command on OSX?
#!/bin/bash
for i in `seq 1 10`;
do
echo $i
done
This works perfectly on Scientific linux (bash --version
GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.)
But produces the following error on OSX 10.6.6:
~/scripts > ./test.sh
./test.sh: line 5: seq: command not found
~/scripts > bash --version
GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)
Copyright (C) 2007 Free Software Foundation, Inc.
~/scripts >
Where is the seq command on OSX?
MacBook Pro, Mac OS X (10.6.6)