Coder Social home page Coder Social logo

purge's Introduction

About

Purge is a simple cli tool that recursively purges files from directories or directories themselves from other directories. It is simple because it is a single C source file under 200 lines compliant with C99 standard.

Example of usage

Best way to explain how purge works is by showing few examples.

This is a file hierarchy before running purge:

file tree before purge


This command line

./purge . goner1

or

./purge -f . goner1

will result in this file hierarchy:

file tree after file purge

Additionally running the program with these arguments:

./purge -d . deletethis

will result in this file hierarchy:

file tree after directory purge

If some things are unclear please just run purge without arguments, and check the usage there, cba explaining any further.

Build

clone the repository and run:

make

If you wish to build binary with debug symbols enabled then run:

make debug

if you wish to have more control on how the binary builds just edit the single Makefile to your liking.


PKGBUILD/AUR

In case you are running Arch-based Linux distribution there is also PKGBUILD provided, build and install like this:

makepkg
pacman -U {package}.pkg.tar.zst

make sure to replace {package} with the actual package name.

Or you can build and install using pamac or yay because I am already hosting an AUR package, simply run this in your terminal:

pamac build purge

or

yay -S purge

purge's People

Contributors

b-jure 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.