I'm new to unix scripting. How would I go about pulling the first 3 characters from a variable in ksh and storing in another variable? Thanks. (9 Replies)
hi all,
how do i subract variables in shell ?? am trying to space out the headers and the output generated by the shell so they all line up :
currently the output is like this :
servers : users
server1 : 10
latestServer : 50
so i thought... (3 Replies)
Hi,
I'm new to shell programming.
I have two variables a and b
a=val1
b=val2
could anyone kindly post the shell script to concatenate the values of variable a and b with an underscore(_) in between?
The final output should be val1_val2. (8 Replies)
I'm trying to set a variable to the output of a command.
This is what the comand output to the display looks like:
/>hciconndump -v TOsiu
Dump of connection(s): TOsiu
----------------------------------------------------------------------
Process: A60Tsiu Connection: TOsiu... (2 Replies)
I can't believe I can't figure this out... given this code:
CARS_DATA_LIST=`cat /tmp/file1 | awk '{print $1}' `
FMSA_DATA_LIST=`cat /tmp/file2 | awk '{print $1}' `
The value of each of the above variables is:
CARS = a b c d e f g
FMSA = a b c q r s
I want to declare a third... (8 Replies)
Hello,
I have a tricky problem:
I have a $file with a variable number of occurrences of "ORA-" (in this case two)
..........
EXP-00008: ORACLE error 3113 encountered
ORA-03113: end-of-file on communication channel
EXP-00056: ORACLE error 1403 encountered
ORA-01403: no data found... (9 Replies)
Hi,
I 'm trying to send an e-mail for every different line in the .txt
for i in {1..$variable}
do
sed -n "/$i$/p" text.txt
done
I have two problems about this.
First one is that for loop doesn't work
and the second one is that i cant get the output of sed (4 Replies)
I need to know how to concatenate variables in Debian. I am making a interactive script where it ask the user for info to add a user I pull the first letter from the first middle and last name into individual variables now i want to put them all in one variable so i can put it into useradd command ... (4 Replies)
Hi Friends ,
I want to know how to format the output for the following:
i searched in the forum and couldnt get the exact requirement.
Thanks in advance . (2 Replies)
Hi Guys,
I was scratching my head for this for half a day... finally not successful :confused:
Following is the problem
I have a variable
$ var1=123
$ var2-234
$ var3=345
and another Variable
$ i=1
Now i wanted to save these into a Variable as shown below
for i in 1 2 3
do... (5 Replies)
Discussion started by: ramprabhum
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)