Sponsored Content
Top Forums Shell Programming and Scripting Unable to find files using wildcard on AIX. Post 303044232 by mohtashims on Monday 17th of February 2020 04:51:54 AM
Old 02-17-2020
@MadeInGermany i tried the ?* but the problem is i get .jsp files in the output because of '*.js?*' when a .jsp should not be returned in the output when i have -o -name '*.js?*'

Code:
/opt/freeware/bin/find /tmp/custom -type f \( -name '*.xml?*' -o -name '*.js?*' -o -name '*.jsp?*' \) | grep -v '/BACKUP/' | grep -v '/REJECTED/'

Output:
Code:
/tmp/custom/raw/test.jsp
/tmp/custom/log/test.xml.bkp
/tmp/custom/moht.xml_tmp

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Find wildcard .shtml files in wildcard directories and removing them- How's it done?

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

Wildcard in Cshell find command

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

Problem in using wildcard characters in xargs with find

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

Find replace a particular string of data with wildcard

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

find command with wildcard directory

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

Unable to find files using wild card search

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

Unable to find files, those can be present anywhere in the directory tree,based on its creation date

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

Find and replace with wildcard

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

Issue with wildcard in filename (AIX 7.1.0.0)

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

Unable to grep using wildcard in a file.

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)
All times are GMT -4. The time now is 07:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy