06-08-2010
Thank you guys, a very good lesson!
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I have an input file which looks like
"
@$SCRIPT/atp_asrmt_adj.sql
$SCRIPT/dba2000.scr -s / @$SCRIPT/cim1005w.pls
$SCRIPT/dba2000.scr -s / @$SCRIPT/cim1006w.pls
start $SCRIPT/cim1020d.sql;^M
spool $DATA/cim1021m.sql
@$DATA/cim1021m.sql
! rm $DATA/cim1021m.sql
spool $DATA/cim1021m.sql... (6 Replies)
Discussion started by: dowsed4u8
6 Replies
2. Programming
needa c program to extract text between two delimiters from some text file.
and then storing them in to diffrent variables ?
text file like 0:
abc.txt
=========
aaaaaa|11111111|sssssssssss|333333|ddddddddd|34343454564|asass
aaaaaa|11111111|sssssssssss|333333|ddddddddd|34343454564|asass... (7 Replies)
Discussion started by: kukretiabhi13
7 Replies
3. Shell Programming and Scripting
I executed a following sed command
=> echo "a/b/c/d/e/f/g/h" | sed 's/\/*$//g'
a/b/c/d/e/f/g
Now what if I want to extract "g" from "a/b/c/d/e/f/g/h" . That is second last string using SED. (4 Replies)
Discussion started by: Shell_Learner
4 Replies
4. Shell Programming and Scripting
I have been reading several posts regarding how to extract text from a file, but none of those have helped me for what I need.
This is my problem: I need to extract the text after my pattern
So my line is:
485.74 6589.5 Log likelihood: 1485.79
My pattern is 'Log likelihood:'
and I need... (2 Replies)
Discussion started by: loperam
2 Replies
5. Shell Programming and Scripting
Hi,
I want to extract some text between two strings in a line i am using following command i.e;
awk '/-string1/,/-string2/' filename
contents of file is---
line1
line2
aaa -bbb -ccc -string1 c,d,e -string2
line4
but it is showing complete line which is having searched strings.
aaa... (19 Replies)
Discussion started by: emresearch
19 Replies
6. Shell Programming and Scripting
Hi I have something like this:
EXAMPLE 1
CREATE UNIQUE INDEX "STRING_1"."STRING_2" ON "BOSNI_CAB_EVENTO"
("CD_EVENTO" , "CD_EJECUCION" ) PCTFREE 10 INITRANS 2 MAXTRANS 255
STORAGE(INITIAL 5242880 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "DB1000_INDICES_512K"... (4 Replies)
Discussion started by: chrispaz81
4 Replies
7. Shell Programming and Scripting
Dear community, I know, this is very stupid question, but I'm scratching my head to find a solution.
I have a variable like this:
var=" INFO : ABCDEFG"Now I need to remove the leading spaces and output the result like:
echo "FIELD1 ; FIELD2 ; $RESULT ; FIELD4"
... (17 Replies)
Discussion started by: Lord Spectre
17 Replies
8. Shell Programming and Scripting
Hello all,
I am working on a script which should parse a large file called input.txt which contains table definitions, index definitions and comments like these ones:
------------------------------------------------
-- DDL Statements for table "CMWSYS"."CMWD_TEC_SUIVI_TRT"... (12 Replies)
Discussion started by: kiki_riki_miki
12 Replies
9. Shell Programming and Scripting
Hi,
I have a text like these:
ECHO "BEGGINING THE SHELL....."
MV FILE1 > FILE2
UNIQ_ID=${1}
PARTITION_1=`${PL}/Q${CON}.KSH "SELECT ....."
PARTITION_2=`${PL}/Q${CON}.KSH "SELECT ........"
${PL}/Q${CON}.KSH "CREATE ...."
IF ....
.......
I would like to extract only text that only... (4 Replies)
Discussion started by: mierdatuti
4 Replies
10. Shell Programming and Scripting
Hi all,
I got a txt here and I need to extract all D 8888 44 and D 8888 43 + next field
=",g("en")];f._sn&&(f._sn= "og."+f._sn);for(var n in f)l.push("&"),l.push(g(n)),l.push("="),l.push(g(f));l.push("&emsg=");l.push(g(d.name+":"+d.message));var m=l.join("");Ea(m)&&(m=m.substr(0,2E3));c=m;var... (5 Replies)
Discussion started by: stinkefisch
5 Replies
LEARN ABOUT DEBIAN
svn-bisect
SVN-BISECT(1) General Commands Manual SVN-BISECT(1)
NAME
svn-bisect - Bisect Subversion revisions to find a regression
SYNOPSIS
svn-bisect start [good_rev [bad_rev]]
svn-bisect {good|bad} [rev]
svn-bisect run command
svn-bisect reset
svn-bisect status
DESCRIPTION
svn-bisect helps to automate finding a bug or behavior change in a Subversion working copy. Given an initial "good" revision, with the
desired or original behavior, and a newer "bad" revision, with the undesired or modified behavior, svn-bisect will do a binary search
through the revision range to find which revision caused the change.
svn-bisect must be initialized in a working copy, with svn-bisect start. It also needs to be given at least one good revision (the base-
line) and one bad revision (known modified behavior) revision.
Sub-commands:
start Initializes or reinitializes svn-bisect; optionally takes good and bad revision parameters.
good rev
bad rev
Tells svn-bisect that a revision is good or bad, defining or narrowing the search space. If not specified, revision defaults to the
current revision in the working copy. svn-bisect will then update to a revision halfway between the new good and bad boundaries.
If this update crosses a point where a branch was created, it switches in or out of the branch.
reset Resets the working copy to the revision and branch where svn-bisect start was run. In the simple case this is equivalent to rm -r
.svn-bisect; svn update, but not if it has crossed branches, and not if you did not start at the HEAD revision. In any case,
svn-bisect never keeps track of mixed-revision working copies, so do not use svn-bisect in a working copy that will need to be
restored to mixed revisions.
status Prints a brief status message.
run command
Runs the bisection in a loop. You must have already defined initial good and bad boundary conditions. Each iteration through the
loop runs command as a shell command (a single argument, quoted if necessary) on the chosen revision, then marks the revision as
good or bad, based on the exit status of command.
EXAMPLES
Assume you are trying to find which revision between 1250 and 1400 caused the make check command to fail.
svn-bisect start 1250 1400
svn-bisect run 'make check'
svn-bisect reset
ENVIRONMENT
SVN The Subversion command-line program to call (default svn).
FILES
.svn-bisect
The directory containing state information, removed after a successful bisection.
SEE ALSO
git-bisect(1).
AUTHOR
Written by Robert Millan and Peter Samuelson, for the Debian Project (but may be used by others).
2009-10-22 SVN-BISECT(1)