Forum: Shell Scripting Jan 30th, 2008 |
| Replies: 1 Views: 1,572 This is ugly but it works!:)
if [ "$NAME*" == "$HTML_NAME*" ]; then |
Forum: Shell Scripting Jan 30th, 2008 |
| Replies: 1 Views: 1,572 Hi
I'm trying to compare two files names using the function given below.
The files to be compared are named as
xxx_yyy_abc_def_.rtf && xxx_yyy_abc_def_.html
The extentions and the underscores... |
Forum: Shell Scripting Jan 15th, 2008 |
| Replies: 3 Views: 11,357 Ah!!
Got it!
I need to use quotes " ' " $var1" ' " with my variables
INPUT=`echo | awk '{ print substr("'"$HTML"'","'"$var1"'","'"$var2"'") }'` |
Forum: Shell Scripting Jan 15th, 2008 |
| Replies: 3 Views: 11,357 Hi !
I'm trying to find the substring in a shell script as given:
#! /bin/bash
HTML="<html><body>OK</body></html>"
OK="OK"
OFFSET=`expr index $HTML $OK`
OK_LEN=`expr length $OK`
var1=`expr... |