NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Extract tar balls



On Oct 29, 23:15, Bob Bernstein wrote:
}
} I'm trying to follow _The NetBSD Guide_, but I am stymied by 
} these instructions, at 
} https://netbsd.org/docs/guide/en/chap-fetch.html
} 
} $ for file in *.tgz
} > do
} > tar -xzf $file -C /
} > done
} 
} Entering that first line and pressing <Enter> just yields
} 
} "for: Command not found."
} 
} Are those steps, as printed, dependent on the use of a certain 
} shell? I like tcsh.

     Most instructions are printed with Bourne Shell syntax in
mind.  If you don't use the default shell, then it is up to you to
know how your shell functions.  The equivalent csh syntax is:

forech file (*.tgz)
tar -xzf $file -C /
end

}-- End of excerpt from Bob Bernstein


Home | Main Index | Thread Index | Old Index