Mac で 自動的に大量のコマンドを自動実行する方法メモ
テキストファイルを作成
1.***.commandという名前で保存
– – – – – – – – – – – – – – –
#!/bin/bash
cd $DIRNAME
java -jar referencecrawl.jar html/jpsj/60/jpsj_60_1.html text > log/60_1.log
java -jar referencecrawl.jar html/jpsj/60/jpsj_60_2.html text > log/60_2.log
java -jar referencecrawl.jar html/jpsj/60/jpsj_60_3.html text > log/60_3.log
– – – – – – – – – – – – – – –
※改行コードは、Unix(LF)
実行権限をつける
$ ls -l AutoRun.command
-rw-r–r–@ 1 nnnnnnn AutoRun.command
$ chmod u+x AutoRun.command
$ ls -l
-rwxr–r–@ 1 nnnnnnn AutoRun.command
実行
作成されたファイルをダブルクリック
Leave a Reply