Concatenate and print (display) the content of files.
The cat command can be piped into grep to find specific words in the file:
cat file.txt grep keyword output.txt
However all modern versions of grep have this built-in. Running a single command/process is more efficient, and so with large files will be noticably faster:
grepkeyword file.txt output.txt
Jessica the cat has been sneaking around the neighbourhood stealing people's things. Only one detective can track her down and find the missing items. All cat scratches itch a lot because that is how wounds and abrasions heal. An infection, such as Bartonella henselae (cat scratch disease), can also cause the skin to become itchy. Other infections that make the skin itch include tetanus, cellulitis, ringworm, and toxoplasmosis.
grep can also display an entire file, (like cat), by using the grep keyword '.' which will match lines with at least 1 character. Alternatively the grep keyword '^' will match the beginning of every line including blank lines.
When grep is used to display multiple files, it will prepend each line of output with the filename:
$ grep . *.txt
Examples:
Display a file:
$ cat myfile.txt
Display all .txt files:
$ cat *.txt
Concatenate two files:
$ cat File1.txt File2.txt > union.txt
If you need to combine two files but also eliminate duplicates, this can be done with sort unique:
$ sort -u File1.txt File2.txt > unique_union.txt
Put the contents of a file into a variable
$ my_variable=`cat File3.txt`
“To be nobody but yourself - in a world which is doing its best, night and day, to make you like everybody else - means to fight the hardest battle which any human being can fight, and never stop fighting” ~ E. E. Cummings
Related macOS commands:
cp - Copy one or more files to another location.
mv - Move or rename files or directories.
hexdump - View binary file.
tail - Output the last part of files.
textutil - Manipulate text files in various formats.
vis - Display non-printable characters in a visual format.
Stupid Cat tricks - by Mike Chirico.
A downloadable game for Windows, macOS, and Linux
You've died. You're dead. But do not despair, Devin is here - with his excellent business sense, winning smile, and beautiful Celestial Necropolis. All is well. Trust Devin. He is your only friend.
A quick visual novel. No branching paths, no multiple endings, just Devin.
IMPORTANT: Works best when installed directly from the itch.io desktop app! If you download and run manually you will need to bypass gatekeeping on Mac OS and Windows 10:
Status | Released |
Platforms | Windows, macOS, Linux |
Rating | |
Author | Cat Night |
Genre | Visual Novel |
Tags | devin, filmcow, Narrative |
Click download now to get access to the following files:
Log in with itch.io to leave a comment.
Hilarious as expected
A little tip for peole who've stumbled upon this without context; This visual novel is directly connected with filmcow's 'month of' videos. so i'd be best to be familiar with those before playing this.
Length: 10-15 min
Devin be praised.
Also is there any way for me to hand my soul overto Devin, its true owner, in exchange for this bomb ass menu music?
Praise Devin.
Wow. I did not trust you when you claimed that there were no multiple endings, but I soon came to realize that it truly was only Devin. This was a thrilling tale and I send my best wishes to Devin and his recomposed body.