cancel
Showing results for 
Search instead for 
Did you mean: 

command to find a particular file inside a directory

former_member182921
Participant
0 Kudos

Hi SAP Expert ,

I want to check a file which is in directory which is having many sub directories .

Is there any command to find a particular file inside a directory .

Regards,

Abhishek

  • SAP Managed Tags:

Accepted Solutions (0)

Answers (2)

Answers (2)

csaba_goetz
Contributor
0 Kudos

Hello Abishek,

The correct syntax of the command is:

find /<folder> -name "filename"

e.g.

probud2:bcsadm 52> find /usr/sap/BCS -name "disp+work*"

/usr/sap/BCS/D03/exe/disp+work

/usr/sap/BCS/D03/exe/disp+work_old

/usr/sap/BCS/D03/exe1/exe/disp+work

/usr/sap/BCS/D03/exe1/exe/disp+work.filepart

/usr/sap/BCS/EHPI/abap/exe/disp+work

/usr/sap/BCS/EHPI/abap/exenew/disp+work

/usr/sap/BCS/D05/exe/disp+work

/usr/sap/BCS/D05/exe/disp+work_old

probud2:bcsadm 53>

Best regards,

Adam Goetz

Former Member
0 Kudos

# find -name ./ "file name"

Thanks,

Nirav Kundalia