USF-OS / FogOS

Other
1 stars 24 forks source link

head / tail #1

Open allee11 opened 4 months ago

allee11 commented 4 months ago

Implementing head and tail utility with Andrew Diep.

malensek commented 4 months ago

For head and tail, what kind of features will you support? (any flags?)

allee11 commented 4 months ago

We decided that we wanted to add flags for number of lines, number of bytes, verbose flag which specifies the file name before displaying the data, and a flip a coin flag that flips a coin.

andrewdiep1 commented 4 months ago

The flip a coin flag would conduct a simple coin flip, print out the result (heads 49%, tails 49%, or undecided 2%), and confirm whether or not you made the right call.

Ex: head -flip

Coin flip result: Undecided -> Oops! Looks like the coin got stuck in a quantum loop between heads and tails. Let's try flipping again and hope the universe makes up its mind this time!" 🪙🤷‍♂️🪙

malensek commented 4 months ago

Sounds good!