01-09-2012
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I need to prompt for a response from a user to enter a path
read dest_dir?"Please Enter Directory :"
How do I do this until a valid directory is entered by the user. I can use
to check the existence of the directory. However when I try the following I cannot get it to work.
while ... (2 Replies)
Discussion started by: jerardfjay
2 Replies
2. Shell Programming and Scripting
I'm trying to write a script that identifies whether a directory of the form AWL.????????.IP exists. I have one that exists which is AWL.05301032.IP.
When I test like this: If ]
I get true, but when I test like this:
If ]
Or like this
If ]
Or any other variation of wild cards, I... (4 Replies)
Discussion started by: philplasma
4 Replies
3. UNIX for Dummies Questions & Answers
Hi.
I what to write a make file that inside a target I want to check if a directory exists.
some like:
### make
a:
if ;then
<command 1>
else
<command 2>
fi
### make end
Thanks a lot
---------------------- (2 Replies)
Discussion started by: zivsegal
2 Replies
4. Shell Programming and Scripting
Hello:
Can someone please help me figure out what is wrong here, my script does not move on to the "else" part even though there is no .ssh directory on my remote server:
$more putkey.sh
#!/bin/ksh
for server in `cat list`
do
if ; then
cat $HOME/.ssh/id_rsa.pub |ssh $server ' cat >>... (4 Replies)
Discussion started by: Sara-sh
4 Replies
5. Shell Programming and Scripting
Hey guys im trying to check if the directory exists
i get a syntax error on the elif statement iv tried using else and still same result im not sure. If the directory does not exist can i just insert mkdir /tmp/old under the elif once that part gets working
if ; then
#do nothing
elif
echo... (20 Replies)
Discussion started by: musicmancanora
20 Replies
6. Shell Programming and Scripting
cp $PATHLOGS/$DATE/*.* $TMP/logs_tmp/
cp $PATHLOGS/$DATE1/*.* $TMP/logs_tmp/
Before copying the files I have to check if the directory $DATE1 and $DATE2 exists.
If directory exists then, check if the folder contains some files.
if the file exists then, check if the file size is greater... (3 Replies)
Discussion started by: sandy1028
3 Replies
7. Shell Programming and Scripting
Hi,
I am using solaris 10 OS and bash shell.just checking for small code snippet which follows below.
/export/home/vomappservers/spa/common/5.0
/export/home/vomappservers/spa/common/scripts
/export/home/vomappservers/spa/tools
/export/home/vomappservers/spa/scm5.0/SCCS... (5 Replies)
Discussion started by: muraliinfy04
5 Replies
8. Shell Programming and Scripting
Hi Gurus,
I have a requests to find if all the file in the filelist exist in certain directory.
example:
my filelist
abc
def
ddd
cde
afg
how can I find these 5 files exists at director /home/abc
Thanks in advance (7 Replies)
Discussion started by: ken6503
7 Replies
9. Shell Programming and Scripting
Hi guys,
I am beginner trying to learn unix. So any help is welcomed.
My requirement is to check whether is a file exists in a particular directory or not.
The directory path and filename are taken dynamically with user interaction. So the program should continue only if the $filename... (1 Reply)
Discussion started by: maris_markur
1 Replies
10. UNIX for Beginners Questions & Answers
There are some files with suffix dates like abc_20032019.dat abc_17032019.dat
If at least one file exists then perform some operation else exit from execution.
Korn shell
----------------------------------
array=($inputdir/abc*.dat)
If ] ]
then
echo " file exits"
else
echo " file does... (10 Replies)
Discussion started by: Rajesh123
10 Replies
XALAN(1) General Commands Manual XALAN(1)
NAME
xalan - Process XML documents with XSLT stylesheets
SYNOPSIS
xalan [options]
DESCRIPTION
Xalan-C++ (named after a rare musical instrument) implements the W3C Recommendation 16 November 1999 XSL Transformations (XSLT) Version 1.0
and the XML Path Language (XPath) Version 1.0. XSLT is the first part of the XSL stylesheet language for XML. It includes the XSL Transfor-
mation vocabulary and XPath, a language for addressing parts of XML documents. For links to background materials, discussion groups, fre-
quently asked questions, and tutorials on XSLT, see Getting up to speed with XSLT.
You use the XSLT language to compose XSL stylesheets. An XSL stylesheet contains instructions for transforming XML documents from one docu-
ment type to another document type (XML, HTML, or other). In structural terms, an XSL stylesheet specifies the transformation of one tree
of nodes (the XML input) into another tree of nodes (the output or transformation result).
OPTIONS
Options are case-sensitive.
-in URL
Sets the input URL. If nothing is set, stdin is used.
-xsl URL
Sets the XSLT sheet URL.
-out file
Sets the output filename.
-v Show version information only.
-qc Quiet pattern conflicts warnings.
-q Use quiet mode.
-indent n
Controls how many spaces to indent. Default is 0.
-validate
Controls whether validation occurs. Validation is off by default.
-tt Trace the templates as they are being called.
-tg Trace each generation event.
-ts Trace each selection event.
-ttc Trace the template children as they are being processed.
-xml Use XML formatter and add XML header.
-text Use simple Text formatter.
-html Use HTML formatter.
-dom Use DOM formatter. Formats to DOM, then formats XML for output.
-xst Use source tree formatter. Formats to Xalan source tree, then formats XML for output.
-param name expression
Sets a stylesheet parameter.
-xd Use Xerces DOM instead of Xalan source tree.
-de Disable built-in extension functions
The following option is valid only with -HTML
-noindent
Turn off HTML indenting.
The following option is valid only with -XML.
-nh Don't write XML header.
AUTHOR
The Apache Software Foundation.
SEE ALSO
http://www.w3.org/TR/xslt
XSL Transformations Version 1.0 (XSLT)
http://www.w3.org/TR/xpath
XML Path Language Version 1.0 (XPATH)
Debian GNU/Linux 2001 XALAN(1)