Click to See Complete Forum and Search --> : Looking for bash equiv for perl command


johnwebb
02-21-2001, 02:54 PM
I'm modifying the recvd script for hylafax and am trying to change the file name with a regex. The following works with perl but errors in bash. Can someone provide the bash equivlant.

$NEWFILE =~ s|.*/(fax[0-9]+).tif$|$1\.pdf|;

Thanks
John Webb

[ 21 February 2001: Message edited by: johnwebb ]

[ 21 February 2001: Message edited by: johnwebb ]