INTRODUCTION TO UNIX ed Command Summary r [file_name] read file_name ..................................................................... L1,L2w [file_name] w [file_name] write file ..................................................................... La a append after current line ..................................................................... . leave text entry mode ..................................................................... L,Lp p print current line ..................................................................... s/old/new s/old/new/g ..................................................................... L1,L2d d delete current line ..................................................................... /text/ search buffer for "text" ..................................................................... .= print current line number ..................................................................... L1,L2mL3 m move line to after line ..................................................................... q quit ED ..................................................................... = number of lines in buffer ..................................................................... Lr [file_name] read file into buffer .....................................................................
[ Next ] [ Back ] [ UNIX/Linux Intro Start ] [ Chibcha Enterprises Home ]