ed3.help - syntax of commands Syntax command - do it to the current line(s) (except w=write file) n command - do it to line n n,m command - do it lines n thru m /xxx/ command - do it next line with xxx in it ?xxx? command - do it previous line with xxx in it g/xxx/ command - do it to all (globally) lines with xxx in them v/xxx/ command - do it to all (globally) lines with no xxx in them /xxx/,/yyy/ command - do it to lines from a line xxx to the next line with yyy Special Symbols used in addresses in 'ed' . The 'current line (just printed,...) +,- Indicates adding and subtracting numbers (/xxx/+1 is ok!) 'x number of the line marked as x $ the last line in the file, also (if last in string) end of line ^.*$[] Parts of regular expressions describing slected strings. Use 'help regular' to find out more. Read the Manual for more! - 'man ed' and 'man grep'.