How to list all file list in one file per line
In Linux and Unix environment you can list files with "ls" command. But how can you list one file per line :
-1 parameter is used to force listing one file per line. If you do not want "." and ".." file you can use -A parameter also.
"ls -A1" can be used to get only file names with one per line.
No comments:
Post a Comment