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

Re: Bourn Shell Script While Loop Problems



On Fri, Oct 21, 2005 at 09:57:13PM -0400, Roberto C. Sanchez wrote:
> On Fri, Oct 21, 2005 at 08:45:38PM -0500, Martin McCormick wrote:
> > 	A Bourn shell script I am trying to run isn't behaving like I
> > expected it to and I am not sure how to make it play nice.  There are
> > a bunch of DNS zone files that need the bottom 6 lines chopped off and
> > I hoped to do that with a while loop driven by the ls command.  In
> 
> Why not just use wc and sed?

Why not just 'head'?

head -n -6 

-- 
"Money is always there, but the pockets change."
		-- Gertrude Stein
    Rick Pasotto    rick@niof.net    http://www.niof.net



Reply to: