I am fairly new to scripting.
I have a script to untar files as they come in.
I keep scripts in one directory: /Scripts
I get a tar'ed file in /Processing
*CMD*
When i run the script the untared files are placed in /Scripts
i did some hunting around and found -C
*CMD*
however now the file will not untar
Please point me in the right direction. thank you
Last edited by vbe; 02-11-2010 at 11:33 AM..
Reason: code tags...
I have searched this quite a long time but couldn't find the right method for me to use. I need to assign read write permission to the user for specific directories and it's sub directories and files. I do not want to use ACL. I do not want to assign user the same group of that directories too.... (0 Replies)
Hi All,
I need to grep through a .tar file without untarring it. Would you please help me with that ?
The extension to this request is to use the cut command to extract the data from a particular field.
Appreciate your quick look around (8 Replies)
Hi,
I want to untar all log files from following tarred directory hierarchy
Log_files.tar.gz/subject*.tar.gz/project*/*.log
It means there are subject1.tar.gz to subject9.tar.gz and in those tarred subect directories there are project1 - project5 directories and in those directories there... (2 Replies)
Dear Members,
I have a list of xml files like
abc.xml.table
prq.xml.table
...
..
.
in a txt file.
Now I have to search the file(s) in all directories and sub-directories and print the full path of file in a output txt file.
Please help me with the script or command to do so.
... (11 Replies)
hi,
I am in a weird situation. I have a parent tarball which contains 2 sub tarballs.
The structure is such :
Parent.tar.gz ---- > child1.tar.gz and child2.tar.gz
I need to get the size of the parent tarball without untaring it
I know that the command is gunzip -c parent.tar.gz | wc -c ... (1 Reply)
I am very new to unix as well as shell scripting.
I have to write a script for the following requirement. In have to list all the files in directory and its sub directories along with file path and size of the file
Please help me in this regard and many thanks in advance. (3 Replies)
Hello!!
I have directories from 2008, with files in them. I want to create a script that will find the directoried from 2008 (example directory:
drwxr-xr-x 2 isplan users 1024 Nov 21 2008 FILES_112108), delete the files within those directories and then delete the directories... (3 Replies)
Trying to write a script to do the following.
scp to all redhat linux host and install a antivirus tarball. Need to know what additional syntax to use to untar the file and execute the install.sh inside the tarball and then remove the tarball on all remote hosts.
Here is what I have so... (2 Replies)
Hi all,
How to untar a file having .tarz extension?
i tried this
tar -xvfz file.tarz
but i'm getting error like
tar: z: unknown function modifier
Usage: tar {c|r|t|u|x}] {file | -I include-file | -C directory file}...
Can anyone help me out in this....
Thanks in advance.... (2 Replies)
hi all,
i'm looking for a bash or tcsh script that will clone an empty dir tree 'over' another tree ...
specifically, i'd like to:
(1) specify a src directory
(2) list the directory tree/hiearchy beneath that src dir, w/o files -- just the dirs
(3) clone that same, empty dir hierarchy to... (2 Replies)