I want to check if the file exist in his directory or not
like :
Quote:
Quote:
i want to check if 10_10_2123123sads.txt exist in directory 10_10 then check the size of that file if exist if the size less than zero copy it else do nothing
if the file doesn't exist just copy it that what i want
i want to check if the file exist in the directory i want to copy it on
it i don'[t want to check if the file exist in his directory no i want to check if he exist in the directory i want to copy on it
plzz help me in that
---------- Post updated at 05:32 AM ---------- Previous update was at 05:17 AM ----------
I will be very grateful if someone can help me with bash shell script that does the following:
I have a list of filenames:
A01_155716
A05_155780
A07_155812
A09_155844
A11_155876
that are kept in different sub directories within my current directory. I want to find these files and copy... (3 Replies)
dear all.
how can i copy a list of files with different names into others directory have the same name
like i have 3 files
10_10
10_10_11
10_10_11_12
and i have 3 directories
10_10
10_10_11
10_10_11_12
how can i make a loop to cp this files into the directory have the same name like... (0 Replies)
Hi.
I have a list with file names like
testfile1.wav
testfile2.wav
testfile3.wav
and a folder that contains a large number of wav files (not only the ones on the list).
I would like to copy the files whose names are on the list from the wav file directory to a new directory.
I... (5 Replies)
Hello,
I have a folder with a massive amount of files, and I want to copy out a specific subset of the files to a new directory. I would like to use a text file with the filenames listed, but can't get it to work.
The thing I'm hung up on is that the folder names in the path can and do have... (5 Replies)
Hi
I have 3 directories
indexes_with_ts
indexes_without_ts
process_indexes
in each directories it contains *.sql
how do I accomplish this:
for all the files found in indexes_without_ts, copy the corresponding file in indexes_with_ts to process_indexes.
i.e.
for... (2 Replies)
Hi All,
Can any one help me to list out the directory names which contain the specified file.
See for example
File name : file.201307014.LKT
Have the directory structure as below.
/app/work/data/INDIA/file.201307014.LKT
/app/work/data/AMERICA/file.201307014.KTP... (5 Replies)
Hi ,
I'm trying to list the files and output is written to a file. But when I execute the command , the output file is being listed. How to exclude it ?
/tmp
file1.txt
file2.txt
ls -ltr |grep -v '-' | awk print {$9, $5} > output.txt
cat output.txt
file1.txt
file2.txt
output.txt (8 Replies)
Given a directory containing say a few thousand files,
please output a list of all the names of the files in the directory that are exactly the same, i.e. have the same contents.
func(a_directory_name) output -> {“matches”: , ... ]}
e.g. func(“/home/my/files”) where the directory... (7 Replies)
Discussion started by: anuragpgtgerman
7 Replies
LEARN ABOUT DEBIAN
installit
INSTALLIT(1) General Commands Manual INSTALLIT(1)NAME
installit - file/directory installation tool
SYNOPSIS
installit [ -o owner ] [ -g group ] [ -O owner ] [ -G group ] [ -m mode ] [ -b backup ] [ -s ] [ -t ] source destination
DESCRIPTION
Installit puts a copy of source into the specified destination.
If source is a period, then destination is taken to be the name of a directory that should be created. Otherwise, source is taken to name
an existing file and destination may be either a file or directory; it is interpreted according to the same rules as cp(1).
Installit uses no special privileges to copy files from one place to another.
OPTIONS -b If destination names a pre-existing file, it will be removed before the copy is done. To make a backup copy, use the ``-b'' flag;
the existing file will be renamed to have the specified extension. If source and destination are the same string, or if the two
files are identical, then no copying is done, and only the ``-o'', ``-g'', ``-m'', and ``-s'' flags (see below) are processed. In
this case, the modification time on the destination will be updated using touch(1).
-n Do not update the modification time on the destination.
-o -g -m
Once the destination has been created, it is possible to set the owner, group, and mode that it should have. This is done by using
the ``-o'', ``-g'', and ``-m'' flags, respectively.
-O -G The ``-O'' and ``-G'' flags set the owner and group only if installit is being run by root, as determined by whoami(1).
-s To strip(1) an installed executable, use the ``-s'' flag.
BUGS AND LIMITATIONS
Flags cannot be combined.
The chown(8) command must exist in either the /etc or /usr/etc directory or the user's PATH.
The whoami command must exist in the /usr/ucb directory or the user's PATH.
HISTORY
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. This is revision 1.9, dated 1996/10/29.
INSTALLIT(1)