Search Results

Showing results 1 to 4 of 4
Search took 0.00 seconds.
Search: Posts Made By: lookof2day ; Forum: Shell Scripting and child forums
Forum: Shell Scripting Jan 30th, 2008
Replies: 1
Views: 1,572
Posted By lookof2day
This is ugly but it works!:)


if [ "$NAME*" == "$HTML_NAME*" ]; then
Forum: Shell Scripting Jan 30th, 2008
Replies: 1
Views: 1,572
Posted By lookof2day
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
Posted By lookof2day
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
Posted By lookof2day
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...
Showing results 1 to 4 of 4

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC