Sponsored Content
Top Forums Shell Programming and Scripting Delete files not in English language Post 302542139 by shoaibjameel123 on Tuesday 26th of July 2011 09:29:24 PM
Old 07-26-2011
Delete files not in English language

Hi All,

I have some 10,000 files in a directory. Now, some of those files are in English and many are not. They are in other languages like Arabic, Chinese, German, Portuguese, Japanese etc.

Is there any way to delete those files that are not in English as I want to only keep English files and remove all others?

I am using Linux and BASH.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Delete all files if another files in the same directory has a matching occurence of a specific word

Hello, I have several files in a specific directory. A specific string in one file can occur in another files. If this string is in other files. Then all the files in which this string occured should be deleted and only 1 file should remain with the string. Example. file1 ShortName "Blue... (2 Replies)
Discussion started by: premier_de
2 Replies

2. Shell Programming and Scripting

How to find the matching numbers between 2 files Using R language??

Hi friends,, I need ur help very urgently.I have 2 files which have more than 5000 numbers,I want to find the matching numbers between 2 files using R language.I dont know how to use for loop in R.I tried to get a result,,but didnt get, file1 is like 1061909 1162391... (1 Reply)
Discussion started by: sureshraj
1 Replies

3. Programming

C language Header files

Hi people I'm trying to do a school project and I've a situation wich is bothering me, imagine We've a program and that programs devided in multiple files "dotC1.c" and "dotC2.c" (for example) and they include our own header "header.h", and if We are using some libraries int both files it would... (2 Replies)
Discussion started by: pharaoh
2 Replies

4. Solaris

Exceed XDMCP Query: Menu displayed is tiny size when logged in with language other than English

Hi All, I'm new for Solaris and exceed both. I tried searching in forum but couldn't locate any similar issue posted so posting the issue. I'm remotely connecting a solaris machine using Exceed XDMCP Query and while login I select Chinese language / locale for login. After login when I... (0 Replies)
Discussion started by: kshukla08
0 Replies

5. Shell Programming and Scripting

Need help creating a script to FTP files to a server and then delete the files that were transfered.

I am trying to FTP files to a Windows server through my Linux machine. I have setup the file transfer with no problems but am having problem deleting those files from the Linux box. My current non-working solution is below. Any ideas, anyone?? :wall: Please be gentle, I'm fairly new to this... (4 Replies)
Discussion started by: jmalfhs
4 Replies

6. Shell Programming and Scripting

Script needed to delete to the list of files in a directory based on last created & delete them

Hi My directory structure is as below. dir1, dir2, dir3 I have the list of files to be deleted in the below path as below. /staging/retain_for_2years/Cleanup/log $ ls -lrt total 0 drwxr-xr-x 2 nobody nobody 256 Mar 01 16:15 01-MAR-2015_SPDBS2 drwxr-xr-x 2 root ... (2 Replies)
Discussion started by: prasadn
2 Replies

7. Red Hat

The English characters distorted after add a right to left language

i need for a right to left language support, in red hat EL6 , for repository problem, i never could to use from yum-solution, when i try from Gnu Desktop: Desktop --> system --> preference --> keyboard --> layouts --> Add and Add second language,the second language is ok but i lose English... (4 Replies)
Discussion started by: alwaystudent
4 Replies

8. Programming

How to write in other language in text/xml file by reading english text/xml file using C++?

Hello Team, I have 2 files.one contains english text and another contains Japanese. so i have to read english text and replace the text with Japanesh text in third file. Basically, I need a help to write japanese language in text/xml file.I heard wstring does this.Not sure how do i write... (2 Replies)
Discussion started by: SA_Palani
2 Replies

9. UNIX for Beginners Questions & Answers

Keep Linux in english while windows in native language

hi, I want that a language change in windows won't effect Linux language (which should be always English). I had that feature but A Windows update changed it. How can I fix it? (7 Replies)
Discussion started by: daivon
7 Replies
ppdc(1) 							    Apple Inc.								   ppdc(1)

NAME
ppdc - cups ppd compiler SYNOPSIS
ppdc [ -D name[=value] ] [ -I include-directory ] [ -c message-catalog ] [ -d output-directory ] [ -l language(s) ] [-m] [-t] [ -v ] [ -z ] [ --cr ] [ --crlf ] [ --lf ] source-file DESCRIPTION
ppdc compiles PPDC source files into one or more PPD files. This program is deprecated and will be removed in a future release of CUPS. The -D option sets the named variable for use in the source file. It is equivalent to using the #define directive in the source file. The -I option specifies an alternate include directory; multiple -I options can be supplied to add additional directories. The -c option specifies a single message catalog file in GNU gettext source format (filename.po) to be used for localization. The -d option specifies the output directory for PPD files. The default output directory is "ppd". The -l option specifies one or more languages to use when localizing the PPD file(s). The default language is "en" (English). Separate mul- tiple languages with commas, for example "de_DE,en_UK,es_ES,es_MX,es_US,fr_CA,fr_FR,it_IT" will create PPD files with German, UK English, Spanish (Spain, Mexico, and US), French (France and Canada), and Italian languages in each file. The -m option specifies that the output filename should be based on the ModelName value instead of FileName or PCFilenName. The -t option specifies that PPD files should be tested instead of generated. The -v option provides more verbose output, basically a running status of which files are being loaded or written. The -z option generates compressed PPD files (filename.ppd.gz). The default is to generate uncompressed PPD files. The --cr, --crlf, and --lf options specify the line ending to use - carriage return, carriage return and line feed, or line feed. The default is to use the line feed character alone. SEE ALSO
ppdhtml(1), ppdi(1), ppdmerge(1), ppdpo(1), ppdcfile(5) http://localhost:631/help COPYRIGHT
Copyright 2007-2013 by Apple Inc. 15 February 2012 CUPS ppdc(1)
All times are GMT -4. The time now is 07:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy