05-26-2010
thank you alister, the -np option works!
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all
Is it possible to copy a structure of a directory only.
e.g.
I have a file with the following entries that is a result of a find :-
/dir1/dir2/file.dbf
/dir1/dir2/dir3/file1.dbf
/dir1/file.dbf
I want to copy these to a directory and keep the structure however starting at a new dir... (8 Replies)
Discussion started by: jhansrod
8 Replies
2. UNIX for Advanced & Expert Users
Hi,
I am trying to write a script that will move all the files from source directory structure(multiple levels might exist) to destination directory structure. If a sub folder is source doesnot exist in destination then I have to skip and goto next level. I also need to delete the files in... (4 Replies)
Discussion started by: srmadab
4 Replies
3. Shell Programming and Scripting
I have writen the following code to show the dirctory structure. Can any body help me for using the recursive function in this code?
echo "-(0)"
echo "$HOME-(1)"
cd ~
set *
for i in `ls $HOME`
do
if
then
echo ".....${i}"
cd... (5 Replies)
Discussion started by: murtaza
5 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I need to copy a set of directories along with all sub directories and files from one unix box to another. Any ideas?
cnfsed (4 Replies)
Discussion started by: Cnfsed
4 Replies
5. UNIX for Dummies Questions & Answers
Hi...
I have a directory which has multiple directories and sub directories inside...
what command should i use to get a list of all these directories, without the filenames.... (2 Replies)
Discussion started by: saharookiedba
2 Replies
6. Shell Programming and Scripting
Hey everyone
I am just trying print a directory structure but I am not getting the desired output.
I am using AIX.
Script :
input file contains : TNP\\ECOM\\test\\1
input_file=folders.txt
cat $input_file | while read line
do
echo $line
done (3 Replies)
Discussion started by: rocker_me2002
3 Replies
7. Solaris
I have a Solaris 9 system and was trying to familiarize myself with how the filesystem is laid out. I was wondering what the following directories were for (legacy, some administrative reason, etc)
The reason I ask about these specific directories is that they have executables with the... (4 Replies)
Discussion started by: thmnetwork
4 Replies
8. Shell Programming and Scripting
Hello ; ) again
Now I have my file like this :
DIR2/DIR3
DIR2
DIR2/DIR3/DIR4/DIR5
I am looking for help to create a loop that will create the directory structure.
I need something like this :
If "DIR2" does not exist > Create
IF "DIR2" exist already > check if onther "DIR"... (5 Replies)
Discussion started by: Aswex
5 Replies
9. Shell Programming and Scripting
Im reading a lot about wget and have really enjoyed using it. However I see a lot of tutorials that will show several ways. I want to be able to write scripts in gedit so I was wondering what is the best process to do this instead of just running them in the terminal?? (3 Replies)
Discussion started by: graphicsman
3 Replies
LEARN ABOUT DEBIAN
ketchup
KETCHUP(1) General Commands Manual KETCHUP(1)
NAME
ketchup - Utility to update the kernel source
SYNOPSIS
ketchup [options] <ver>
DESCRIPTION
This tool synchronises a local kernel tree with a desired kernel version and patch set from a kernel.org mirror. The default requires a GPG
key on your keyring, to verify the identity of the patches and source archives. Entire kernel images are not downloaded unless necessary,
so bandwidth is saved. Patches are applied and removed as necessary to attain the requested version.
OPTIONS
-a --archive (~/.ketchup)
cache directory
-d --directory (.)
directory to update
-f --full-tarball
if unpacking a tarball, download the latest
-g --gpg-path (/usr/bin/gpg)
path for GnuPG
-G --no-gpg
disable GPG signature verification
-k --kernel-url (http://www.kernel.org/pub/linux/kernel)
base url for kernel.org mirror
-l --list-trees
list supported trees
-m --show-makefile
output version in makefile <arg>
-n --dry-run
don't download or apply patches
-o --only-dl
don't apply patches
-p --show-previous
output version previous to <arg>
-q --quiet
reduce output
-r --rename-directory
rename updated directory to linux-<v>
-s --show-latest
output the latest version of <arg>
-u --show-url
output URL for <arg>
-w --wget (/usr/bin/wget)
command to use for wget
CONFIGURATION
Ketchup will read files named .ketchuprc in $HOME and in the target kernel directory, with the kernel directory taking precedence.
A .ketchuprc file uses the Python syntax and may set the following variables:
default_tree
The default_tree option specifies the kernel version to work with if one is not given on the command line.
precommand
The precommand option specifies a command to run before synchronising the kernel tree to the required version.
postcommand
The postcommand option specifies a command to run after synchronising the kernel tree to the required version.
AUTHOR
ketchup was written by Matt Mackall <mpm@selenic.com>.
This manual page was written by Baruch Even <baruch@debian.org>, for the Debian project (but may be used by others). Description text taken
from a former packaging attempt of Jack Wasey <debian@jackwasey.com>.
February 16, 2010 KETCHUP(1)