Re: 'foreach' command
Geoff Wing <[email protected]>
| Newsgroups | gmane.os.netbsd.help |
|---|---|
| Organization | PrimeNet Computer Consultants |
| Message-ID | <[email protected]> |
TM <[email protected]> typed: : The following is an excerpt form the NetBSD guide - : "Chapter 27 Obtaining the sources" : You now must extract them all to /: : % foreach file (*.tgz) : ? tar -xzf $file -C / : ? end : What must I install from ports to have 'foreach' program in my $PATH? : I installed 'tcl' but still no good. My OS is NetBSD-3.1. Your shell with either use csh or Bourne shell language (or bits of both). The above is for csh type shells. In Bourne shell style it is: for file in *.tgz; do tar -xzf $file -C /; done Or you could just type "csh", then use the guide command. The guide probably presumes csh because traditionally csh was the default and the installation did not give you a choice. Regards, Geoff