Sponsored Content
Operating Systems AIX recursive archive directories and subdirectories Post 302302869 by wilsonSurya on Wednesday 1st of April 2009 08:08:37 AM
Old 04-01-2009
Detail

Hi pludi,

Thanks for the guide. But still not solved my problem. Maybe this will make my question easier to understand.

root@xxx # pwd
/tmp/wilson
root@xxx # ls -l
total 8
drwxr-xr-x 2 root system 256 Jan 12 15:50 ibmType
drwxr-x--- 5 root system 256 Mar 27 15:47 rmvcsub
drwxr-xr-x 10 root system 4096 Mar 27 18:46 study
drwxr-xr-x 8 root system 256 Mar 13 19:40 study1
root@xxx # uname -a
AIX xxx 3 5 xxxxxxx


So, how to archive study and study1 directories into 1 file, and the archive result will be in current directory?


Thanks again for the help. Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

grep recursive directories

I am trying to locate a file or files with specific data in them. Problem is the file(s) could reside in any one of many directories. My question is. Is there a way of recursively greping directories for the file(s) with the data I am looking for. I have tried - 1. $HOME> grep 47518 | ls... (8 Replies)
Discussion started by: jagannatha
8 Replies

2. UNIX for Dummies Questions & Answers

Permissions for Directories and Subdirectories

Is it possible to have a directory owned (by root) with permissions drwx------ and then have a sub directory of rwxrwxrwx. I know that this may be soo simple but I had no luck googling it. Thanks for your help (1 Reply)
Discussion started by: clancymf
1 Replies

3. Shell Programming and Scripting

Display only subdirectories from given directories

Hi Genius, I would like to display all the subdirectories only with timestamp. For exmple: Given Directory : orabkup /orabkup total 11365112 drwxr-xr-x 9 oracle oradba 256 Jan 03 16:01 db1 /orabkup/db1: total 0 drwxr-xr-x 2 oracle oradba 256 Jan 03 16:01... (8 Replies)
Discussion started by: HAA
8 Replies

4. UNIX for Dummies Questions & Answers

Compare/Diff between directories and subdirectories?

Hi, Does anybody know the cmd to compare two areas and print out the different files w/ path? I tried cmp and diff and dircmp but with no luck. Should I grep and print? For example: /aa/images/jan ..../images/feb /bb/images/jan ..../images/feb i want to print the compare,... (5 Replies)
Discussion started by: andylee80
5 Replies

5. Shell Programming and Scripting

Listing directories and subdirectories

How can list the directories and the subdirectories in a folder. It is possible with a single UNIX command. For example i have a folder named "archive" and another folder named "0808" and then multiple folders are there ... Can i list all the directories and subdirectories in the folder... (6 Replies)
Discussion started by: karansachdeva
6 Replies

6. Shell Programming and Scripting

backup of directories and subdirectories

Hello I'm new to the area Bash scripting and that is why I have a search script that is run on my unix server and always when I start the server or every 24 hours The script will create backups of directories and subdirectories I never found what I'm here make a new thread ... (1 Reply)
Discussion started by: HansWurst
1 Replies

7. UNIX for Dummies Questions & Answers

recursive copy into a directory and all its subdirectories...

I want to copy a file from the top directory into all the sub-folders and all of the sub-folders of those sub-folder etc. Does anyone have any idea how to do this? Thanks in advance of any help you can give. (3 Replies)
Discussion started by: EinsteinMcfly
3 Replies

8. UNIX for Dummies Questions & Answers

Find directories without subdirectories

Hello, I have to find all directories, which contain files, but dont have subdirectories. For example if i have tree like: ├── kat11 │ ├── kat21 │ │ └── Dokument\ bez\ nazwy │ └── kat22 │ ├── kat31 │ │ └── Dokument\ bez\ nazwy │ └── kat32 │ └──... (13 Replies)
Discussion started by: eValker
13 Replies

9. Shell Programming and Scripting

Script to Archive Files from Subdirectories

Hello, I have a CentOS server that contains a 'storage' directory. Within that directory, there could be any number of subfolders (all with unique names that match usernames). Under each username folder, there are two additional folders: db and files /STORAGE/user1/db/... (3 Replies)
Discussion started by: JasonH
3 Replies

10. Shell Programming and Scripting

Recursive (Into subdirectories) ffmpeg generate jpg from video

