Search Results

Search: Posts Made By: newbie100
3,284
Posted By newbie100
Ls to text file on separate lines
hi,

I'm trying to print out the contents of a folder into a .txt file.

The code I'm trying amongst variations is:

ls -1 > filenames.txt

but it prints them all on the same line ie.
...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 07:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy