10-12-2010
Recursively dump all sub-dirs contents?
Hi,
I have a dir structure that has many many subdirs, I would like to dump all the files from al the sub-dirs into a single directory? Can someone tell me the mv command that would do this please?
before example:
datadir/
datadir/datajan/jan.dat
datadir/datafeb/feb.dat
after example:
datadir/
datadir/datajan.dat
datadir/datafeb.dat
and so on.....
thanks in advance for any help.
regards
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
help, what is the difference between core dump and panic dump? (1 Reply)
Discussion started by: aileen
1 Replies
2. UNIX for Dummies Questions & Answers
I need to print to file , a listing of all files below a certain directory.
Example: I need to print to file a listing of all files below the etc dir (including the subdirectories) with their full path. Any ideas on how to do this with one command. Or is this something I need to do on all... (4 Replies)
Discussion started by: gforty
4 Replies
3. UNIX for Dummies Questions & Answers
I have two Directories, foo and foobar.
I want to combine the contents of foo into foobar.
There is probably a simple command for this, but I have yet to find it.
Thanks in advance,
Robert (2 Replies)
Discussion started by: Phobos
2 Replies
4. Shell Programming and Scripting
I have 4 directory
Dir1
file1 file2 file3 file4
Dir2
file3 file5 file6 file8
Dir3
file1 file2 file6 file9 file10
Dir4
file3 file6 file12 file15
and all the 4 dirs are having couple of files.
Few of the files are common to other directory/ies and few... (1 Reply)
Discussion started by: reldb
1 Replies
5. Shell Programming and Scripting
Hi there,
Presently using du -ks and storing all directory summaries manually. Is there any other way or easier way to accomplish monitoring directories and check everyday/week for updates on particular dirs that I am interested in.
Automation of this functionality maybe? (1 Reply)
Discussion started by: da-seot
1 Replies
6. UNIX for Dummies Questions & Answers
hi,
I've a folder structure like :
/home/project/LIBNAMEA/FILE1
/home/project/LIBNAMED/FILE2
/home/project/LIBNAMEC/FILE3
/home/project/LIBNAMED/FILE4
/home/project/LIBNAMEX/FILE5
(there is no relation in the letters after the project/ )
and i need to delete the files keeping... (5 Replies)
Discussion started by: jtmartins
5 Replies
7. UNIX for Advanced & Expert Users
Hi there,
I need to change all files/dirs
1. all files with 744
2. all dirs with 755
is there a script for that ?
thanks,
thegunman (13 Replies)
Discussion started by: TheGunMan
13 Replies
8. UNIX for Dummies Questions & Answers
I am trying to get a listing of ALL directories only under /export (as an example). I can get all the dirs directly under /export but I need any sub dirs under those dirs. I've looked (here and google) but can not find anything that works (4 Replies)
Discussion started by: bbraml
4 Replies
9. Shell Programming and Scripting
Hi one of the output of the command is as below
# sed -n "/CCM-ResourceHealthCheck:/,/---------/{/CCM-ResourceHealthCheck:/d;/---------/d;p;}" Automation.OutputZ$zoneCounter | sed 's/$/<br>/'
Resource List : <br>
*************************** 1. row ***************************<br>
... (2 Replies)
Discussion started by: vivek d r
2 Replies
10. Shell Programming and Scripting
Hello,
Am very new to perl , please help me here !!
I need help in reading a URL from command line using PERL:: Mechanize and needs all the contents from the URL to get into a file.
below is the script which i have written so far ,
#!/usr/bin/perl
use LWP::UserAgent;
use... (2 Replies)
Discussion started by: scott_cog
2 Replies
ZNC(1) General Commands Manual ZNC(1)
NAME
znc - An advanced IRC bouncer
SYNOPSIS
znc --help
znc --version
znc --makepass
znc [-n] [-d datadir] [-D] [-f]
znc [-n] [-d datadir] [-D] [-f] --makeconf
znc [-n] [-d datadir] [-D] [-f] --makepem
DESCRIPTION
znc is an IRC proxy. It runs as a daemon and connects to IRC server, then allows you to connect from a workstation and work as the user
that is logged in to the IRC server. After you disconnect, it maintains the connection to the server. It acts like any normal IRC server,
so you can use any IRC client to connect to it.
OPTIONS
-h, --help
Output a brief help message.
-v, --version
Show the full version number.
-n, --no-color
Don't use any color escape sequences.
-f, --foreground
Don't fork the ZNC process into the background.
-D, --debug
Print debug output to the console. Implies --foreground.
-d DATADIR, --datadir=DATADIR
Specify another datadir. This is where znc saves everything.
-c, --makeconf
Interactively create a new configuration.
-s, --makepass
Hash a password for use in znc.conf.
-p, --makepem
Generate znc.pem. This is the server certificate znc uses. You need this for SSL.
-r, --allow-root
Don't complain if ZNC is run with root privilegies.
SIGNALS
This section explains how znc reacts to different signals:
SIGINT Exit ZNC. This is equivalent to /znc shutdown
SIGHUP Reload znc.conf. This is equivalent to /znc rehash
SIGUSR1
Rewrite znc.conf. This is equivalent to /znc saveconfig
FILES
/usr/local/share/znc/
Static module data like webadmin skins
/usr/local/lib/znc/
znc installs its modules to this directory.
/usr/local/include/znc/
These are the headers needed for compiling own modules.
~/.znc This is the default datadir. The following paths assume that you use this. If you change this via --datadir then the following
lines are relative to that dir.
~/.znc/znc.pem
This is the server certificate znc uses for listening on SSL ports. You can generate this via --makepem and you may replace this
with your own certificate, if you want to.
~/.znc/modules/
If you compile your own modules, you can save them here.
~/.znc/configs/znc.conf
This is the path to znc.conf. Use --makeconf for an easy way to generate it.
~/.znc/users/USERNAME/
The data for every user is saved in this dir. USERNAME refers to the user name of that user.
~/.znc/users/USERNAME/moddata/MODULENAME/
This is where each module can save some stuff. This is mainly used for remembering module settings that are not part of znc.conf.
~/.znc/moddata/MODULENAME/
This is where global modules may save their settings.
ZNC
2010-05-10 ZNC(1)