Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Searching for folders/parent folders not files. Post 302533498 by Aussiemick on Thursday 23rd of June 2011 10:56:26 PM
Old 06-23-2011
Thanks for the reply, explanation and help.

I'll give it a go most likely on Monday, the big boss has my hands full at the moment.

Cheers,
Michael
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Backing up Folders without some folders...;)

I am in a fix....... I have to write a backup script to backup say Folder A. Folder A contains n folders 1,2 ,3 .....n. my script should copy A without folder 2 & 3. Is there anyway I can do it without writing individual copy commands???? Please help.... (1 Reply)
Discussion started by: chimpu
1 Replies

2. UNIX for Dummies Questions & Answers

Copying Folders without some folders... ;-)

I am in a fix....... I have to write a backup script to backup say Folder A. Folder A contains n folders 1,2 ,3 .....n. my script should copy A without folder 2 & 3. Is there anyway I can do it without writing individual copy commands???? Please help.... (5 Replies)
Discussion started by: chimpu
5 Replies

3. UNIX for Dummies Questions & Answers

Find file on server, searching thru many folders

Hi all, Is it possible to find a file on a server without knowing the file path? And when the file is found is it possible to find out the file path? I would like to find a file by typing: find server/ -name "filename" Instead of: find server/folder1/folder2/folder3/ -name "filename" Can... (5 Replies)
Discussion started by: Snakehead
5 Replies

4. Shell Programming and Scripting

Searching for folders which are over 5 hours old.

I want to create a script which will delete all folders which are over 5 hours old in HP-UX 11.11. I tried to use the "find" command but it didn't have an option for searching files/folder by hours. Could some one tell me how to achieve this in HP-UX with only using the standard OS commands and... (4 Replies)
Discussion started by: stevefox
4 Replies

5. UNIX for Dummies Questions & Answers

Move folders containing certain files

Hello, How can I move just the folders that contains files modified n days ago? Source tree: |-- SourceFolder | |-- Subfolder1 | | |-- file1.dat | | `-- file2.dat | |-- Subfolder2 | | |-- filea.dat | | `-- fileb.dat Destination tree: |-- ... (3 Replies)
Discussion started by: xavix
3 Replies

6. Shell Programming and Scripting

Making 99 folders 99 folders deep

I am trying to make a unix shell script that will make 99 folders 99 deep (counting the first level folders). So far i have made it make the first 99 folders and 99 more in all of the folders. The only problem is the only way i have found is copying and pasting part of the script over and over and... (18 Replies)
Discussion started by: YukonAppleGeek
18 Replies

7. Shell Programming and Scripting

Copy between two different folders containing same sub-folders

I have a folder like this ls input1 dir1 dir2 dir3 file1 file2 file3 dir1, dir2 and dir3 are sub-folders inside the folder input1 ls input2 dir1 dir2 dir3 file1 file2 file3 My dir1 in input1 folder has files f1, f2, f3 and f4. My dir1 in input2 folder has file f4 and f5. ... (3 Replies)
Discussion started by: jacobs.smith
3 Replies

8. UNIX for Dummies Questions & Answers

Archive folders and sub folders

Hi Can i archive folder and folders in with the tar command My files are located in subfolders Eg: Folder1/Folder1_1/*.pdf Folder1/Folder1_2/*.pdf Folder1/Folder1_3/*.pdf so i would like to tar all the files in Folder1_1 and Folder1_2 only not Folder1_3 that should be done next... (2 Replies)
Discussion started by: cnrj
2 Replies

9. Shell Programming and Scripting

CAT 3 files with the same name in 3 different folders

I am trying to cat 3 files. They all have the same name MFExtract.txt. But, they are in 3 seperate file names. Any idea how I could cat the 3 together. It's throwing me off figuring out a way because the names are the same. I was thinking just doing a 3 cat commands with the full path names and... (2 Replies)
Discussion started by: risarose87
2 Replies

10. Shell Programming and Scripting

How to copy files/folders and show the files/folders?

Hi, So i know we use cp -r as a basic to copy folders/files. I would like this BUT i would like to show the output of the files being copied. With the amazing knowledge i have i have gone as far as this: 1) find source/* -exec cp -r {} target/ \; 2) for ObjectToBeCopied in `find... (6 Replies)
Discussion started by: Imre
6 Replies
DEALER(6)							User Documentation							 DEALER(6)

NAME
dealer - bridge hand generator SYNOPSIS
dealer [-023ehuvmqV] [-p n] [-g n] [-s seed] [-l n] [inputfile] DESCRIPTION AND EXAMPLE
The program dealer can be used to generate hands for partnerships bidding training or for generating statistics that can be used to design conventions, or win postmortems. Running the program involves 3 steps. First, the user has to write an input file containing hand-descriptions and action. A very simple example would look something like: condition shape(north, any 4333 + any 4423) and hcp(north)>=19 action printall The first line specifies a condition for the north hand, in this case, a hand with 4333 or 4432 shape and at least 19 high card points. The second line tells the program to print the 4 hands. The program reads from standard input, so in principle, it is possible to enter the conditions directly into the program. Using a file is a lot more practical though, as it allows the user to re-use conditions and fine-tune the conditions. Then the program has to be run, it reads the file, looks at the various command line switches and then produces a number of hands. The output appears on the screen but can be re-directed to a file. Finally, the user has to look at output and analyze the produced hands. Alternatively, the output can be used for a playing program. OPTIONS
-e Exhaust mode (alpha version). -g number Maximum number of hands to generate (default is 1000000). -l number Instead of shuffling, deals are read from the file library.dat by M. Ginsberg (see [1]). When using this, the tricks() function is quite fast and bridge.exe from GIB is not used. [1] ftp://ftp.cirl.uoregon.edu/pub/users/ginsberg/bridge/ -m Shows a progress meter. -p number Maximum number of hands to produce (default is 40). -q Suppress PBN output (useful for testing, then switch it back on when generating the "final" sample). -s number Uses number as the seed for the random generator, running the program twice with the same seed will produce the same sequence of hands. -u Select uppercase for the symbols "AKQJT" (default is lowercase). -v Toggle verbose output, prints statistics at the end of the run (default is on). -V Emit a version-identification string and exit. -h Help, prints the syntax. -0 No swapping, each deal is generated normally (shuffling) (default). -2 2-way swapping, after each shuffle another deal is generated by permuting E and W, leaving N and S in place (NB: not fully compatible with predeal). -3 3-way swapping, after each shuffle another 5 deals are generated by permuting E, W, and S every which way, leaving N in place (NB: not fully compatible with predeal). BUGS
I would prefer if you did not use this program for generating hands for tournaments. I have not investigated the random number generation closely enough for me to be comfortable with that thought. SEE ALSO
/usr/share/doc/dealer/Manual, dealer.dpp(6), deal(6). AUTHORS
Hans van Staveren <sater@sater.home.cs.vu.nl> Henk Uijterwaal <henk@ripe.net> Manpage: Christoph Berg <cb@df7cb.de> COPYRIGHT AND LICENSE
This program is hereby put in the public domain. Do with it whatever you want, but I would like you not to redistribute it in modified form without mentioning the fact of modification. I will accept bug reports and modification requests, without any obligation of course, but fixing bugs someone else put in is beyond me. Dealer 2012-03-04 DEALER(6)
All times are GMT -4. The time now is 12:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy