> I'm assuming that every file needs to be pre-fixed with "file://" > then this should do if for you: > ls *.ra | sed -e 's.^.file://.' I'm guessing that the output should be down the page, ls tends to do ls -x on my system, which isn't what you want so: ls -1 *.ra | sed -e 's.^.file://.' Might be what you require. -- John