Solved

explain mo operation

Posted on 2004-08-14
5
288 Views
Last Modified: 2010-05-18
HI,
please explain me the mechanism followed by the command mo that is used for move.i am facing the problem while i issue the command like
1,5 mo 2.
it says something move to themselves.
while it is working with the last no of range and  other then range.i am confused.help me out.
thanks in advance.
0
Comment
Question by:decentswati
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 22

Expert Comment

by:pjedmond
ID: 11801843
I believe that this is a CAD command:

http://www.wrcad.com/manual/xicmanual/node399.html

Please can you detail what application you are trying this in.

In Linux, the move command for files is mv

mv --help

for more information
0
 
LVL 1

Author Comment

by:decentswati
ID: 11806769
Hi,
it is in the context of vi where we use 'mo' to move lines.
0
 
LVL 22

Accepted Solution

by:
NovaDenizen earned 50 total points
ID: 11810226
On my vi I try ":1,5 mo 2" and it says "Move to a moved line".  

"1,5" is source address range, meaning lines 1 through 5.
"mo" is the move command
"2" is the destination, the line after which the source lines will be inserted.

So, your command is telling vi to take likes 1 through 5, then move them to right after line 2.  That doesn't make sense because the destination is within the source range, one of the lines being moved.  Hence "Move to a moved line"

What were you intending for this command to do?
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
script that sorts the lines in file according to integer in line 7 39
inotifywait in linux 2 290
Debian 3.16.7 3 157
Using init script with Systemd: need help crafting unit file 11 226
Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question