From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Stalker To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-reply-to: <7980ce1ef1a3d761e56c7ef111341699@coraid.com> References: <20091003160327.GA15021@nipl.net> <7359f0490910031001s3354e29awfb916f953bb96ec@mail.gmail.com> <20091003183127.GC15021@nipl.net> <200910051708.aa33544@salmon.maths.tcd.ie> <7980ce1ef1a3d761e56c7ef111341699@coraid.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <291.1254763214.1@kryten> Date: Mon, 5 Oct 2009 18:20:23 +0100 Message-ID: <200910051820.ab25950@salmon.maths.tcd.ie> Subject: Re: [9fans] mishandling empty lists - let's fix it Topicbox-Message-UUID: 7f072012-ead5-11e9-9d60-3106f5b1d025 > i think this is all a bit dramatic. ... > if i could roll back time, i would push > for regular expressions instead of the > goofy shell matching. then knuth could > have to say that unix is 29 definitions of > regular expressions living under one roof. > :-) But you can use regular expressions instead of goofy shell matching. Find and ls give you lists of file names and grep prunes them for you. Shell command substitution then puts them in the right place in the command, or use xargs when appropriate. I don't claim that globbing is a horrible evil, merely that it is an unnecessary evil. -- John Stalker School of Mathematics Trinity College Dublin tel +353 1 896 1983 fax +353 1 896 2282