i want to edit file at remote server using solaris
the original file at the remote server that i want to edit is :
11111
22222
33333
44444
55555
66666
77777
and i want to remove the 5th line "55555" and replace it by "00000"
i try this
ssh user@host 'cat ~/path_of_original_file.txt '| sed 's/55555/00000/g' ;
the result appears successfully and the line replaced as i want , but when i open the file at the remote server nothing change !!!!!