My question is how to modify my existing script to generate from videos (mp4,avi,mkv etc...) jpegs via ffmpeg and keep folder name of generated jpg file? So if i have video in /home/videos/MyParty2009/SOmeDirR/VideoSomeTitle.mp4 and it will generate jpg with name of MyParty2009.jpg so the... (2 Replies)
Discussion started by: ZerO13
2 Replies
Config::Model::AnyThing(3pm)				User Contributed Perl Documentation			      Config::Model::AnyThing(3pm)

NAME
Config::Model::AnyThing - Base class for configuration tree item VERSION
version 2.021 SYNOPSIS
# internal class DESCRIPTION
This class must be inherited by all nodes or leaves of the configuration tree. AnyThing provides some methods and no constructor. Introspection methods element_name() Returns the element name that contain this object. index_value() For object stored in an array or hash element, returns the index (or key) containing this object. parent() Returns the node containing this object. May return undef if "parent()" is called on the root of the tree. container_type() Returns the type (e.g. "list" or "hash" or "leaf" or "node" or "warped_node") of the element containing this object. root() Returns the root node of the configuration tree. location() Returns the node location in the configuration tree. This location conforms with the syntax defined by "grab()" method. composite_name Return the element name with its index (if any). I.e. returns "foo:bar" or "foo". Annotation Annotation is a way to store miscellaneous information associated to each node. (Yeah... comments) These comments will be saved outside of the configuration file and restored the next time the command is run. annotation( [ note1, [ note2 , ... ] ] ) Without argument, return a string containing the object's annotation (or an empty string). With several arguments, join the arguments with " ", store the annotations and return the resulting string. load_pod_annotation ( pod_string ) Load annotations in configuration tree from a pod document. The pod must be in the form: =over =item path Annotation text =back Information management grab(...) Grab an object from the configuration tree. Parameters are: "step" A string indicating the steps to follow in the tree to find the required item. (mandatory) "mode" When set to "strict", "grab" will throw an exception if no object is found using the passed string. When set to "adaptative", the object found at last will be returned. For instance, for the step "good_step wrong_step", only the object held by "good_step" will be returned. When set to "loose", grab will return undef in case of problem. (default is "strict") "type" Either "node", "leaf", "hash" or "list". Returns only an object of requested type. Depending on "strict" value, "grab" will either throw an exception or return the last found object of requested type. (optional, default to "undef", which means any type of object) "autoadd" When set to 1, "hash" or "list" configuration element are created when requested by the passed steps. (default is 1). grab_non_available When set to 1, grab will return an object even if this one is not available. I.e. even if this element was warped out. (default is 0). The "step" parameters is made of the following items separated by spaces: - Go up one node ! Go to the root node. !Foo Go up the configuration tree until the "Foo" configuration class is found. Raise an exception if no "Foo" class is found when root node is reached. xxx Go down using "xxx" element. xxx:yy Go down using "xxx" element and id "yy" (valid for hash or list elements) ?xxx Go up the tree until a node containing element "xxx" is found. Then go down the tree like item "xxx". If "?xxx:yy", go up the tree the same way. But no check is done to see if id "yy" actually exists or not. Only the element "xxx" is considered when going up the tree. grab_value(...) Like "grab(...)", but will return the value of a leaf or check_list object, not just the leaf object. Will raise an exception if following the steps ends on anything but a leaf or a check_list. grab_annotation(...) Like "grab(...)", but will return the annotation of an object. grab_root() Returns the root of the configuration tree. grab_ancestor( Foo ) Go up the configuration tree until the "Foo" configuration class is found. Returns the found node or undef. model_searcher () Returns an object dedicated to search an element in the configuration model (respecting privilege level). This method returns a Config::Model::SearchElement object. See Config::Model::Searcher for details on how to handle a search. dump_as_data ( ) Dumps the configuration data of the node and its siblings into a perl data structure. Returns a hash ref containing the data. See Config::Model::DumpAsData for details. warp_error Returns a string describing any issue with Config::Model::Warper object. Returns '' if invoked on a tree object without warp specification. AUTHOR
Dominique Dumont, (ddumont at cpan dot org) SEE ALSO
Config::Model, Config::Model::Instance, Config::Model::Node, Config::Model::Loader, Config::Model::Dumper perl v5.14.2 2012-11-09 Config::Model::AnyThing(3pm)
All times are GMT -4. The time now is 04:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy