Skip to content

Instantly share code, notes, and snippets.

@halllllll
Last active December 31, 2017 02:52
Show Gist options
  • Save halllllll/fbd73c96ad145ed5658203fec2f0b689 to your computer and use it in GitHub Desktop.
Save halllllll/fbd73c96ad145ed5658203fec2f0b689 to your computer and use it in GitHub Desktop.
「urlの羅列.txtを一行ずつ読んでscdlに渡す、同時に何行目かを出す」をシェルで
length=`wc -l < ファイルのパス`
cur=1
for line in `cat ファイルのパス `; do echo "${cur}/${length}"; cur=`expr ${cur} + 1`; scdl -l ${line} -c; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment