02-23-2011
There is several non-deleting solutions up there. Pick one, try it out.
This User Gave Thanks to zaxxon For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
Im trying to extract a portion of a big file.
Using unique pattern /occurrence ,
(ex. loginname1,logoff and loginname2,logoff ),
I like to print the lines that contain the patterns and the lines between them.
Also, create a file for every login occurrence.
Thanks for everyone's... (1 Reply)
Discussion started by: apalex
1 Replies
2. Shell Programming and Scripting
Hi all,
Can anyone please help me in parsing the following file. Suppose the file is called, example.lst, and has the following content in it.
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)
(Host = 192.168.2.2)
... (3 Replies)
Discussion started by: harris2107
3 Replies
3. Shell Programming and Scripting
Hi all,
I have a data file from which i would like to extract only certain fields, which are not adjacent to each other. Following is the format of data file (data.txt) that i have, which has about 6 fields delimited by "|"
HARRIS|23|IT|PROGRAMMER|CHICAGO|EMP
JOHN|35|IT|JAVA|NY|CON... (2 Replies)
Discussion started by: harris2107
2 Replies
4. Shell Programming and Scripting
I need to extract the character before the last "|" in the following lines, which are 'N' and 'U'. The last "|" shouldn't be extracted. Also the no.s of "|" may vary in a line, but I need only the character before the last one.
... (5 Replies)
Discussion started by: hidnana
5 Replies
5. Shell Programming and Scripting
Hello,
I need your help to extract text from following:
./sherg_fyd_rur:blkabl="R23.21_BL2008_0122_1"
./serge_a75:rlwual="/main/r23.21=26-Mar-2008.05:00:20UTC@R11.31_BL2008_0325"
./serge_a75:blkabl="R23.21_BL2008_0325"
./sherg_proto_npiv:bkguals="R23.21_BL2008_0302 I80_11.31_LR"
I... (11 Replies)
Discussion started by: abdurrouf
11 Replies
6. UNIX for Dummies Questions & Answers
Hello all,
I have attached a txt doc with data sorted into columns (it is best to open with "word pad" to maintain the correct format. In the data there are two columns E/N and Ko. I wanted to know how to extract the data and form an excel sheet. Or at least just extract the data. The data is... (4 Replies)
Discussion started by: gingburg
4 Replies
7. Shell Programming and Scripting
Title : Price : Author : No of books sold
France : 40 : John : 30
Persia : 50 : John : 40
Hey guys i am trying to write a code which can help me to find the correct line and then edit the information... (1 Reply)
Discussion started by: gregarion
1 Replies
8. UNIX for Dummies Questions & Answers
HI,
i would like to ask for your help.
how will i be able to extract part of the filename?
FILENAME: 000_20071222083029135_evPDSN02.CANCEL
i want to get only 000_20071222083029135.CANCEL
Thanks and Good Day! :) (2 Replies)
Discussion started by: drco29
2 Replies
9. Shell Programming and Scripting
Hi Friends,
i am new to unix,i have a big doubt/help.
I have files in folders SER1 and SER2 with naming convention as below
file_2010-03-19.txt and so on
the file naming format is file_<date>.txt. I would like to copy the files to directory "Landing"
I have entries in a log file log.txt... (5 Replies)
Discussion started by: Gopal_Engg
5 Replies
10. Shell Programming and Scripting
Hi,
I have three files as below:
AA.DAT20110505063903.Z
AA.DAT20110405062903.Z
AA.DAT20110305061903.Z
All the above files are appended with Date and timestamp in compressed format.
I need to extract AA.DAT20110505063903.Z(which is the latest file) from one server and uncompress it... (2 Replies)
Discussion started by: pyaranoid
2 Replies
BSCAN(8) Network backup, recovery and verification BSCAN(8)
NAME
bscan - Bacula's 'Scan tape'
SYNOPSIS
bscan [options] bacula-archive
DESCRIPTION
The purpose of bscan is to read (scan) a Bacula Volume and to recreate or update the database contents with the information found on the
Volume. This is done in a non-destructive way. This permits restoring database entries that have been lost by pruning, purging, deleting,
or a database corruption problem.
Normally, it should not be necessary to run the bscan command because the database is self maintaining, and most corrupted databases can be
repaired by the tools provided by the database vendors. In addition, if you have maintained bootstrap files during backups, you should be
able to recover all your data from the bootstrap file without needed an up to date catalog.
bscan command.
OPTIONS
A summary of options is included below.
-? Show version and usage of program.
-b bootstrap
Specify a bootstrap file.
-c config
Specify configuration file.
-d nn Set debug level to nn.
-dt Print timestamp in debug output.
-m Update media info in database.
-D Specify the driver database name (default: NULL)
-n name
Specify the database name (default: bacula)
-u username
Specify database username (default: bacula)
-P password
Specify database password (default: none)
-h host
Specify database host (default: NULL)
-t port
Specify database port (default: 0)
-p Proceed inspite of I/O errors.
-r List records.
-s Synchronize or store in Database.
-S Show scan progress periodically.
-v Verbose output mode.
-V volume
Specify volume names (separated by '|')
-w dir Specify working directory (default from conf file)
SEE ALSO
bls(8), bextract(8).
AUTHOR
This manual page was written by Jose Luis Tallon <jltallon@adv-solutions.net>, for the Debian GNU/Linux system (but may be used by others).
Kern Sibbald 26 November 2009 BSCAN(8)