This works
But instead of building a file, I want to do the same with a var or an array. That is, to build one that saves all 5 of the subs execution responses in a var or an array available to print at the end of the script.
Ih all,
i have multiples ksh scripts for crontab's unix jobs
they all have same variables declarations and some similar functions
i would have a only single script file to declare my variables, like:
var1= "aaa"
var2= "bbb"
var3= "ccc"
...
function ab { ...}
function bc { ... }... (2 Replies)
hi sirs
can u tell the difference between /var/log/syslogs and /var/adm/messages
in my working place i am having two servers.
in one servers messages file is empty and syslog file is going on increasing..
and in another servers message file is going on increasing but syslog file is... (2 Replies)
Hi there, In the following test, how to use shell var for pattern, regular expression. I need to accept pattern at argument, use it to pattern matching at shell script.
Test:
#!/bin/ksh
# name t.sh
exp="a@(a|b)"
touch aa ab ac
echo "\nTest without variable"
echo "---------------------"... (2 Replies)
Anyone knows why the following function does not work in ksh (it does in bash)?
var() # Displays var value; case insensitive
{
_var="$1"
if ; then
echo ${!_var}
else
_var=$(echo "$_var" | tr 'a-z' 'A-Z')
echo ${!_var}
fi
unset _var
}$ var home
ksh:... (4 Replies)
hi,
i can see in a script
it contains
var=$(
myFile | grep -i err
)
why has this person done it like this? why not just
var=`myFile | grep -i err`
thanks (9 Replies)
I want to build an Errorlog. I would like to build an array as I move through the if statements and print the array once all error conditions have been defined. The results need to be comma delimited.
tsver will be static "1.9.6(2)"
other vars $prit $lt $rt can have the same or a different... (1 Reply)
i try to find way to make string concatenation in csh ( sorry this is what i have )
so i found out i can't do :
set string_buff = ""
foreach line("`cat $source_dir/$f`")
$string_buff = string_buff $line
end
how can i do string concatenation? (1 Reply)
I have been searching and reading about syslog. I would like to know how to Transfer the logs being thrown into /var/log/messages into another file example /var/log/volumelog.
tail -f /var/log/messages
dblogger: msg_to_dbrow: no logtype using missing
dblogger: msg_to_dbrow_str: val ==... (2 Replies)
Discussion started by: kenshinhimura
2 Replies
LEARN ABOUT DEBIAN
parsewiki
PARSEWIKI(1) User Commands PARSEWIKI(1)NAME
parsewiki - transform marked text into HTML, XHTML, Docbook or LaTeX
SYNOPSIS
parsewiki [OPTION]... [FILE]
DESCRIPTION
This manual page documents briefly the parsewiki command. This manual page was written for the Debian distribution because the original
program does not have a manual page.
parsewiki is a program that transform a text file with a very minimal Wiki style syntax into other formats, including HTML, XHTML, Docbook
and LaTeX.
See the file /usr/share/doc/parsewiki/doc/manual-en.txt for a description of the parsewiki syntax.
OPTIONS -f, --format=FORMAT
Output format; one of html, xhtml, docbook, latex. (default html)
-T, --title=TITLE
Title.
-t, --template=FILE
File with a template to use instead of the standard.
-c, --copyright
Display copyright and copying permission statement.
-h, --help
Show this usage summary.
FILE is a simple text file with wiki formating syntax. The result will be sent to the Standard Output. If FILE is not given, input will be
taken from the Standard Input.
EXAMPLES
$ parsewiki myfile.wiki
$ cat file.txt | parsewiki -fdocbook --title="An Example" > file.xml
BUGS
Report bugs to <villate@gnu.org>.
AUTHOR
This manual page was written by Sergio Talens-Oliag <sto@debian.org>, for the Debian project (but may be used by others).
parsewiki 0.4.3 July 2003 PARSEWIKI(1)