Search Results

Search: Posts Made By: saikiransvs
24,891
Posted By saikiransvs
Hi, If the maxdepth option does not work for...
Hi,

If the maxdepth option does not work for find on your OS, use the below command

find /Required_Directory/ -type f -exec basename {} \; > file

But this will give you the files...
24,891
Posted By saikiransvs
Use the below command to write the list of files...
Use the below command to write the list of files to file.

find /Required_Directory/ -maxdepth 1 -type f -exec basename {} \; > file

:)
Showing results 1 to 2 of 2

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