Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Unable to execute the complete cmd - using find command Post 302583675 by venkatesht on Wednesday 21st of December 2011 02:46:24 AM
Old 12-21-2011
Thanks.

I tried in the same way by putting it in a file and executing (./<<file name>> ), getting the "ls -ltr" output but not the desired one.

#!/bin/csh
Quote:
find . \( -iname "*.bak*" -o -iname "*_bak*" -o -iname "*.bkup*" -o -iname "*_bkup*" -o -iname "*.[0-9][0-9]*" -o -iname "*_[0-9][0-9]*" -o -iname "*gcms*" -o -iname "*_gcmc*" -o -iname "*itnb*" -o -iname "*_itnb*" \) -mtime +10 | grep -v "snapshot" | xargs ls -ltr
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

UNable to find ping command

HI, I am new to unix. I have used some basic commands and written some simple shell scripts in teh past. Currently, I am supposed to write a script to continuosly check if a couple of machines are up and if not to start a script. I am using a bash - 2.03. I have tryying to use the ping command... (3 Replies)
Discussion started by: swepaul
3 Replies

2. Shell Programming and Scripting

Need to execute a complete url from crontab

Hi, I need to execute a URL through crontab. Please could you help me to. I need something like 15 0 * * * http://www.mysite.com/index.php. Is it possible. If not, how can I execute a script from another server.. Any help will be appritiatable. Many thanks, Nissar.P.K (2 Replies)
Discussion started by: nissar
2 Replies

3. Forum Support Area for Unregistered Users & Account Problems

Help! I'm unable to complete my registration

I have followed the instructions contained in my confirmation email and when I do I am referred here: https://www.unix.com/register.php?a=act&u=302021451&i=94824252. When I follow the instructions on that screen I am directed to the same error page. Please assist. Thank you in advance. (1 Reply)
Discussion started by: ramiller01
1 Replies

4. Shell Programming and Scripting

Unable to find java command

Hi All, Am trying to start a server by using the startup shell script. But am getting java command not found. Can anyone guide me in which path i need to check for all the java commands and also how do i chk the version of java being installed on linux box? Thanks (3 Replies)
Discussion started by: Ashok_oct22
3 Replies

5. AIX

Unable to execute snap command

Hi Friends, I am not able to execute snap -a command in AIX 6 system. Could you please let me know how to make work this command and Path to be set. Thanks in Advance Siva. (4 Replies)
Discussion started by: sivakumarl
4 Replies

6. AIX

Unable to find crypt command

Hi Friends, I am not able to execute crypt in AIX OS. Could you pls let me know how to get this command. Thanks in Advance Siva. (1 Reply)
Discussion started by: sivakumarl
1 Replies

7. Linux

How to execute nohup cmd

Hi, nohup sar -u 10 $COUNT | awk 'NR>2 {$2=$4=$7="";}1' | tr -s ' ' '\t' 2>/dev/null >sar.out & i have execute above line from shell script .. but sar.out is created with ZERO bite size.. Help on that what is the problem here Thx, Mani (0 Replies)
Discussion started by: Mani_apr08
0 Replies

8. Shell Programming and Scripting

Telnet using port and execute cmd

Hi, my query is: I am Login on server with IP xxx.xxx.xxx.xxx.. and i want a script where i want to telnet to server with IP yyy.yyy.yyy.yyy using specific port and then execute a cmd there on server Y please suggest (1 Reply)
Discussion started by: dodasajan
1 Replies

9. Shell Programming and Scripting

Execute command using ssh server 'cmd'

Hi The command below does not work as it require to take command in the breakers But If I do so the variable values get lost ssh testserver01 'dsmc q b "${ARCHIVE_DIR}*" -sub=yes -querysummary -inactive -fromd="${BACKUP_DATE}"' Thank you. (3 Replies)
Discussion started by: zam
3 Replies

10. UNIX for Advanced & Expert Users

Find command takes too long to complete

Hi, Below is my find command find /opt/app/websphere -name myfolder -perm -600 | wc -l At time it even takes 20 mins to complete. my OS is : SunOS mypc 5.10 Generic_150400-09 sun4v sparc SUNW,T5440 (10 Replies)
Discussion started by: mohtashims
10 Replies
SGMLNORM(1)															       SGMLNORM(1)

NAME
sgmlnorm - normalize SGML documents An SGML System Conforming to International Standard ISO 8879 -- Standard Generalized Markup Language SYNOPSIS
sgmlnorm [ -Cdemnv ] [ -bbctf ] [ -ccatalog ] [ -Ddir ] [ -iname ] [ -wwarning ] sysid... DESCRIPTION
sgmlnorm prints on the standard output a normalized document instance for the SGML document contained in the concatenation of the entities with system identifiers sysid... When the normalized instance is prefixed with the original SGML declaration and prolog, it will have the same ESIS as the original SGML document, with the following exceptions: o The output of sgmlnorm does not protect against the recognition of short reference delimiters, so any USEMAP declarations must be removed from the DTD. o The normalized instance will use the reference delimiters, even if the original instance did not. o If marked sections are included in the output using the -m option, the reference reserved names will be used for the status keywords even if the original instance did not. o Any ESIS information relating to the SGML LINK feature will be lost. The normalized instance will not use any markup minimization features except that: o Any attributes that were not specified in the original instance will not be included in the normalized instance. (Current attributes will be included.) o If the declared value of an attribute was a name token group, and a value was specified that was the same as the name of the attribute, then the attribute name and value indicator will be omitted. For example, with HTML sgmlnorm would output <DL COMPACT> rather than <DL COMPACT="COMPACT">. OPTIONS
-bbctf Use the BCTF name bctf for output. See nsgmls(1) for more information about this option. -cfile Use the catalog entry file file. -C The filename... arguments specify catalog files rather than the document entity. The document entity is specified by the first DOCU- MENT entry in the catalog files. -d Output a document type declaration with the same external identifier as the input document, and with no internal declaration subset. No check is performed that the document instance is valid with respect to this DTD. -Ddirectory Search directory for files specified in system identifiers. Multiple -D options are allowed. See nsgmls(1) for more information about this option. -e Describe open entities in error messages. -iname Pretend that <!ENTITY % name "INCLUDE"> occurs at the start of the document type declaration subset in the SGML document entity. Since repeated definitions of an entity are ignored, this definition will take precedence over any other definitions of this entity in the document type declaration. Multiple -i options are allowed. If the SGML declaration replaces the reserved name INCLUDE then the new reserved name will be the replacement text of the entity. Typically the document type declaration will contain <!ENTITY % name "IGNORE"> and will use %name; in the status keyword specification of a marked section declaration. In this case the effect of the option will be to cause the marked section not to be ignored. -m Output any marked sections that were in the input document instance. -n Output any comments that were in the input document instance. -r Raw output. Don't perform any conversion on RSs and REs when printing the entity. The entity would typically have the storage man- ager attribute records=asis. -v Print the version number. -wtype Control warnings and errors according to type. See nsgmls(1) for the allowed values of type. AUTHOR
James Clark <jjc@jclark.com> Conversion to DocBook and man page from original HTML documention by Steve Cheng <steve@ggi-project.org>. SEE ALSO
nsgmls(1) /usr/share/doc/sp/sgmlnorm.htm SP
05 July 1999 SGMLNORM(1)
All times are GMT -4. The time now is 03:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy