09-14-2011
copying files of certain extension?
Hi,
I am using scp to copy a certain directory over the network. This folder contain some files that I am not interested in. My question is; is it possible to copy files of certain extension only, keeping the same directory hierarchy as it is (that is sub-folders)?
Thanks
10 More Discussions You Might Find Interesting
1. HP-UX
I am brand new to hp unix systems. I see some files without extension on this system. If I type name of the file it shows me so many detail but does not take me back to command prompt. What are these files and how do I come back to command prompt? Please help (1 Reply)
Discussion started by: rajahindustani
1 Replies
2. Linux
Hi,
I have a root directory which has a big number of other subdirectories and contains a big number of files. I want to copy all these files and directories to another folder except files with certain extension, say .txt, files - how may I do this?
Thanks,
faizlo (8 Replies)
Discussion started by: faizlo
8 Replies
3. UNIX for Advanced & Expert Users
I am userB and have a dir
/temp1
This dir is owned by me.
How do I recursively copy files from another users's dir userA?
I need to preserve the original user who created files, original group information, original create date, mod date etc.
I tried
cp -pr /home/userA/* .
... (2 Replies)
Discussion started by: Hangman2
2 Replies
4. Shell Programming and Scripting
Hi All,
I am doing this for svn patch making. I got the list of files to make the patch. I have the list in a file with path of all the files.
To Do
From Directory : /myproject/MainDir
To Directory : /myproject/data
List of files need to copy is in the file: /myproject/filesList.txt
... (4 Replies)
Discussion started by: linuxadmin
4 Replies
5. UNIX for Dummies Questions & Answers
Let's say I wanna Delete all the files of a certain extension exept one.
How do I do it?
I know, if you wanna delete them all is with the command:
find ~/ -type f -iname '*.txt' -exec rm {} ~/ ';'
But If I want to keep an Specific file? Let's say I wanna keep 'Log.txt'. How do I do it? (1 Reply)
Discussion started by: lsteamer
1 Replies
6. Shell Programming and Scripting
trying to copy all the files without extension then add
"*.txt" but its not working is there any other way and i do not want to use
cpio -vdump just want to use copy command
FROM=/usr/share/doc
TO=/aleza/doc
#the follow function copies all the files without extensions
call(){
cd $FROM... (3 Replies)
Discussion started by: elginmulizwa
3 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I know that to list files with no extension, we can use..
ls -1 | grep -v "\."
And to list .prog files, we can use..
ls -1 *.prog
or
ls -1 | grep '.prog$' (4 Replies)
Discussion started by: adshocker
4 Replies
8. Shell Programming and Scripting
Hi
I Have a directory and i have some files below
abc.txt
abc.gif
gtee.txt
ghod.pid
umni.log
unmi.tar
How can use glob function to grep abc files , i have created a variable "text" and i assigned value as "abc", please suggest me how can we use glob.glob( ) to get the output as below... (2 Replies)
Discussion started by: kumar85shiv
2 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
I want to fetch the files based on .done file and display the .csv files and Wil take .csv files for processing.
1.I need to display the .done files from the directory.
2.next i need to search for the .Csv files based on .done file.then move .csv files for the one directory
... (2 Replies)
Discussion started by: girija.g6
2 Replies
10. Shell Programming and Scripting
Hi,
I have multiple files that read:
Asa.txt
Bad.txt
Gnu.txt
And I want to rename them using awk to
Asa_ddmmyytt.txt and so on
...
If there is a single command or more efficient executable please share!
Thanks! (4 Replies)
Discussion started by: Jesshelle David
4 Replies
LEARN ABOUT SUNOS
intltoolize
intltoolize(1) User Commands intltoolize(1)
NAME
intltoolize - prepare a source code tree to use the intltool utilities
SYNOPSIS
intltoolize [--automake] [--copy] [--debug] [--dry-run] [--force] [--help] [--version]
DESCRIPTION
intltoolize prepares a package to use the intltool utilities. intltoolize links or copies various files needed by the intltool utilities to
the appropriate location, for use when building the package. You must change your working directory to the top-level directory of the pack-
age before running intltoolize.
OPTIONS
The following options are supported:
--automake Work silently, and assume that Automake is in use.
--copy Copy files, instead of creating symbolic links to the files. You can also use -c to specify this option.
--debug Enable verbose shell tracing.
--dry-run Print the commands but do not run the commands. You can also use -n to specify this option.
--force Replace existing files. You can also use -f to specify this option.
--help Show usage and basic help information.
--version Show version information.
EXAMPLES
Example 1: Using intltoolize and the intltool Utilities
To use intltoolize and the intltool utilities, perform the following steps:
1. Install intltool. Ensure that the macro installed by intltool is in the aclocal path, or run the following command
example% export ACLOCAL_FLAGS='-I /usr/local/share/aclocal'
2. Add the following lines to the autogen.sh file, after the call to gettextize:
echo "Running intltoolize"
intltoolize --copy --force --automake
3. Add the following line to the configure.in file, near the top of the file:
AC_PROG_INTLTOOL([minimum required version])
4. Add intltool-extract.in, intltool-merge.in, and intltool-update.in to the EXTRA_DIST entry in your top-level Makefile.am file, and also
to the top-level .cvsignore file. Also add the non-.in versions to the .cvsignore file.
5. Remove the po/desk.pl and po/update.* scripts, if present in your source tree. The intltool-update utility will perform equivalent
functions.
At this point, translatable strings will be automatically extracted to the .po files.
EXIT STATUS
The following exit values are returned:
0 Application exited successfully
>0 Application exited with failure
FILES
The following files are used by this application:
/usr/bin/intltoolize The command-line executable for the application.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWgnome-common-devel |
+-----------------------------+-----------------------------+
|Interface stability |External |
+-----------------------------+-----------------------------+
SEE ALSO
intltool-extract(1), intltool-merge(1), intltool-prepare(1), intltool-unicodify(1), intltool-update(1)
NOTES
For more information, see the I18N-HOWTO file, which is provided with the intltool source code.
Updated by Damien Donlon, Sun Microsystems Inc., 2003. Written by Darin Adler, Kenneth Christiansen, Maciej Stachowiak.
SunOS 5.10 3 Apr 2003 intltoolize(1)