这个sed怎么写?
init.ora文件中有这么一行:
db_recovery_file_dest=FLASHRECOVERY
要将FLASHRECOVERY换成指定的目录名,例如:/oracle/flash_recovery_area
我是这样写的:
echo "please input the FLASH RECOVERY DIRECTORY:"
read fdir
sed "s/FLASHRECOVERY/$fdir/g" init.ora > init1.ora
报错:sed:0602-404 Function s/FLASHRECOVERY//oracle/flash_recovery_area/g cannot be parsed
红色的这段应该怎么写,先谢过。