From: Amindra Mahto (MahtoA@dime.com)
Date: Thu Apr 25 2002 - 17:02:21 EDT
Hi Gurus,
I am having a very small problem and I am sure this might be because some
syntax error.
I have written a backup script in that script I am using 2 variables and in
sed I am substituting the value of those 2 variables but for some reason its
not working. Its like as below:
#!/bin/sh
MOUNTDIR=/mnt/temp
SRC=c0t0d0
DEST=c0t1d0
sed 's/${SRC}/${DEST}/g' /etc/vfstab > ${MOUNTDIR}/etc/vfstab
When I see the content of /mnt/temp/etc/vfstab I get the old entry only which
c0t0d0 not the c0t1d0, whats wrong?
Thanks!
Amindra
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:15 EDT