rokkonet

PC・Androidソフトウェア・アプリの開発・使い方に関するメモ

指定した数の空行をファイル間に入れつつファイル結合するシェルスクリプト

2023 Feb. 23.
2023 Jan. 29.

Usage: catFilesInsertEnptyLine.sh [options] FILE1 [FILE2 ...]
Description: Concatnate files to STANDARD-OUT, inserting enpty line(s) between files.
Option
-n Num : Insert Num empty line(s) between files.
     Num must be 1 or greater than 1.
     Without "-n" option, 1 empty line is inserted between files.
-p f|p|n f: fileName is printed at the top of each file.(Default)
    p: fullPath is printed at the top of each file.
    n: nothing is printed at the top of each file.

コード参照先
https://bitbucket.org/arsmus/shell-script-public/src/master/text-file/catFilesInsertEnptyLine.sh