Search Results

Search: Posts Made By: saikiransvs
24,827
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,827
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 01:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy