02-17-2020
Quote:
Originally Posted by
MadeInGermany
(@Neo, nothing was really missing. I was able to construct the output from the given input sample and the given code. And no error message.)
.
This is not an issue of "being able to construct the output" Anyone can construct the output with basic skills.
The point is that readers should not have to construct the output. OPs should post their output.
These are the rules.
Thanks.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm trying to figure out how to build a small shell script that will find old .shtml files in every /tgp/ directory on the server and delete them if they are older than 10 days...
The structure of the paths are like this:
/home/domains/www.domain2.com/tgp/
/home/domains/www.domain3.com/tgp/... (1 Reply)
Discussion started by: Neko
1 Replies
2. Shell Programming and Scripting
The following command works fine in my cshell script:
set Deliverables = `find . -name "eliverables" -print`
The following command does not work:
set LASFiles = `find . -name "*." -print`
In the first example, when tested in an if statement, the script will continue whether a... (3 Replies)
Discussion started by: phudgens
3 Replies
3. Solaris
Hi,
Under my parent diectory I have directory named "Response" in many of its subfolders. I am interested to see all files with extention .pro in Response Directory. I am giving following command -
find . -name "Response" -type d | xargs -i ls -lrt {}/*.pro
but it is not giving result.
... (3 Replies)
Discussion started by: sanjay1979
3 Replies
4. Shell Programming and Scripting
Hi
I am having a csv file in which lots of data are available wherein i need to find a particular kind of data and replace it with null value.
here is the sample data..
I need to find the string starting with 404-064- and up to the first space i have to remove the data and keep the... (4 Replies)
Discussion started by: aemunathan
4 Replies
5. Shell Programming and Scripting
I want to look if there is any file inside a specific directory which was modified before 2 days.
I wrote the find command, but the problem is there is one directory and that is a random directory generated by unix, so not sure on how to code for that on the find command.
find... (5 Replies)
Discussion started by: srini0603
5 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
My server is AIX and i am trying to search for a file in a specific path in directory.
The file name can be of two types:
Position_20131114.csv
Position123333_20131114.csv
I am trying to assign a SOURCEFILE variable as mentioned below:, but i am unable to find/locate the files... (2 Replies)
Discussion started by: abhi_123
2 Replies
7. UNIX for Dummies Questions & Answers
Hi
I am unable to find files, those are present anywhere in the same directory tree, based on the creation date. I need to find the files with their path, as I need to create them in another location and move them. I need some help with a script that may do the job.
Please help (2 Replies)
Discussion started by: sam192837465
2 Replies
8. UNIX for Beginners Questions & Answers
HI there,
I am trying to find and replace with wildcard with
data
chr1 69511 69511 A G 1/1:0,34:791,78,0:78:34 0/1:55,60:1130,0,1513:99:116 1/1:0,28:630,63,0:63:28 0/1:0,34:626,57,0:57:34
To this
chr1 69511 69511 A G homo hetero homo hetero
Where I find and replace 0/1 with... (3 Replies)
Discussion started by: daashti
3 Replies
9. AIX
Hi,
This has been pestering me for quite a while, any help will be highly appreciated
The current directory has a file with below name
npidata_20050523-20171210.csv
The below wildcard matched the above file
ls -ltr npidata_????????-201712??.csv
But when the part '201712' is put... (6 Replies)
Discussion started by: zulfi123786
6 Replies
10. Shell Programming and Scripting
I wish to check if my file has a line that does not start with '#' and has
1. Listen and 2. 443
echo "Listen 443" > test.out
grep 'Listen *443' test.out | grep -v '#'
Listen 443
The above worked fine but when the entry changes to the below the grep fails... (2 Replies)
Discussion started by: mohtashims
2 Replies
jspc(1M) Application Server Utility jspc(1M)
NAME
jspc - precompiles JSP source files into servlets
SYNOPSIS
jspc [options]jsp_filesor jspc [options]-webapp dir
Use the jspc command to compile your JSP 1.2 compliant source files into servlets. To allow the application server to pick up the precom-
piled JSPs from a JAR file, you must disable dynamic reloading of JSPs. To do this, set reload-interval property to -1 in the jsp-config
element of the sun-web.xml file.
For more information about the sun-web.xml file, see the Sun ONE Application Server Developer's Guide.
jsp_files one or more JSP files to be compiled.
-webapp dir a directory containing a web application. All JSPs in the directory and its subdirectories are compiled. You cannot
specify a WAR, JAR, or ZIP file; you must first deploy it to an open directory structure using asadmin deploy.
-q enables quiet mode (same as -v0). Only fatal error messages are displayed.
-d dir the output directory for the compiled JSPs. Package directories are automatically generated based on the directo-
ries containing the uncompiled JSPs. The default top-level directory is the directory from which jspc is invoked.
-p name the name of the target package for all specified JSPs, overriding the default package generation performed by the
-d option.
-c name the target class name of the first JSP compiled. Subsequent JSPs are unaffected.
-uribase dir the URI directory to which compilations are relative. Applies only to JSP files listed in the command, and not to
JSP files specified with -webapp option. This is the location of each JSP file relative to the uriroot. If this
cannot be determined, the default is /.
-uriroot dir the root directory against which URI files are resolved. Applies only to JSP files listed in the command, and not
to JSP files specified with -webapp option. If this option is not specified, all parent directories of the first
JSP page are searched for a WEB-INF subdirectory. The closest directory to the JSP page that has one is used. If
none of the JSP's parent directories have a WEB-INF subdirectory, the directory from which jspc is invoked is used.
-genclass compiles the generated servlets into class files.
-v [level] enables verbose mode. The level is optional; the default is 2. Possible level values are:
o
0 - fatal error messages only
o 1 - error messages only
o 2 - error and warning messages only
o 3 - error, warning, and informational messages
o 4 - error, warning, informational, and debugging messages
-mapped generates separate write calls for each HTML line and comments that describe the location of each line in the JSP
file. By default, all adjacent write calls are combined and no location comments are generated.
-die [code] causes the JVM to exit and generates an error return code if a fatal error occurs. If the code is absent or
unparsable it defaults to 1.
-webinc file creates partial servlet mappings for the -webapp option, which can be pasted into a web.xml file.
-webxml file creates an entire web.xml file for the -webapp option.
-ieplugin class_id specifies the Java plugin COM class ID for Internet Explorer. Used by the jsp:plugin tags.
EXAMPLES
Example 1: Using jspc to compile the JSPs in a web application
The following command compiles a set of JSP files into Java files under Hellodir:
jspc -d Hellodir welcome.jsp shop.jsp checkout.jsp
The following command compiles all the JSP files in the specified webapp into class files under Hellodir:
jspc --d Hellodir --genclass --webapp /path_to_webapp_directory
To use these precompiled JSP in the web application, put the generated files under Hellodir into a JAR file, place the JAR file under WEB-
INF/lib and set reload-interval property to --1 in the jsp-config element of the WEB-INF/sun-web.xml file.
asadmin(1M)
Sun Java System Application Server March 2004 jspc(1M)