Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!zaphod.mps.ohio-state.edu!rpi!sarah!leah.albany.edu!wfh58 From: wfh58@leah.albany.edu (William F. Hammond) Newsgroups: comp.sys.amiga.tech Subject: Re: Parsing filenames with blanks inside Rexx Summary: Pipe l-formatted list output into your Rexx script Message-ID: <1991Jan7.164643.20116@sarah.albany.edu> Date: 7 Jan 91 16:46:43 GMT References: <1400@tardis.Tymnet.COM> Sender: news@sarah.albany.edu (News Administrator) Organization: Dept of Math & Stat, SUNYA, Albany, NY Lines: 22 In article <1400@tardis.Tymnet.COM> jms@tardis.Tymnet.COM (Joe Smith) writes: > . . . > files=showdir(dir) > do while words(files) > 0 > . . . >I'm having problem handling filenames that contain embedded blanks. > . . . >Joe Smith (408)922-6220 | SMTP: jms@tardis.tymnet.com or jms@gemini.tymnet.com Aside from using the optional "separator" argument with "showdir", you could use list dir_name lformat "%s%s" | rx rexx_script where rexx_script looks to STDIN for filenames. If your shell does not support '|' -style pipes, there is probably a way to use "PIPE:" instead. ---------------------------------------------------------------------- William F. Hammond Dept. of Mathematics & Statistics 518-442-4625 SUNYA, Albany, NY 12222 hammond@leah.albany.edu wfh58@albnyvms.bitnet ----------------------------------------------------------------------