Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Installation on Ubuntu

sudo apt-get install bat

Notice that the installed executable is batcat (instead of bat)!

Usage

bat-is-a-better-alternative-to-cat.ipynb
───────┬────────────────────────────────────────────────────────────────────────
       │ File: bat-is-a-better-alternative-to-cat.ipynb
───────┼────────────────────────────────────────────────────────────────────────
   1   │ {
   2   │  "cells": [
   3   │   {
   4   │    "cell_type": "markdown",
   5   │    "metadata": {},
   6   │    "source": [
   7   │     "- Author: Benjamin Du\n",
   8   │     "- Date: 2021-08-21 08:16:44\n",
   9   │     "- Modified: 2021-08-21 08:16:44\n",
  10   │     "- Title: Bat Is a Better Alternative to Cat\n",
  11   │     "- Slug: bat-is-a-better-alternative-to-cat\n",
  12   │     "- Category: Computer Science\n",
  13   │     "- Tags: Computer Science, software, tool, Rust, bat, batcat"
  14   │    ]
  15   │   },
  16   │   {
  17   │    "cell_type": "markdown",
  18   │    "metadata": {},
  19   │    "source": [
  20   │     "**Things on this page are fragmentary and immature notes/thoughts 
       │ of the author. Please read with your own judgement!**"
  21   │    ]
  22   │   },
  23   │   {
  24   │    "cell_type": "code",
  25   │    "execution_count": null,
  26   │    "metadata": {},
  27   │    "outputs": [],
  28   │    "source": [
  29   │     "## Installation on Ubuntu \n",
  30   │     "\n",
  31   │     "```\n",
  32   │     "sudo apt-get install bat\n",
  33   │     "```"
  34   │    ]
  35   │   },
  36   │   {
  37   │    "cell_type": "code",
  38   │    "execution_count": null,
  39   │    "metadata": {},
  40   │    "outputs": [],
  41   │    "source": [
  42   │     "## Usage\n",
  43   │     "\n",
  44   │     "```\n",
  45   │     "batcat /path/to/file\n",
  46   │     "```"
  47   │    ]
  48   │   }
  49   │  ],
  50   │  "metadata": {
  51   │   "file_extension": ".py",
  52   │   "kernelspec": {
  53   │    "display_name": "Python 3 (ipykernel)",
  54   │    "language": "python",
  55   │    "name": "python3"
  56   │   },
  57   │   "language_info": {
  58   │    "codemirror_mode": {
  59   │     "name": "ipython",
  60   │     "version": 3
  61   │    },
  62   │    "file_extension": ".py",
  63   │    "mimetype": "text/x-python",
  64   │    "name": "python",
  65   │    "nbconvert_exporter": "python",
  66   │    "pygments_lexer": "ipython3",
  67   │    "version": "3.8.10"
  68   │   },
  69   │   "mimetype": "text/x-python",
  70   │   "name": "python",
  71   │   "npconvert_exporter": "python",
  72   │   "pygments_lexer": "ipython3",
  73   │   "version": 3
  74   │  },
  75   │  "nbformat": 4,
  76   │  "nbformat_minor": 4
  77   │ }
───────┴────────────────────────────────────────────────────────────────────────