Sponsored Content
Top Forums Shell Programming and Scripting cp -Rp excluding certain files? Post 302356504 by pcwiz on Friday 25th of September 2009 06:16:08 PM
Old 09-25-2009
I'm using Mac OS X 10.6.1 with the standard bash shell.

source_tree:
- Contents
-- Resources
---- English.lproj
---- French.lproj
---- German.lproj

destination_tree is an exact copy of the source_tree excluding the .lproj files (except for English.lproj or en.lproj)
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Excluding Old Files on AWK !!!

People, I'm sorry because my english is not very good, I'm from Brazil and I need to create shell script that exclude old files. How can I do this? I have an AWK script that works for Unix TRU64 (DIGITAL) and the same script does not work for SUN SOLARIS 5.8. Follows the script fragment: ... (2 Replies)
Discussion started by: alexalvarenga
2 Replies

2. Shell Programming and Scripting

search for files excluding binary files

Hi All, I need a solution on my following find command find ./.. -name '*.file' -print BTW This gives me the output as belows ./rtlsim/test/ADCONV0/infile/ad0_dagctst.file ./rtlsim/test/ADCONV0/user_command.file ./rtlsim/test/ADCONV0/simv.daidir/scsim.db.dir/scsim.db.file... (2 Replies)
Discussion started by: user_prady
2 Replies

3. UNIX for Advanced & Expert Users

find excluding the hidden files

Hi , I am trying to use the find command with delete in a directory . Even though i use a wil character search the find command is checking the hidden files which inturn results in error . Can i avoid look that into the hidden files ?? I am using HP unix . find /cv1/ -name "ite*"... (3 Replies)
Discussion started by: arunkumar_mca
3 Replies

4. UNIX for Advanced & Expert Users

listing files excluding files from control file

I have a directory named Project.I have a control file which contains valid list of files.I would like list the files from directory Project which contains files other than listed in the control file. Sample control file: TEST SEND SFFFILE CONTL The directory contains followign... (15 Replies)
Discussion started by: ukatru
15 Replies

5. UNIX for Dummies Questions & Answers

Copy Directories excluding files

Hi guys, I want to copy folder and sub folders only. I don't want the files. If i use cp -r command it will copy entirely with files. Could any one suggest me. Thanks in advance (1 Reply)
Discussion started by: karthik82
1 Replies

6. UNIX for Dummies Questions & Answers

Count number of files in directory excluding existing files

Hi, Please let me know how to find out number of files in a directory excluding existing files..The existing file format will be unknown..each time.. Thanks (3 Replies)
Discussion started by: ammu
3 Replies

7. Shell Programming and Scripting

How to tar this dir excluding some files .au?

Hi all, Thanks for previous help. How to include this in script, I need to tar files which are present in /var/spool/cron/crontabs directory (used for crontab) excluding those files which are having extension .au /var/spool/cron/crontabs>>ls -ltr | grep -v .au total 438 -rw------- 1... (11 Replies)
Discussion started by: manalisharmabe
11 Replies

8. UNIX for Advanced & Expert Users

Find all files in the current directory excluding hidden files and directories

Find all files in the current directory only excluding hidden directories and files. For the below command, though it's not deleting hidden files.. it is traversing through the hidden directories and listing normal which should be avoided. `find . \( ! -name ".*" -prune \) -mtime +${n_days}... (7 Replies)
Discussion started by: ksailesh1
7 Replies

9. Shell Programming and Scripting

Append string to all the files inside a directory excluding subdirectories and .zip files

Hii, Could someone help me to append string to the starting of all the filenames inside a directory but it should exclude .zip files and subdirectories. Eg. file1: test1.log file2: test2.log file3 test.zip After running the script file1: string_test1.log file2: string_test2.log file3:... (4 Replies)
Discussion started by: Ravi Kishore
4 Replies

10. Shell Programming and Scripting

Excluding files with timestamp from ls

Hi, I have a list of files all starting with aa but some of them also have a timestamp suffixed which I want to remove from my search. For e.g. aa1 aa2 aa.15-05-25_20:41:05.20150611 aa.15-05-26_20:29:40.20150611 aa.15-05-27_20:28:32.20150611 If I do ls -1 aa*, it will list everything... (7 Replies)
Discussion started by: swasid
7 Replies
lang(5int)																lang(5int)

Name
       lang - language names

Description
       The  language  support databases used by are stored in the directory If either the language support databases are moved or you specify your
       own language support database, it is necessary to set the INTLINFO environment variable to the new location of these tables. The syntax	of
       this environment variable is identical to See the reference page for more information.

       Should  you  want to create your own database, use the reference  page and the Guide to Developing International Software as references for
       what information your database should contain.  After you create the database, you can specify it by using the international compiler,

       The following table defines the supplied settings of the LANG and LC_ environment variables.

       ---------------------------------------------------------------------
       Database      Language	Territory	 Codeset       Use
       ---------------------------------------------------------------------
       ENG_GB.MCS    English	United Kingdom	 DEC MCS       VT200 series
       FRE_FR.MCS    French	France
       GER_DE.MCS    German	Germany

       ENG_GB.8859   English	United Kingdom	 ISO Latin-1   VT300 series
       FRE_FR.8859   French	France
       GER_DE.8859   German	Germany

       ENG_GB.646    English	United Kingdom	 ISO 646       VT100 series
       FRE_FR.646    French	France
       GER_DE.646    German	Germany
       ---------------------------------------------------------------------

       In addition to the default collation definition for the GER_DE.nnn language, Digital provides a character  collation  table  that  collates
       information  using  the	German telephone directory ordering of data. The following example shows how to set the variable to use this table
       with the ISO Latin-1 codeset:
       LC_COLLATE = GER_DE.8859@P_TELEPHONE

See Also
       ic(1int), intro(3int), nl_langinfo(3int), setlocale(3int), environ(5int)
       Guide to Developing International Software

																	lang(5int)
All times are GMT -4. The time now is 03:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy