前回は、シェルとシェルスクリプトがどのようなものかということと、パスの取り扱いについて学びました。今回はその続きとして、実際にPythonをシェルスクリプトのように使い、その実例を紹介します。 シェルの呼び出し シェルスクリプトは前回説明し ...
Pythonには対話的にプログラムを実行できるPythonシェルが備わっている。きっとPython学習の際に使ったことがあると思う。とはいえ学習用だけに限定するのは非常にもったいない。筆者は事あるごとに計算やカレンダー、フォルダを開いたりと、いろいろな ...
対話シェルでは何ができるのか。 同梱されている Python を動かす <第 2 回>で書いた通り、LibreOffice には Python が 同梱 バンドル されているのでシステムに別途 Python をインストールしなくてもマクロは動くし、 その 同梱 バンドル された Python だけを ...
シェルを使いこなせないとシェルスクリプトを書けないように、Pythonでシェルプログラミングのようなことをするには、ある程度シェルを知っていることが前提となります。なお、今回はLinux上での利用を前提に記事を書きます。Posix準拠のMacだとほぼ同じことができると思いますが、Windowsは ...
For Linux users, the command line is a celebrated part of our entire experience. Unlike other popular operating systems, where the command line is a scary proposition for all but the most experienced ...
Linux, known for its robustness and flexibility, has been a favorite among developers, system administrators, and technology enthusiasts. One of the pillars of Linux's capabilities is its inherent ...
Although bash scripts are regularly maligned, they do have a certain simplicity and ease of creation that makes them hard to resist. But sometimes you really need to do some heavy lifting in another ...