Code Monkey home page Code Monkey logo

neocp's Introduction

Introduction

This project is an improved version of the standard cp command. It adds the following new features:

Support for copying compressed files: This project can copy files that are compressed using gzip, bzip2, or zip. Support for copying files with long names: This project can copy files with names that are longer than 255 characters. Support for copying files with special characters: This project can copy files that contain special characters, such as spaces, tabs, or newlines. This project is still under development and may contain bugs. Please create a new issue if you find any bugs.

Version: 1.0

Author: Ehsan Tork

GitHub link: https://github.com/journalehsan/neocp

Thank you, Ehsan Tork

Installation

To install and compile your project in Linux, follow these steps:

Clone the project code from GitHub: git clone https://github.com/journalehsan/neocp.git Navigate to the project directory: cd neocp Compile the project: gcc -o neocp neocp.c OR

clang -o neocp neocp.c Change the output to the name neocp with the -o switch: ‍‍‍gcc -o neocp -o neocp neocp.c OR

clang -o neocp -o neocp neocp.c Copy the neocp file to the system's bin directory: sudo cp neocp /usr/bin/ Now you can use neocp as a regular command:

neocp source_file destination_file For example:

neocp README.md ~/Desktop/README.md This command will copy the README.md file to the Desktop directory.

Explanation:

The -o switch tells the compiler to save the output with the specified name. The sudo switch allows you to copy files to the system's bin directory. I hope this helps!

TODO

Migrate to CMake: This will make it easier to build and install the project on different platforms. Fix bugs: One of the bugs is that the project fails if the destination is not specified. Add more features: For example, you could add support for copying directories, or for copying files with symbolic links.

neocp's People

Contributors

journalehsan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.