----- Original Message ----- From: "Shane P. Lee" <tacodog21@yahoo.com> To: <CIRCLE@post.queensu.ca> Sent: Thursday, April 18, 2002 7:05 AM Subject: [CIRCLE] Directory grep? > I am trying to scan a directory and pipe it's contents back to > the MUD. > I'm needing to scan a series of directories from "a" to "z" and > only return the filenames inside. system("ls [a-z]/* -1 --color=none | sed -e"s/[a-z]\///" >tempfile"); [parse tempfile] > If anyone can help, please send me something, if only an idea. > BTW, I'm on a Linux Redhat server. Glad I remembered that :-) You should have access to sed, then. Welcor -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | | Newbie List: http://groups.yahoo.com/group/circle-newbies/ | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/25/03 PDT