Moving Lines

Qedit 5.7 for HP-UX

Home Previous Next


Moving Lines

Moving is very similar to copying; it's another form of the Add command. But, instead of using the equals sign, use the less-than sign. You can specify:

/add 12 < 1/6
 13    MEMO TO: News Simulation Department
 14
 15    DATE:  November 18, 2000
 16
 17    FROM:    Marie Reimer, Publicity Department
 18
 19    Please check your in-baskets daily and
 20    respond to your fan mail within a week.
8 lines MOVED

Qedit moves the rangelist (in this case, lines 1 to 6) after the indicated line (in this case, 12). In case you were wondering, we could have used "last" instead of the number "12". You can add, move, or copy lines to any spot. In fact, we could have copied the first six lines to the beginning of the file in the first place, but then we wouldn't have had this fascinating "move" example. The result of this particular move is

/list all
  7    MEMO TO: News Simulation Department
  8
  9    DATE:  November 18, 2000
 10
 11    FROM:    Marie Reimer, Publicity Department
 12
 13    MEMO TO: News Simulation Department
 14
 15    DATE:  November 18, 2000
 16
 17    FROM:    Marie Reimer, Publicity Department
 18
 19    Please check your in-baskets daily and
 20    respond to your fan mail within a week.


Home Previous Next