Skip to content

Conversation

@DontEatThemCookies
Copy link
Contributor

@DontEatThemCookies DontEatThemCookies commented Mar 12, 2022

Changes:

  • File argument syntax changed to imitate the real cat program: python3 cat.py [filename1] [filename2] etc. (thanks to @BBarbuz)
  • Some comments modified
  • Other miscellaneous changes

A basic implementation of the Unix 'cat' program

Syntax:

python3 cat.py [filename1,filename2,etc.]

Example:

python3 cat.py textfile1.txt textfile2.txt etc.

Just like the real cat program, separate filenames with spaces.
You can leave the arguments empty to read from stdin instead

Changes:
* File argument syntax changed to imitate the real cat program: `python3 cat.py [filename1] [filename2] etc.`
* Some comments modified
* Other miscellaneous changes
Additional change:
* Fixed improper behavior if no arguments were passed
@geekcomputers geekcomputers merged commit 745e773 into geekcomputers:master Mar 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants