Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!mauxci!problem!druid!darcy From: darcy@druid.uucp (D'Arcy J.M. Cain) Newsgroups: comp.unix.questions Subject: Re: Globbing in csh Message-ID: <1991Feb15.135812.5010@druid.uucp> Date: 15 Feb 91 13:58:12 GMT References: <857@caslon.cs.arizona.edu> Distribution: na Organization: D'Arcy Cain Consulting, West Hill, Ontario Lines: 20 In article <857@caslon.cs.arizona.edu> Jim Armstrong writes: >Is is possible to match a group of files in alphabetic order using Here is a general solution rather than a csh one: ls | awk '{ if ($1 == "george") {start = 1} else if (start) print ;}' Or even simpler: ls | sed '1,/george/d' So your example would be: cat `ls | sed '1,/george/d'` > out_file -- D'Arcy J.M. Cain (darcy@druid) | D'Arcy Cain Consulting | There's no government West Hill, Ontario, Canada | like no government! +1 416 281 6094 |