Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
このアスキーのスタイルのアスキーテーブルに出会いました。 もちろん、ファイルに保存してコンテンツを表示するためにascii使用することもできます。cat asciiしかし、私はそれをコマンドのように動作させたいと思っています。
ascii
cat ascii
更新cs:app を読むと、ファイルに復元したり、他のコマンドを使用したりする方法がわかります。とにかく走れ man ascii
man ascii
シェルがエイリアスをサポートしている場合は、次のことができます。
alias ascii='cat ~/ascii'
次に、asciiet voila と入力するだけです。
bash を使用している場合は、上記の行を.bashrcに追加して、ログイン間で保持します。他のシェルにも同様の機能があります。
.bashrc