Hi
How do i compare two strings in shell script. Below is an example but I am not getting the desired output, plz help
if
then
echo success
fi
I am not getting the desired output if I do this. plz help (24 Replies)
Hi All,
While I am trying to run below code I Am getting the exception like
./abs.sh: line 102: syntax error near unexpected token `then'
./abs.sh: line 102: ` then'
The Code Snippet is:
if then
cat $file1 | sed -e... (8 Replies)
i have a string in a file which gets repeated number of times like below:
rpttxt("abc")
.
.
rpttxt("REP_TITLE")
rpttxt("BOS_TITLE")
.
.
.
.
and so on
using awk or grep how can i comapre the string( as the second half keeps varying) and store it in a temporary variable? I am using the... (3 Replies)
hi All
i am facing prob in comparing two strings that have two word.
below is the code snippet.
checkValidates="file validates"
file3_name="file"
if
then
echo "file" $file3_name "is validated successfully"
fi
when i run this i get the error as -bash: [: too many arguments
... (1 Reply)
Hi Guys,
i tried these two commands. First in awk and nawk.
The nawk command is running fine but the awk command is throwing error.
What is wrong with the awk command. There are lot of awk commands running fine in my system
d003:/usr/local/dsadm/dsprod>nawk 'NR = 1 {print " "$0}' a.txt
... (6 Replies)
Hi, So I got his code below. $year is a string of 2010,2011 etc.
I guess I want to convert $year to an integer so I can do my if statement to see if the year string is greater than 2010? Or how could I do this?
Right now I get a syntax error doing this.
if; then
do stuff
fi (2 Replies)
Hi I tried the following string comparison script in Ksh88
#!/bin/ksh
str1='aC'
str2='ABC'
if
then
echo "Equal"
else
echo "Not Equal"
fi
Though str1 and str2 are not equal the script output says Equal .
Please correct me
Thanks (2 Replies)
Discussion started by: smile689
2 Replies
LEARN ABOUT REDHAT
makempx
MAKEMPX(1) General Commands Manual MAKEMPX(1)NAME
makempx - typeset labels in MetaPost pictures with TeX or Troff
SYNOPSIS
makempx [--tex|--troff] mpfile mpxfile
DESCRIPTION
This manual page is not meant to be exhaustive. The complete documentation for this version of TeX can be found in the info file or manual
Web2C: A TeX implementation.
If mpxfile is older than mpfile, translate the labels from the MetaPost input file mpfile to low-level commands in MPXFILE, by running mpto
-tex, tex, and dvitomp by default; or, if -troff is specified, mpto -troff, eqn -d$$ | troff -Tpost, and dmp.
The current directory is used for writing temporary files. Errors are left in mpxerr.{tex,log,dvi}.
If the file named in $MPTEXPRE (mptexpre.tex by default) exists, it is prepended to the output in tex mode.
makempx is typically called by mpost, not from the command line.
OPTIONS
makempx accepts the following options:
--help Print help message and exit.
--tex Assume input file contains TeX commands.
--troff
Assume input file contains Troff commands.
--version
Print version information and exit.
SEE ALSO mpost(1), mpto(1).
Web2C 7.3.1 4 January 1998 MAKEMPX(1)