08-24-2017
Quote:
Originally Posted by
MadeInGermany
The first task is: have two directories.
Did you create dir2 within dir1 or next to dir1?
And where is your current work directoy? (pwd command)
---------- Post updated at 10:23 AM ---------- Previous update was at 10:21 AM ----------
I created dir2 is the sub directory of dir1
My current working directory is home/dir1/dir2
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
iam having the file as follows:
ABCDEFGH|0987654321234567
ABCDEFGH|0987654321234523
ABCDEFGH|0987654321234556
ABCDEFGH|0987654321234545
POIUYTRE|1234567890890678
POIUYTRE|1209867757352567
POIUYTRE|5463879088797131
POIUYTRE|5468980091344456
pls provide me the split command
... (14 Replies)
Discussion started by: nivas
14 Replies
2. Shell Programming and Scripting
I want to compare some files.
say iam having 2 sets of files ,each is having some 10 files.
ie,
file1
1a.txt
1b.txt
1c.txt
...
file2
2a.txt
2b.txt
2c.txt
...
i need to read line by line of this files parralley..
ie.. i want to read file1 first line that is 1a.txt and file2... (2 Replies)
Discussion started by: nivas
2 Replies
3. Shell Programming and Scripting
Hi,
Iam having file1 as follows:
ERTYUIOU|1234567689089767688
FDHJHKJH|6817738971783893499
JFKDKLLUI|9080986766433498444
FILE2
ERTYUIOU|1234567689089767688 resh@abc_com 767637218328322332 893589893499 asdsddssd ... (21 Replies)
Discussion started by: nivas
21 Replies
4. Shell Programming and Scripting
Hi,
I am looking for a PDF or an e-book which can show in details how to do Shell Scripting or Programming. Can anybody provide me with a link to such a tutorial? I have downloaded some tutorials but they show only basics and not give any in-depth study material.
I am using Red Hat Linux... (2 Replies)
Discussion started by: indiansoil
2 Replies
5. Infrastructure Monitoring
# set date to your spec: this is month/day/yr/hr/min/sec:
sysdate=`date '+%m/%d/%Y-%H:%M:%S'`
# get the last line before the history file is modified
tail -1 /tmp/hosthistory.txt |while read lastdate mydevices
do
echo $lastdate
echo $mydevices
done
LIST = 'ypcat hosts|| sort... (11 Replies)
Discussion started by: lemseffert
11 Replies
6. Shell Programming and Scripting
I was trying out some new series to get it print
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
and the seond one is
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
but was unable to get the result. (5 Replies)
Discussion started by: harjinder
5 Replies
7. Shell Programming and Scripting
hi,
i am trying this while loop and i only want that it should only read food as pizza....no other entry should be taken here.
#!/usr/bin/perl -w
$food = " ";
while ( $food ne 'pizza' )
{
print 'enter what you had last night: ';
chomp ($food = <STDIN>);
#print $food ;
}
... (2 Replies)
Discussion started by: kullu
2 Replies
8. UNIX and Linux Applications
Hi,
We need to compare a text file File1.txt and config file File2.txt in a way that it checks if the content of File1.txt exists between the range mentioned in File2.cfg.
The range here is the range between col1 and col2 of File2.cfg
If the content of File1.txt lies between the range of... (12 Replies)
Discussion started by: CFA
12 Replies
9. UNIX for Dummies Questions & Answers
sxsaaas (3 Replies)
Discussion started by: VikrantD
3 Replies
LEARN ABOUT DEBIAN
raidfile-config
RAIDFILE-CONFIG(8) Box Backup RAIDFILE-CONFIG(8)
NAME
raidfile-config - Configure Box Backup's RAID files
SYNOPSIS
raidfile-config config-dir blocksize dir1 [dir2 [dir3]]
DESCRIPTION
raidfile-config creates a raidfile.conf file for Box Backup. This file holds information about the directories used to store backups in.
Box Backup supports userland RAID, in a restricted RAID5 configuration, where 3 and only 3 'drives' are supported. You can read more about
RAID5 (and other RAID-levels) here[1].
Parameters
The parameters are as follows:
config-dir
The directory path where configuration files are located. Usually this is /etc/box. raidfile.conf will be written in this directory.
blocksize
The block size used for file storage in the system, in bytes. Using a multiple of the file system block size is a good strategy.
Depending on the size of the files you will be backing up, this multiple varies. Of course it also depends on the native block size of
your file system.
dir1
The first directory in the built-in RAID array.
dir2
The second directory in the built-in RAID array. If you are not using the built-in RAID functionality, this field should be ignored.
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).
dir3
The third directory in the built-in RAID array. The same notes that apply to dir2 also apply to dir3.
Note that there are currently no way to add multiple disk sets to the raidfile.conf file using command line tools, etc. See
raidfile.conf(5) for details on adding more disks.
BUGS
If you find a bug in Box Backup, and you want to let us know about it, join the mailing list[2], and send a description of the problem
there.
To report a bug, give us at least the following information:
o The version of Box Backup you are running
o The platform you are running on (hardware and OS), for both client and server.
o If possible attach your config files (bbstored.conf, bbackupd.conf) to the bug report.
o Also attach any log file output that helps shed light on the problem you are seeing.
o And last but certainly not least, a description of what you are seeing, in as much detail as possible.
FILES
raidfile-config generates the raidfile.conf(5) file.
SEE ALSO
bbstored-config(8), bbstored.conf(5), raidfile.conf(5)
AUTHORS
Ben Summers
Per Thomsen
James O'Gorman
NOTES
1. here
http://en.wikipedia.org/wiki/Redundant_array_of_independent_disks#RAID_5
2. mailing list
http://lists.warhead.org.uk/mailman/listinfo/boxbackup
Box Backup 0.11 10/28/2011 RAIDFILE-CONFIG(8)