How to cut the last field in this shell string
LINE=\"/string/to/cut.txt\"
So that the string would look like this
LINE=\"/
For what it's worth, a cut-based solution:
cut
NEW_LINE="`echo "$LINE" | rev | cut -d/ -f2- | rev`/"