Code Monkey home page Code Monkey logo

unix-ls-command's Introduction

unix-ls-command

Purpose/requirements:

  • Print directory and file information in multiple formats
  • Must be able to use the flags l, r, a, t, and R
  • No leaks and no unexpcted failures

What I learned:

  • How to manage file and directory information using functions provided by dirent.h
  • How to navigate directories in a C program by properly concatenating strings based on user input or given flags such as the recursive -R flag
  • Simple ways to sort information either by the time of creating or (by default) ascii value.
  • Information parsing!
  • More information parsing!
  • So much parsing...

Overall this project was pretty simple and straight forward. At this point I am confident in my ability to use, parse, and use parsed information. The tricky part was setting up a recursive function that no only goes through each directory recursivly, but to also work with multiple flags.

ie. -latR should print out the long format of each file/directory, also print all hidden files, sort the files/directories printed by time of creation, and preform this for each directory found

I really enjoyed this project! It was not as challenging as I would have liked. Almost all the skills required to complete this project were very basic. However I should have used a better sorting algorithm than buble sort. Quick sort should have been my go to!

unix-ls-command's People

Contributors

caseysingleton 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.