Hi
I've file1 as:
after I read all rows with awk, I need to change some of them.
I mean, for example if the last row is zero then change row number 4 in zero too.
So I'd like to refers each row as a vector and change its value accordly some conditions. I know that NR keep just the "current"... (2 Replies)
Hello People,
I have the following contents in an XML file
...........
...........
..........
...........
<Details = "Sample Details">
<Name>Bob</Name>
<Age>34</Age>
<Address>CA</Address>
<ContactNumber>1234</ContactNumber>
</Details>
...........
.............
.............. (4 Replies)
I have a two files containing numbers like below. First one contains one number on each line, the other is a table of numbers, each separated by a space. There are the same number of lines in each file.
I want to take each number in the row of the table and find the difference from the... (12 Replies)
I have a file with contents similar to this.
abcd
1234
4567
7666
jdjdjd
89289
9382
92
jksdj
9823
298
I want to write a shell script which count the number of lines that start with the number (disregard the lines starting with alphabets) (1 Reply)
Hi experts a have a very large file and I need to add two columns: the first one numbering the incidence of records and the another with the total count
The input file:
21 2341 A
21 2341 A
21 2341 A
21 2341 C
21 2341 C
21 2341 C
21 2341 C
21 4567 A
21 4567 A
21 4567 C
... (6 Replies)
Dear All,
I am new to UNIX . Please tell me how to retreive row number from the file.
In AS/400 we can retreive RRN(Relative record number ) from the file, In same way what is the option to take relative record number from the file in UNIX.
It may be very easy query, but still I need ur... (9 Replies)
I have a fixed length file and I want to find out row number along with row length.
I have a program that give me the line length if it satisfy the condition; but i would like to add row number as well?
How do I do that?
while IFS= read -r line; do
if ; then
echo ${line}
echo... (8 Replies)
Hi.
How can we print those rows of file2 which are mentioned in file1. first character of file1 is a row number.. for eg
file1
1:abc
3:ghi
6:pqr
file2
a abc
b def
c ghi
d jkl
e mno
f pqr
... (6 Replies)
I have a file which looks something as following, I would like to split to several files, The start and end of each file is 'FILE' and end with 'ASCII... ' .
At the same time for each file in the first column add 100 and also second column add 100 the rest of the column as it is , see example of... (2 Replies)
Discussion started by: tk2000
2 Replies
LEARN ABOUT SUNOS
asant
asant(1M) Application Server Utility asant(1M)NAME
asant - launches the Jakarta Ant tool
SYNOPSIS
asant target_list
Use the asant command to automate repetitive development and deployment tasks. asant is a shell script that invokes the underlying Ant in-
frastructure after initializing the environment to pickup the application server installed targets.
To use Ant as part of the Sun ONE Application Server, verify that your PATH includes the provided asant (Solaris) ant.bat(Windows) script.
The bundled sample applications use asant extensively; however, asant can be used in any development or operational environments.
The build targets are represented in the build.xml files that accompany the sample applications.
To use the Ant tool to compile and reassemble the sample applications, verify that the $AS_INSTALL/bin directory is on your environment's
path. On UNIX, add the $AS_INSTALL/bin directory to your PATH environment variable. On Windows, after installing the Sun ONE Application
Server, set the system path by adding $AS_INSTALLin to the user PATH. You can access the PATH system variable from: Start menu, Settings,
Control Panel, System, Advanced, Environment Variables, User Variables for Administrator, PATH.
The target_list is one or more space separated tasks as described below.
TARGETS
compile compiles all Java source code.
jar assembles the EJB JAR module.
war assembles the WAR file in <sample_dir>/assemble/war
ear assembles the EAR file in <sample_dir>/assemble/ear
core (default) compiles all sources, builds stubs and skeletons; and assembles EJB JAR, WAR and EAR files. This is the
default target for all build.xml files shipped in the Sun ONE Application Server.
javadocs creates Java docs in <sample_dir>/javadocs
all builds core and javadocs , verifies and deploys the application, and adds the resources..
deploy deploys the application and automatically expands the EJB JAR; does not install Javadocs.
undeploy removes the deployed sample from the Sun ONE Application Server.
clean removes <appname>/build/ and <appname>/assemble/ and <appname>/javadocs directories.
verify verifies the deployment descriptors in the sample.
Example 1: Compiling and Assembling a Sample Application
Using the simple stateless EJB sample as an example, execute several of the build targets as follows:
cd install_root/samples/ejb/stateless/simple/src
Execute the compile target to compile the Java sources as follows:
asant compile
Execute the war, ear, and ejbjar target to assemble the J2EE module files and the EAR file as follows by:
asant jar
asant war
asant ear
Alternatively, all the above tasks can be accomplished by:
asant core
Since the default build target is core you can execute asant without any arguments to rebuild the entire application.
Example 2: Building Web-based Applications
You can build everything, including installing Javadocs, and deploying the application by:
asant all
Additionally, you can build everything, except the Javadocs, but deploy the application by:
asant core
or just,
asant
then,
asant deploy
To rebuild the ear after you have modified the deployment descriptors without recompiling:
asant ear
asant deploy
Apache Software Foundation at http://www.apache.org, Jakarta Ant documentation at http://jakarta.apache.org/ant/index.html.
SUNWant documentation located in /usr/sfw/share/doc/ant
, asadmin(1M)Sun Java System Application Server March 2004 asant(1M)