Hello,
I have a string below
DUMMY=1,2,3,4,5,6
I want to extract fields 1-3 and put it as under in a file
1,2,3
I can do this using cut like below
echo $DUMMY | cut -d, -f1-3
But I would be processing more than 15000 such entries and I found that "cut" was using more CPU. So anyone... (2 Replies)
Using lsof command i can find out which process-id is associated with the port.
lsof -i :51000
. But as part of process i cant have lsof in the server.
I am using sun solaris 8 and only kshell. Is there a way to find out which process is using the above port. as of now i am gettn port... (1 Reply)
I am trying to write a simple script which will take a variable with sed to take a line out of a text and display it
#!/bin/sh
exec 3<list
while read list<&3
do
echo $list
sed -n '$list p'<list2
done
this does not work, yet when I replace the $list variable from the sed command and... (1 Reply)
Hi all,
I have to append every alternate line after its previous line. For example if my file has following contents
line 1: unix is an OS
line 2: it is open source
line 3: it supports shell programming
line 4: we can write shell scripts
Required output should be
line1: unix is an OS it is... (4 Replies)
I have been using grep for removing lines of a particular pattern from a long file in the following way
grep -vf Exclude_Lines File1 > File2
But grep seems to have some problems because sometimes it does the job, sometimes it does not....I have seen AWK is more powerful..
Can the same thing... (5 Replies)
Hi, I have a question.
I define a function using sed command:
replace()
{
searchterm=$1
replaceterm=$2
sed -e "s/$searchterm/$replaceterm/ig" $3 > $WORK'tempfile.tmp'
mv $WORK'tempfile.tmp' $3
}
Then I call
replace 'test = 0' 'test = 1' $myfileThis code works well in... (1 Reply)
Hi, I have a question.
I define a function using sed command:
replace()
{
searchterm=$1
replaceterm=$2
sed -e "s/$searchterm/$replaceterm/ig" $3 > $WORK'tempfile.tmp'
mv $WORK'tempfile.tmp' $3
}
Then I call
replace 'test = 0' 'test = 1' $myfile
This code... (1 Reply)
Experts,
At the moment I am working in AIX box where sed -i is not available.
My requirement is as below
Two files file1 and file2. file1 contains the IP address, its count. file2 contains the Hostname and its corresponding IP address. I would like get the IP address replaced with the apt... (7 Replies)
hi..
i have a fasta file with the following format
>sequence1
CCGGTTTTCGATTTGGTTTGACT
>sequence2
AAAGTGCCGCCAGGTTTTGAGTGT
>sequence3
AGTGCCGCAGAGTTTGTAGTGT
Now, i want to read alternate line and add "GGGGGGGGGGG" to end of every sequence
Desired output:
>sequence1... (4 Replies)
Why when I use this command do I get "E123"?
echo NCE123 | sed -n 's/\(.*\)\(\{1,\}\{1,5\}\)\(.*\)/\2/p'
But when I used this command, I get NCE123?
echo NCE123 | sed -n 's/\(.*\)\(\{3\}\{1,5\}\)\(.*\)/\2/p'
I thought \{1,\} would mean any number of characters and \{1,5\ would mean 1-5... (1 Reply)
Discussion started by: newbie2010
1 Replies
LEARN ABOUT OPENSOLARIS
scdsbuilder
scdsbuilder(1HA) Sun Cluster Commands scdsbuilder(1HA)NAME
scdsbuilder - launch GUI version of Sun Cluster Agent Builder
SYNOPSIS
scdsbuilder
DESCRIPTION
The scdsbuilder command launches the GUI version of the Sun Cluster Agent Builder.
Before you use Agent Builder, verify the following requirements:
o The Java runtime environment is included in your $PATH variable. Agent Builder depends on the Java Development Kit, starting
with Version 1.3.1. If the Java Development Kit is not included in your $PATH variable, the Agent Builder command (scdsbuilder)
returns and displays an error message.
o You have installed the Developer System Support software group of the Solaris 9 OS or Solaris 10 OS.
o The cc compiler is included in your $PATH variable. Agent Builder uses the first occurrence of cc in your $PATH variable to
identify the compiler with which to generate C binary code for the resource type. If cc is not included in $PATH, Agent Builder
disables the option to generate C code.
Note -
You can use a different compiler with Agent Builder than the standard cc compiler. To use a different compiler, create a symbolic link in
$PATH from cc to a different compiler, such as gcc. Or, change the compiler specification in the makefile (currently, CC=cc) to the com-
plete path for a different compiler. For example, in the makefile that is generated by Agent Builder, change CC=cc to CC=pathname/gcc. In
this case, you cannot run Agent Builder directly. Instead, you must use the make and make pkg commands to generate data service code and
the package.
EXIT STATUS
This command returns the following exit status codes:
0 The command completed succesfully.
nonzero An error occurred.
FILES
install_directory/rtconfig Contains information from the previous session. This information facilitates the tool's quit and
restart feature.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWscdev |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO cc(1B), scdscreate(1HA), scdsconfig(1HA), attributes(5)
Chapter 9, Sun Cluster Agent Builder, in Sun Cluster Data Services Developer's Guide for Solaris OS
Sun Cluster 3.2 14 Sep 2007 scdsbuilder(1HA)