• using sed to substitute a filename
    By : anonymous ( Tue Oct 29 05:39:57 2002 )

    How can I substitute in a filename eg
    substitute file_location with u02/oradata
    I tried

    file_location1=${2:-u03/oradata}
    file_location2=${3:-u05/oradata}

    cat filename | sed -e 's/file_location/\${file_location1}/g> new file

    but this failed.
    This is in KSH

    Return to article...



    UNIXguide.net
    English to Visayan Cebuano Dictionary
    Suggest a Site
    Visayan Cebuano to English Dictionary