LinuxやMacでよく使われるコマンドにsedがある。テキストデータの置換処理に使われることが多いコマンドだが、sedコマンドはパターンスペースおよびホールドスペースを理解することで、行の入れ替えといった処理も行うことができる。Opensource.comが「How to ...
前回まで、「grep(1)」を中心にフィルタコマンドの使い方について紹介してきた。テキストを処理するフィルタコマンドとしては、「sed(1)」もよく使われている。マニュアルを引くと、sedには「ストリームエディタ」とか「テキストのフィルタや変換処理を ...
Linuxを使用していると、コマンドラインでテキストファイルを成形したい機会があるだろう。このような場合、パイプ「|」とフィルタによる処理を理解しておくと、力任せの編集作業を軽減できるかもしれない。 次に挙げるのは、テキスト成形に便利な ...
I gotta say, tldr beats the hell out of man pages for like 99% of the times I want to look at a man page in the first place. Click to expand... I just found a gotcha installing tldr on Ubuntu: Even ...
Ooooh, great article to wake up to. I find the following alias commands, which I set system wide in /etc/profile.d/custom.sh, on my primary file server and anything ...
IT'S F.O.S.Sに2月4日(米国時間)に掲載された記事「Download 6 Best Linux Command Cheat Sheets For Free」において、Linuxコマンドチートシート6選を紹介している。LinuxコマンドチートシートはLinuxでよく使われるコマンドとその簡単な意味をまとめた参照ノートで、よく使わ ...
Text-editing operations are normally done interactively, inside a text editor application. Some tasks, however, can be accomplished quickly and easily, right from the UNIX command line. What’s more, ...