home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / question / 9309 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  892 b 

  1. Path: sparky!uunet!mcsun!fuug!demos!kiae!glas!demos!news.eng.c!convex.COM!tchrist
  2. From: tchrist@convex.COM
  3. Newsgroups: comp.unix.questions
  4. Date: 17 Jul 92 23:04 MDT
  5. Subject: Re: need "ls"-like output w/full path
  6. Sender: Notesfile to Usenet Gateway <notes@glas.apc.org>
  7. Message-ID: <1992Jul17.190452.1265@news.eng.c>
  8. References: <1992Jul13.234001.18747@amhux2.am>
  9. Nf-ID: #R:1992Jul13.234001.18747@amhux2.am:851811750:1992Jul17.190452.1265@news.eng.c:1024024507:001:359
  10. Nf-From: convex.COM!tchrist    Jul 17 23:04:00 1992
  11. Lines: 19
  12.  
  13.  
  14. From the keyboard of afsipmh@cidsv07.Berkeley.EDU (Patrick Hertel):
  15. :What about:
  16. :#!/bin/sh
  17. :for i in *
  18. :do
  19. :echo `pwd`/$i
  20. :done
  21.  
  22. Functionally correct, but run pwd once first and put
  23. it in a variable to save one process per file.
  24.  
  25. --tom
  26. -- 
  27.     Tom Christiansen      tchrist@convex.com      convex!tchrist
  28.  
  29.  
  30. Every absurdity has a champion who will defend it.
  31.  
  32.