[Bash Tips] How to cp or mv and cd in one command

3 Responses

  1. Florin Idita says:

    I`ll better use awk ‘{print $NF}’ instead $2.
    because maybe you want to copy more file…

  2. Florin Idita says:

    also, using $2 could make you lose files if you try to copy more files 😐

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.