Path: utzoo!attcan!uunet!mcsun!hp4nl!phigate!ehviea!leo From: leo@ehviea.ine.philips.nl (Leo de Wit) Newsgroups: comp.unix.questions Subject: Re: Unnecessarily long pipelines Message-ID: <836@ehviea.ine.philips.nl> Date: 21 Jul 90 19:44:18 GMT References: <2358@root44.co.uk> <3043@skye.ed.ac.uk> Reply-To: leo@ehviea.UUCP (Leo de Wit) Organization: Philips I&E Eindhoven Lines: 15 In article <3043@skye.ed.ac.uk> richard@aiai.UUCP (Richard Tobin) writes: |In article <2358@root44.co.uk> gwc@root.co.uk (Geoff Clare) writes: |>Why is it that people string together lots of "grep" commands in a |>pipeline, when they could do the same job with a single "sed" or "awk" |>command? | |Because they can remember how to do it without thinking of course. Just |like most csh users type "mv fred.c fred.c.old" instead of the shorter |"mv fred.c{,.old}" Yup, especially if your csh supports filename completion (this also allows you to check whether there's already a *.old file without retyping the command). Leo.