home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!fuug!demos!kiae!glas!demos!news.eng.c!convex.COM!tchrist
- From: tchrist@convex.COM
- Newsgroups: comp.unix.questions
- Date: 17 Jul 92 23:04 MDT
- Subject: Re: need "ls"-like output w/full path
- Sender: Notesfile to Usenet Gateway <notes@glas.apc.org>
- Message-ID: <1992Jul17.190452.1265@news.eng.c>
- References: <1992Jul13.234001.18747@amhux2.am>
- Nf-ID: #R:1992Jul13.234001.18747@amhux2.am:851811750:1992Jul17.190452.1265@news.eng.c:1024024507:001:359
- Nf-From: convex.COM!tchrist Jul 17 23:04:00 1992
- Lines: 19
-
-
- From the keyboard of afsipmh@cidsv07.Berkeley.EDU (Patrick Hertel):
- :What about:
- :#!/bin/sh
- :for i in *
- :do
- :echo `pwd`/$i
- :done
-
- Functionally correct, but run pwd once first and put
- it in a variable to save one process per file.
-
- --tom
- --
- Tom Christiansen tchrist@convex.com convex!tchrist
-
-
- Every absurdity has a champion who will defend it.
-
-