I like to write the contents of ls -l into a file in unix. What is the command.
Can somebody help.
I di ls -l>tst.dat
but it is writting only few file names.
There are about 2000 files in this directory.
--Easwran
Printable View
I like to write the contents of ls -l into a file in unix. What is the command.
Can somebody help.
I di ls -l>tst.dat
but it is writting only few file names.
There are about 2000 files in this directory.
--Easwran
That's the way you do it!
ls -l > myfile.out
Use ls -la to get a listing of ALL files in your working directory (and ls -la > file.name).
and ls -lR to recursively go through sub-directories