このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン | |||
tipsmemo:tips:shellscript [2021/01/18 18:33] hayashi [連番のゼロパディング] |
tipsmemo:tips:shellscript [2021/02/24 14:40] (現在) hayashi |
||
---|---|---|---|
行 1: | 行 1: | ||
====== Shellscript ====== | ====== Shellscript ====== | ||
+ | ===== コマンド出力を直接diff ===== | ||
+ | **bash** | ||
+ | diff < | ||
+ | |||
+ | **bin/sh** | ||
+ | command1 | ( command2 | diff /dev/fd/3 -) 3<&0 | ||
===== 連番のゼロパディング ===== | ===== 連番のゼロパディング ===== |