Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read files name from folder

Status
Not open for further replies.

mosama1

Technical User
Apr 23, 2008
7
0
0
EG
Hi there,
I want to read the file's name from specific path then write it in another file,so whats the commands to do this.
 
You run the command, and pipe the output to the file like this:
Code:
ls /path/to/directory > anotherfile.txt

:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top