PDA

View Full Version : Shell script to print folder contents



medfojo
September 6th, 2008, 01:45 AM
Hello.

I am knew to shell scripting and I just want to know how to echo the contents of a folder.

Running this script would print the contents of a folder (folder path is static/hard-coded) to the terminal.

I'm guessing this is real easy, I just don't know what I'm doing. Thanks

medfojo
September 6th, 2008, 01:50 AM
Nevermind.hehe. I actually did know this, just being air headed.

dir [path]

ghostdog74
September 6th, 2008, 02:45 AM
standard is the use ls.