Chose list of sub directories in a bash script file
Hi,
I have a command in my bash script, searchDirectoryName.sh:
How can I select only following directory names with second subdirectoies and without first ./ in the DIR_NAME?
Finally substitute "/" to "_" for each name:
Thanks.
Kind regards.
Last edited by Franklin52; 03-07-2013 at 04:02 AM..
Reason: Please use code tags for data and code samples
Hello guys it's me again, I need some help. What I'm doing is listing all the file and directories Recusively and using it a a master file. Then I need to do the same the nest day to make sure nothing was deleted or modified. What happen is file in one of out major directories was deleted without... (2 Replies)
Hello there,
As a newbie:
The directories in PATH can be hard to distinguish when printed out as
one line with colon .Please, can i have a sample script to display
them,one to a line.
Thank you. (1 Reply)
Hi All I have two scripts which i used to try and list all the directories one using 'function', which only lists the first directory and does not show directories within directories.
function ListDir ()
{
for arg in $(ls $HOME)
do
if
then
echo $arg
... (2 Replies)
Hi everyone.
I need to write a script which will download files/folders (a huge collection) to the local file server (centOS 4.4 Server),
and check regularly (every 6 hours or so if any new files are present, or if the old ones were modified to update contents).
Any insights on how to tackle... (2 Replies)
Hi,
I'm looking to delete some files from directories.
I've just put in a file the location of these files.
e.g:
in file supprs.txt there is:
/usr/host/t1.txt
/etc/dev/u1.java
/home/new/files/view.c
Is it possible to take this file "supprs.txt" as a parameter in a shell command ? (2 Replies)
I am working on a script that checks two arguments at the command line. The first argument is a search pattern, the second can be a file or a directory, if it is a file a second script is called that checks it for the search pattern. If the second argument is a directory, it checks for the search... (5 Replies)
Hi,
root@server] df -h
121G 14G 101G 12% /home
147G 126G 14G 91% /backup
We having our site files and images are storing in
/backup/home/user/files/ through symbolic link created in /home directory pointing in /backup directory as following.
root@server] cd /home... (1 Reply)
Hello
I have a directory structure with year in format 4 digits, e.g 2009, below which is month format 1 or 2 digits, e.g 1 or 12, blow which is day format 1 or 2 digits, e.g 1 or 31.
I want to change the names of lots of directories to the be
Year - 4 digits , e.g 2009 - No change here... (4 Replies)
Hi all,
I'm trying to get a bash script working for a program (bowtie) which takes a list of input files (*.fastq) and assembles them to an output file (outfile.sam). All the .fastq files are in one folder in my home directory (~/infiles).
The problem is that the 'bowtie' requires that... (7 Replies)
I've got this script to loop through all folders and move files that are more than 2 years old. I'm using the install command because it creates the necessary directories on the destination path and then I remove the source. I'd like to change the script to use the mv command since it is much... (4 Replies)
Discussion started by: consultant
4 Replies
LEARN ABOUT DEBIAN
raidfile.conf
RAIDFILE.CONF(5) Box Backup RAIDFILE.CONF(5)NAME
raidfile.conf - Userland RAID for Box Backup
SYNOPSIS
/etc/box/raidfile.conf
DESCRIPTION
The raidfile.conf is usually generated by raidfile-config(8) but may be manually edited if the store locations move or if more than one
disc set is required.
discX
Specifies a set of discs.
SetNumber
The set number of the RAID disc, referenced by each account.
BlockSize
The block size of the file system (usually 2048). Under BSD with FFS, set this to your file system's fragment size (most likely an
8th of the block size).
Dir0
The first directory in the RAID array.
Dir1
The second directory in the RAID array. If you do not wish to use the built-in RAID functionality, this field should be set to the
same as Dir0. You should not use the built-in RAID if you have a hardware RAID solution or if you're using another type of software
RAID (like md on Linux).
Dir2
The third directory in the RAID array. The same notes that apply to Dir2 also apply to Dir3.
FILES
/etc/box/raidfile.conf
SEE ALSO raidfile-config(8), bbstored.conf(5)AUTHORS
Ben Summers
Per Thomsen
James O'Gorman
Box Backup 0.11 10/28/2011 RAIDFILE.CONF(5)