I need to be able to edit a file from my script. I think I have all the pieces togather except.....How do I pass a variable to the ex editor. Right now I am trying --
ex $FILENAME <<EOF
1
/$OLD_DATE
.s/$NEW_DATE/$NEW_DATE/
wq
EOF
If I have the wrong forum I would appreciate a redirect...
ex $FILENAME <<EOF
1
/$OLD_DATE
.s/$NEW_DATE/$NEW_DATE/
wq
EOF
If I have the wrong forum I would appreciate a redirect...