I need to replace the line containing "STAGE_DB" with the line
"STAGE_DB $DB # database that contains the table being loaded ($workingDB)"
Here $DB is passed during the runtime.
How can I do this?
Thanks,
Kousikan (2 Replies)
Hi All,
I have almost 1000+ files and I want to search specific pattern. Looking forwarded your input.
Search for: word1.word2 (Which procedure contain this word, I need procedure name in output.
Expected output:
procedure test1
procedure test2
procedure test3
procedure test4
... (7 Replies)
Hi,
I have many scripts in particular directory. And few of the scripts have exit 0 in second line. Now i wanted to list out the scripts name which has the exit 0 in its second line
I tried many options , but i can not get the filename along with the nth line pattern match :mad:. Can anyone... (14 Replies)
I have a pattern
username:x:32005:32006::/usr/local/user:/bin/bash
I need to match the line containing username and replace /bin/bash with /usr/local/my/bin/noshell
So it becomes
username:x:32005:32006::/usr/local/user:/usr/local/my/bin/noshell (7 Replies)
Hi ,
I want to print the nth and n+1 lines from a file once it gets a pattern match.
For eg:
aaa
bbb
ccc
ddd
gh
jjjj
If I find a match for bbb then I need to print bbb as well as 3rd and 4th line from the match.. Please help..Is it possible to get a command using sed :) (6 Replies)
Hi How Are you?
I am doing fine!
I need to go now?
I will see you tomorrow!
Basically I need to replace the entire line containing "doing" with a blank line:
I need to the following output:
Hi How Are you?
I need to go now?
I will see you tomorrow!
Thanks in advance.... (1 Reply)
I need to be able to search for a string in the first column and if that string exists than replace the nth column with "-9.99".
AW12000012012 2.38 1.51 3.01 1.66 0.90 0.91 1.22 0.82 0.57 1.67 2.31 3.63 0.00
AW12000012013 1.52 0.90 1.20 1.34 1.21 0.67 ... (14 Replies)
Im using the command below , but thats not the output that i want. it only prints the odd and even numbers.
awk '{if(NR%2){print $0 > "1"}else{print $0 > "2"}}'
Im hoping for something like this
file1:
Text hi this is just a test
text1 text2 text3 text4 text5 text6
Text hi... (2 Replies)
Hi All,
I have sample of listing as following
Database 2 entry:
Database alias = PXRES
Database name = PXRES
Local database directory = /db2/data1/db2phnx
Database release level = d.00
Comment ... (3 Replies)
Discussion started by: ckwan
3 Replies
LEARN ABOUT DEBIAN
cxxtestgen
CXXTESTGEN(1) User Manual CXXTESTGEN(1)NAME
cxxtestgen - Generates test source files for CxxTest
SYNOPSIS
cxxtestgen [options] [-o output] <file> ...
DESCRIPTION
This script parses the files provided and generates an output source file that can be build with traditional compiler to produce the test-
runner executable.
OPTIONS -h
--help Show help message and exit.
--version
Write the CxxTest version.
-o NAME
--output=NAME
Write output to file NAME.
-w WORLD
--world=WORLD
The label of the tests, used to name the XML results.
--include=HEADER
Include file HEADER in the test runner before other headers.
--abort-on-fail
Abort tests on failed asserts (like xUnit).
--main=MAIN
Specify an alternative name for the main() function.
--headers=FILENAME
Specify a filename that contains a list of header files that are processed to generate a test runner.
--runner=CLASS
Create a test runner that processes test events using the class CxxTest::CLASS.
The currently available runners are:
- ErrorPrinter This is the standard error printer, which formats its output to the standard output stream (std::cout). Same as
--error-printer.
- ParenPrinter Identical to ErrorPrinter except that it prints line numbers in parantheses. This is the way Visual Studio expects
it.
- StdioPrinter The same as ErrorPrinter except that it uses printf instead of std::cout.
- XmlPrinter Print test results to an XML file.
- XUnitPrinter This test listener generates output using both ErrorPrinter and XmlPrinter. Same as --xunit-printer.
--gui=CLASS
Create a GUI test runner that processes test events using the class CxxTest::CLASS. (deprecated)
--error-printer
Create a test runner using the ErrorPrinter class, and allow the use of the standard library.
--xunit-printer
Create a test runner using the XUnitPrinter class.
--xunit-file=XUNIT-FILE
The file to which the XML summary is written for test runners using the XUnitPrinter class. The default XML filename is
TEST-<WORLD>.xml, where <WORLD> is the value of the --world option. (default: cxxtest)
--have-std
Use the standard library (even if not found in tests).
--no-std
Do not use standard library (even if found in tests).
--have-eh
Use exception handling (even if not found in tests).
--no-eh
Do not use exception handling (even if found in tests).
--longlong=TYPE
Use TYPE as for long long integers. The default is for 'no' long long integer type to be specified, which is consistent with the
current C++ standard.
--no-static-init
Do not rely on static initialization in the test runner.
--template=TEMPLATE
Generate the test runner using file TEMPLATE to define a template.
--root Write the main() function and global data for a test runner.
--part Write the tester classes for a test runner.
-f
--fog-parser
Use new FOG C++ parser (Python 2.7 is required).
COPYRIGHT
Copyright (C) 2008 Sandia Corporation
This software is distributed under the LGPL License v2.1 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S.
Government retains certain rights in this software
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.
CxxTest generator version 4 2012-01-06 CXXTESTGEN(1)