03-29-2005
Perfect, thanks so much.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ,
How to replace all entries of comma in text file by space or other character.
cat temp.txt
A,B,C,D
I want this file to be like
A B C D
Please help!!! (4 Replies)
Discussion started by: prashant43
4 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
I'm hoping you can help.. I've used this forum a couple of times and I am back again now i've moved onto something more complex (for me!)
I have some data which looks like:
"AL1_1,AL1_1,"
"AL1_1.AL1_1A.AL1_1AE,AL1_1AE,"
"AL1_1.AL1_1A.AL1_1AG,AL1_1AG,"
"AL1_1.AL1_1A.AL1_1AJ,AL1_1AJ,"... (10 Replies)
Discussion started by: gman
10 Replies
3. Shell Programming and Scripting
arr_Ent_NameId variable holds 'Prakash pawar' 'sag' '23' '50000' this value
'Prakash pawar' 'sag' '23' '50000' I want to replace space( ) with comma (,)
There are 4 fields here. I don't want to replace first field with comma.
output should be: 'Prakash,pawar','sag','23','50000'
... (2 Replies)
Discussion started by: pritish.sas
2 Replies
4. Shell Programming and Scripting
I have a csv file and there is a problem which I need to resolve.
Column1,Column2,Colum3,Column4
,x,y,z
,d,c,v
t,l,m,n
,h,s,k
,k,,y
z,j, ,p
Now if you see column1 for row 1 and row 4 though they are null there is a space but in case of row2 and row 5 there is no space.
I want row... (3 Replies)
Discussion started by: RubinPat
3 Replies
5. Shell Programming and Scripting
hi
i want to replace spaces by comma
my file is
ADD 16428 170 160 3 WNPG 204 941 No 204802
ADD 16428 170 160 3 WNPG 204 941 No 204803
ADD 16428 170 160 3 WNPG 204 941 No 204804
ADD... (9 Replies)
Discussion started by: raghavendra.cse
9 Replies
6. Shell Programming and Scripting
Hi,
i want to replace comma by space for specified field in record, i mean i want to replace the commas in the 4th field by space. and rest all is same throught the record.
the record is
16458,99,001,"RIMOUSKI, QC",418,"N",7,EST,EDT,902
16458,99,002,"CHANDLER,... (5 Replies)
Discussion started by: raghavendra.cse
5 Replies
7. Shell Programming and Scripting
Hello everyone,
I want to replace all "," (commas) with a blank space
My command thus far is:
cat test.text | sed -e s/\`//g | awk '{print$1" "$2" "$3}'
I'm sure you guys know this, but the SED command that I am using is to get rid of the "`" (tics).
which gives me:
name ... (5 Replies)
Discussion started by: jayT
5 Replies
8. Shell Programming and Scripting
I,
I have a file and i need to replace comma and blank space with comma and 0.
cat file.txt
a,5
b,1
c,
d,
e,4
I need the output as
cat file.txt
a,5
b,1
c,0
d,0 (4 Replies)
Discussion started by: jaituteja
4 Replies
9. Shell Programming and Scripting
I have a comma delimited file of major codes and descriptions. I want to replace all occurrences of spaces with underscores up to the first comma (only in the first field), but not replace spaces following the comma. For instance I have the following snippet of the file:
EK ED,Elementary and... (7 Replies)
Discussion started by: tdouty
7 Replies
10. Shell Programming and Scripting
I have the content of this file that i would like to replace the space by comma.
The file content values in this format
FName LName Date & time
------------------------------------
Gilles John 14/12/17 12:30:45
I want this format
Fname,LName,Date&time... (7 Replies)
Discussion started by: gillesi
7 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)