|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
how can i make a one-name-per-line text file from the filenames of a directory? thanks for any help
Luke PS I know it uses sed or something, but my attempts are not working! |
|
#2
|
|||
|
|||
|
probably no help and you know it already
make file /my/dir/whatever.txt #cd mydir for list #script /my/dir/whatever.txt #ls lists then format newbie way but all i can say |
|
#3
|
|||
|
|||
|
dir contents to file
ls -1 > myfile.txt
may be irix specific - check your man page: man ls |
|
#4
|
|||
|
|||
|
output a dir's filenames to a txt file
to get a one-name-per-line text file from the filenames of a directory, you can do this :
ls /path/to/dir/ > /path/to/dir/filenames.txt That should do it. -Eric |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > output a dir's filenames to a txt file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|