If you’re working with a GUI text editor and want to move a particular line from one place to another, you might use cut and paste. If you’re working with a text file on the command line (not in an editor like emacs or vim) and don’t want to use a clipboard, line-moving can be done with a single command.
Source: LXer – How to move selected lines within a file
