08-31-2001
Some FTP servers will tar an entire directory tree for you. Not all, though. It's certainly worth a try however. It would work like this: You see a directory you want to snarf. It's name is 'snarf_me'. If the server allows it, you can simply type:
get snarf_me.tar.gz
If it's allowed, you will get one large file, that when unpacked will duplicate the directory. The only caveat with that is unless you have a good amount of bandwidth you could very easily bog yourself down with files tucked away in there that you don't really want.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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)
Discussion started by: OpenMacNews
2 Replies
2. UNIX for Dummies Questions & Answers
Hi Guys,
Im trying to set up FTP to my Apache Tomcat dir on my server so my web designer can FTP in and look at things in a live environment.
However at first I couldn't write to the dir, so i change some permissions, and now I cant access it at all!
Here is my LS -all output:
... (4 Replies)
Discussion started by: boarderstu
4 Replies
3. IP Networking
Hi,
I have a conenction to remote server that I'm sending files too via FTP.
The problem I have is that when the file gets delivered it is 0 (zero) size.
I've manually connected and logged on. The only command I can successfully execute is pwd. When I do a dir or a put command it will... (7 Replies)
Discussion started by: nhatch
7 Replies
4. UNIX and Linux Applications
HI all, I got a CPIO archive that contains a unix filesystem that I try to extract, but it extract to the root dir / unstead of current dir, and happily it detects my file are newer otherwise it would have overwrited my system's file!
I tried all these commands
cpio -i --make-directories <... (2 Replies)
Discussion started by: nekkro-kvlt
2 Replies
5. Shell Programming and Scripting
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)
Discussion started by: bigben1220
3 Replies
6. UNIX for Dummies Questions & Answers
Hey all,
i want to copy only the file names from an ftp server (directory and all sub directory) to a text file in another server (non ftp), i.e. i want to recursively move through directories and copy only the names to a text file.
any help is appreciated...thank you in advance (1 Reply)
Discussion started by: deking
1 Replies
7. UNIX for Dummies Questions & Answers
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)
Discussion started by: nmakkena
3 Replies
8. Shell Programming and Scripting
Hi,
Can the below command will be working in FTP
dir */*/*/*.zip
I want to dynamically know the folder names where the zipfiles are present.
Thnx in advance. (1 Reply)
Discussion started by: weknowd
1 Replies
9. Shell Programming and Scripting
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)
Discussion started by: Yoodit
11 Replies
10. AIX
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)
Discussion started by: blinkingdan
0 Replies
unp(1) General Commands Manual unp(1)
NAME
unp - a shell frontend for uncompressing/unpacking tools
SYNOPSIS
unp [-u] file [ files ... ] [ -- backend args ... ] ucat file [ files ... ]
unp is a small script with only one goal: Extract as many archives as possible, of any kind and from any path to the current directory,
preserving the subdirectory structure where needed. Is a Do-What-I-Want utility and helps managing several extraction programs without
looking for needed options for the particular tool or worrying about the installation of the needed program.
Run unp without arguments to see the list of supported archive formats.
The special version ucat acts as wrapper for commands that can output the extracted data to standard output, like bzip (bzcat), gzip
(zcat), tar, zip and others.
USAGE
unp extracts one or more files given as arguments on the command line. Additionally, it may pass some options to the backend tools (like
tar options) when they are appended after `--'.
There is also a special option (-u) which is very useful for extracting Debian packages. Using -u, unp extracts the package (i.e. the ar
archive) first, then extracts data.tar.gz in the current directory and then control.tar.gz in control/<filename>/.
NOTES
unp will try to decompress into a FILE.unp if it get trouble with existing files. But don't count on this feature, always look for free
working space before using unp.
Unlike gunzip, which decompresses the file in the target directory of the source file, unp uses the current directory for output.
AUTHOR
Development started by Andre Karwath <andre.karwath@informatik.tu-chemnitz.de>
Now maintained and packaged for Debian by Eduard Bloch <blade@debian.org>
18 Feb 2001 unp(1)