10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
2. Shell Programming and Scripting
hi All, Any one answer my requirement.
I have source location
src_dir="/home/oracle/arun/IRMS-CM"
My Target location
dest_dir="/home/oracle/arun/LiveLink/IRMS-CM/$dc/$pc/$ct"
my source text files check with below example.text file content
$fn "\t" $dc "\t" $pc "\t" ... (3 Replies)
Discussion started by: sravanreddy
3 Replies
3. Shell Programming and Scripting
I want to use the find command to copy files that contain 2012 from one directory to another. I tried
find /Volumes/movies1 -name "*.2012.*" -exec cp -nRv "{}" /Volumes/pdrive/ \; (2 Replies)
Discussion started by: codecaine
2 Replies
4. UNIX for Dummies Questions & Answers
hey all,
i have a unix computer and a windows os computer connected in the same local network
i want to copy the etc folder to the windows computer so if my unix computer's hard disk rashes i can restore it from my windows computer.
my first problem is i'm kinda lame with unix...i know... (3 Replies)
Discussion started by: shwinky
3 Replies
5. UNIX for Dummies Questions & Answers
Hi,
we have file name appended by date in yymmdd format .. ex: abc090101.dat
I need to copy all the files between abc090101 to abc090331..
could you plz help me..
Thanks. (1 Reply)
Discussion started by: kolariya4u
1 Replies
6. Shell Programming and Scripting
I have two directories that contain data files. I would like to create a script that would copy all data files (*.dbf) from these directories to another location, except for 4 specific files.
How do I exclude those files from my cp command? (4 Replies)
Discussion started by: soliberus
4 Replies
7. UNIX for Dummies Questions & Answers
Is this possible? If so could i have the command for it thanks!! (2 Replies)
Discussion started by: JamieMurry
2 Replies
8. Shell Programming and Scripting
Hi,
I'm trying to copy the directories from one location(/tmp/source/) to other(/tmp/dest/).
for this I have written a PERL script.
snippet of code
$sourcePath = "/tmp/source";
$destPath = "/tmp/dest";
opendir(DIR, $sourcePath );
while($dir = readdir(DIR))
{
if($dir ne "." && $dir ne... (1 Reply)
Discussion started by: prashants
1 Replies
9. Shell Programming and Scripting
This is my first post, so first I'd like to say hello to everyone.
Here's the issue I'm having...I run a macro against multiple log files every morning. The procedure is sort of time consuming. I have to log into the box where there are stored, then ftp/download them to my local drive using... (3 Replies)
Discussion started by: jhofilena
3 Replies
10. Shell Programming and Scripting
How do you get a for loop to cope with one of the items being an asterisk?
for myResult in `echo "*"`
do
echo "$myResult"
done
The asterisk is returning a file listing in the PWD.
The same result can be got from:
for myResult in "*"
do
echo "$myResult"
done (1 Reply)
Discussion started by: PaulUrwin
1 Replies