Delete unused language files

August 26, 2007 23:47, contributed by: seagull

Thanks to Werner for this tip:

Sometimes you want to delete some stuff before uploading your current Seagull project to your webserver.

Here is a little one-liner to delete all unused language files except german and english ones:

find . -path '*/lang/*' ! -name 'german*' ! -name 'english*' -exec rm {} \;

Use at your own risk in modules directory, try without -exec parameter first to see what files are found.

[back to list]

comments


be the first to leave a comment
Enter your comment Note: Comments must be approved before being displayed.
  #####   #         #####    #####  
 #     #  #    #   #     #  #     # 
       #  #    #   #        #     # 
  #####   #    #   ######    #####  
 #        #######  #     #  #     # 
 #             #   #     #  #     # 
 #######       #    #####    #####  
 

At a Glance

Sponsors

Login

Username Password

Not Registered?
Forgot Your Password

*denotes required field

Community

 
Seagull PHP Framework Seagull PHP Framework

Sponsored by

The Seagull project is sponsored by Seagull Systems, see the range of products offered.

Readers