edit a file without use editor vi

hi all
i have a problem i want to edit a file without use the "vi" .
for example i want to edit a passwd file without to do "vi" in file.
how i can to do this?
Regards

form CLI usually sed is used

depending on the O/S....ed, sed, emacs, umeacs, jed, vim, awk, perl...
could you give us more info ?

Unless you know what you are doing, only use vipw to edit the /etc/paswd file!

you can use grep and sed command to solve that problem.
if the file having delimiter then you can use awk command.

regards
rajesh