01-09-2010
Hi,
I tried it as well, but it just doesn't work. :/
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to pass a parameter to a function in a script. My parameter is a string. When I display the parameter within my function, I only get the first word from string I pass in.
How can I make the function receive the whole string (and not terminate at the first space it encounters)?.
part of... (1 Reply)
Discussion started by: fastgoon
1 Replies
2. Shell Programming and Scripting
Hello,
I am trying to replace a string with a paramter given along with the script.
I am replacing application1 to application2 with the script:
./change_app.sh application2
change_app.sh:
#!/bin/ksh
grep $1 applications.dat 2>&1 >/dev/null
echo $1
file=pckage.new
sed 's/Name:... (5 Replies)
Discussion started by: chiru_h
5 Replies
3. Shell Programming and Scripting
Hi Guys,
I am writing a Unix script which accepts a directory path as parameter $1
so something like
/user5.data/WA/01
will be passed in.
I want to determine if the directory path passed in contains "WA" as above (because then I need to do something specific if it does)
What is the... (9 Replies)
Discussion started by: bcunney
9 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I have a variable with value tmp2=123.45.175.243, I am taking this value from a network file.
In the script I need to check whether the variable has only numerals and .(dot).
if ..." ]
then
printf "SUCCESS\n"
else
printf "FAILED\n"
fi
doesnt work, is there a alternate... (1 Reply)
Discussion started by: happyrain
1 Replies
5. Shell Programming and Scripting
Hi,
I need to check if a parameter provided at the command line is equal to --.How can i do that ? Please help me.
Thanks and Regards,
Padmini (4 Replies)
Discussion started by: padmisri
4 Replies
6. Shell Programming and Scripting
Hi,
I have file like below,
Srinivas Jala Srinivas Jala AA
Srikanth ML Srikanth ML KK
Vijay Kumar Dha Vijay Kumar Dha JJ
i want to compare like "Srinivas Jala" word in same line, if i found i shoud get some like found, or not found. Pls help to get the code. (3 Replies)
Discussion started by: Srinivas.Jala
3 Replies
7. Shell Programming and Scripting
Hi friends.
i am newbie to shell scripting. I need to create a script where i will be passing 2 parameters to the script and based on that it should work.
For ex: start_proc a 2 or start_proc b 2
start_proc a 2 --- this should bring up 2 processes as i define inside the script.
start_proc... (2 Replies)
Discussion started by: friscouser
2 Replies
8. Shell Programming and Scripting
Hey I'm new in linux,
I'm looking for a code to check whether the parameter is a number or a string.
I have already tried this code:
eerste=$(echo $1 | grep "^*$">aux)
if
But it doesn't work.:confused:
Thanks (2 Replies)
Discussion started by: Eclecticaa
2 Replies
9. Shell Programming and Scripting
Hi
i have a shell script which needs a string as an input parameter. How to pass the string param as an input?
In command line am running the script.
for e.g.,
a="who is a buddy?"
sh sample.sh $a
Inside the script i get this input param as $1 but only the value "who" is accepted... (12 Replies)
Discussion started by: vidhyaS
12 Replies
10. UNIX for Beginners Questions & Answers
I have below code inside my awk script
if ( $0 ~ /SVC IN:/ )
{
svc_in=substr( $0,23 , 3);
if (msg_start == 1 && msg_end == 0)
{
msg_arr=$0;
}
}
else if ( $0 ~ /^SVC OUT:/ )
{
svc_out=substr( $0, 9, 3);
if (msg_start == 1 && msg_end == 0)
... (6 Replies)
Discussion started by: bhagya123
6 Replies
UNTEX(1) General Commands Manual UNTEX(1)
NAME
untex - strip LaTeX comands from input
SYNOPSIS
untex [ options ] [ files ... ]
DESCRIPTION
Untex removes some LaTeX commands from the files listed in the arguments (or standard input) and prints the output to standard output.
OPTIONS
- read from standard input.
-o remove options to LaTeX commands, i. e. everything in brackets [] behind a command.
-i process "include{file}" and "input{file}" and "input file" commands.
-m (try to) remove all math code.
-u replace all "a (etc.) with ibm (CP850) characters.
-uiso replace all "a (etc.) with ISO characters.
-uascii
replace all "a (etc.) with ascii characters.
-g replace all "a (etc., from german.sty) with ibm (CP850) characters.
-giso replace all "a (etc., from german.sty) with ISO characters.
-gascii
replace all "a (etc., from german.sty) with ascii characters.
-e remove environment names.
-a remove arguments of commands (not recommended).
-g implies -u, -a implies -o.
SEE ALSO
latex, tex, detex
BUGS
The -g and -u options only work for german accented characters. Not fixed due to lack of time, any help is appreciated. The includeonly
command is ignored.
Using -u option in a UTF-8 terminal doesn't work. Using it alone in a Latin1 terminal doesn't work either, you must also add -uiso.
AUTHORS
Untex was written by Michael Staats (michael@hal6000.thp.Uni-Duisburg.DE). The -gascii and -uascii options were added by Denis Endisch
(denis@smoky.ikf.physik.uni-frankfurt.de). Thanks to Subhasish Mazumdar (mazumdar@ringer.cs.utsa.edu) for some hints for improvements and
bug reports.
4th Berkeley Distribution Version 1.2 1994 April 6 UNTEX(1)