Artificial intelligent assistant

Delete files with same name at the end of the file Delete files with same name at the end of the file i have a lot of files in my folder and sub directories like ajax_hostel_room_master.php.php class_hostel_registration.php.php ajax_hostel_room_master.php.php.php class_hostel_registration.php.php.php ajax_hostel_room_shifting.php class_hostel_room_allocation.php ajax_hostel_room_shifting.php.php class_hostel_room_allocation.php.php ajax_hostel_room_shifting.php.php.php class_hostel_room_allocation.php.php.php I want to keep the filename.php and delete the other files like filename.php.php

`rm -- *.php.php` this will delete all files that have more than one php extension

for all sub directories you need


find /scripts/tmp -name "*.php.php" -exec rm {} +


`/scripts/tmp` is the directory under which my files and subdirectories existed

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy ab2fc60e011fb1dcc2cf4dcf44de46e3