nl command Advent Calendar 2020
--12/1 First nl command --12/2 Implementation of various nl commands --12/3 Check how to use nl command
This area is not limited to nl
, but I think it is common to all commands.
--12/4 n option of nl command to change line number format --12/5 w option of nl command to change the number of digits of line number --12/6 s option of nl command to change line number separator --12/9 d option of nl command to change section delimiter string --12/10 b, f, h options of nl command to change line numbering method --12/12 v option of nl command to change the initial value of line number --12/13 i option of nl command to change the increment value of line number --12/14 p option of nl command that does not reset line number for each logical page --12/16 l option of nl command to change the unit of blank line to add line number
There are 11 options and I wrote 9 articles.
--12/7 Handling blank lines with nl command --12/8 Logical page of nl command --12/11 Use regular expressions in nl command --12/15 Sequential number control of nl command --12/17 Disable logical page of nl command --12/19 Maximum value of nl command
I wrote about basic operating specifications and precautions.
--12/18 Find a prime number with the nl command
Try using nl
instead of seq
.
--12/20 Alternate nl command in editor --12/21 Substitute nl command with script --12/22 Substitute nl command with various commands
nl
with another command.
--12/23 Nl command processing performance
I tried to compare the performance. grep
and cat
are too fast.
--12/24 Participate in nl command development --12/25 Future nl command
This article is not limited to nl
, but is for improving commands.
NetBSD AC --12/23 NetBSD nl command and Problem Reports
POSIX incompatibility and bug report story.
--12/23 nl command learned at AIIT (Advanced Institute of Industrial Technology)
Poem that summarizes past stories.
Shell art that is especially fond of. I wanted to try it because I can now do -i 0
with nl
in coreutils.
BSD
$ nl -w 1 -v 0 -i 0 -b p'[Kawayama Kikushin Kamoda Aibashi Hachikata]' yokohamaline | nl -w 1 -i 0 | tr '01' 'Pleasant each' | expand
Each Kai Higashi Kanagawa
Each large mouth
Each pleasant Kikuna
Each Kai Shin-Yokohama
Each small desk
Each pleasant Kamoi
Each Kainakayama
Each Tokaichiba
Each pleasant Nagatsuta
Each Naruse
Each pleasant Machida
Each Kobuchi
Each Fuchinobe
Each Yabe
Each pleasant Sagamihara
Each pleasant Hashimoto
Each pleasant Aihara
Each Kai Hachioji Minamino
Each pleasant Katakura
Each pleasant Hachioji
-- -d
bug in coreutils nl
--Insufficient documentation for inf
tokens in coreutils seq
and sleep
--POSIX incompatible with -s
option on NetBSD (macOS) nl
I was reporting in real time the bugs I found during the verification while writing the article. For those whose revision policy was fixed during the serialization, past articles have also been revised and added.
--Why is coreutils cat -n
so fast?
--FreeBSD nl
--BusyBox build options
--Combine with pr
--History of POSIX formulation
This time, I couldn't write an article because of lack of research. I may write it soon.
――As a result, the software quality has improved, so I'm glad I did it. ――The more you look up, the more you don't understand -** nl command I don't understand at all **
Recommended Posts