Large file data handling issue

view story

http://www.unix.com – I have a single record large file, semicolon ';' and pipe '|' separated. I am doing a vi on the file. It is throwing an error "File to long" I need to actually remove the last | symbol from this file. Code: sed -e 's/\|*$//' filename is working fine for small files. But not working on this big file. The file size is "614077" (HowTos)