Getting list of files from a folder in a text file

I keep always forgetting the exact parameters to use, and need to write this down somewhere :) It might also be helpful for others:
 In Windows:
WindowsUnix/Linux/OS X
dir /b >folderlist.txt
ls > folderlist.txt

and if you also want to see the subfolders with their full paths:
WindowsUnix/Linux/OS X
dir /b /s >folderlist.txt
ls -R > folderlist.txt

Comments

Popular posts from this blog

Exporting Skype Chat/Skype Contacts to csv file using the shell script and sqlite3 (usually already installed on mac)

trim() not supported by IE7 and IE8

Finally, clear explanation of TinyOS 2.x serial packet structure