Hi All
i want to write a script which could copy one file at a time from one directory to another directory.
Scenerio:
Let's say i have 100 file in a dirctory,so i want to copy one file at a time to another directory with a sleep statement in between that of 30 secs.
please help me... (1 Reply)
Hi,
I have to transfer five files from one directory to another directory in unix with the help of shell scripts. This shell script calling the param file as input parameter. Every day one file will come and fall on my source directory. Remaining files will fall on any one of the day of the... (5 Replies)
I Need help for one requirement,
I want to move the latest/Older file in the folder to another file. File have the datetimestamp in postfix.
Example:
Source Directory : \a
destination Directory : \a\b
File1 : xy_MMDDYYYYHHMM.txt (xy_032120101456.txt)
File2: xy_MMDDYYYYHHMM.txt... (1 Reply)
Script must removes files from the first directory if there is a file with same name in the second directory
Script passed to the two directories, it lies with them in one directory:
sh script_name dir1 dir2
This is my version, but it does not work :wall:
set - $2/*
for i
do
set -... (6 Replies)
I am trying to do the following task :
export ENV=aaa
export ENV_PATH=$(cd /apps | ls | grep $ENV)
However, it's not working. What's the way to change to directory and search some file in that directory in single command
Please help. (2 Replies)
I need a script which should watch a directory for a file with specific directory.
If it finds a file in directory, it should search for few specific keyword in the file. if the keyword exists, it should trim string from specific column.
The file should be moved to another directory and the a... (8 Replies)
I have a script, which is checking if file exists and move it to another directory
if
then
mkdir -p ${LOCL_FILES_DIR}/cool_${Today}/monthly
mv report_manual_alloc_rpt_A_I_ASSIGNMENT.${Today}*.csv ${LOCL_FILES_DIR}/cool_${Today}/monthly
... (9 Replies)
How to get a file 'zlib.h' in an entire directory with an excluded directory specified lives under that starting directory by using find command, as it failed on:
$ find . -name 'zlib.h' -a -ipath 'CHROME.TMP' -prune -o -print
it'll just list entirely up (2 Replies)
Discussion started by: abdulbadii
2 Replies
LEARN ABOUT HPUX
whereis
whereis(1) General Commands Manual whereis(1)NAME
whereis - locate source, binary, and/or manual for program
SYNOPSIS
dir... name...
DESCRIPTION
locates source, binary, and manuals sections for specified files. The supplied names are first stripped of leading path name components
and any (single) trailing extension of the form (such as Prefixes of resulting from use of SCCS are also dealt with. then attempts to
locate the desired program in a list of standard places.
Options
recognizes the following command-line options:
Limit search to binary files.
Can be used in conjunction with or
Limit search to source-code files.
Can be used in conjunction with or
Limit search to manual entry files.
Can be used in conjunction with or
Search for unusual entries.
A file is said to be unusual if it does not have one entry of each requested type. Thus, searches for those files in
the current directory that have no corresponding manual entry.
Limit search to binaries located in one or more specified directories.
Can be used in conjunction with or
Limit search to source files located in one or more specified directories.
Can be used in conjunction with or
Limit search to manual entry files
located in one or more specified directories. Can be used in conjunction with or
Terminates the last directory list
or options) and identifies the start of file names.
EXTERNAL INFLUENCES
International Code Set Support
Single- and multi-byte character code sets are supported.
EXAMPLES
Find all the files in that are not documented in with source files in
WARNINGS
uses the system call (see chdir(2)) to run faster. Therefore, path names given with the and options must be absolute path names.
AUTHOR
was developed by the University of California, Berkeley.
FILES whereis(1)