Solved

explain mo operation

Posted on 2004-08-14
5
272 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Centos Boot Error 42 115
Avoiding pop-up when starting a linux scrip/shell 5 97
predeployment and postdeployment script in linux rpm 1 28
Openwrt vnstat 9 153
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…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
A short film showing how OnPage and Connectwise integration works.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

914 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now