ed filenamewhere filename must exist. If filename does not exist, use the touch command to create it.
ed will then display the number of characters (num) in the file and wait (there is no prompt). This means that ed loaded num bytes into the editing buffer. ed is now sitting at the end of the document, waiting for the user to tell it what to do.