@nrailgun
2016-09-19T21:25:52.000000Z
字数 688
阅读 1426
程序设计
while read i <&3 && read j <&4; do
# op $i $j
done 3<$IFILE 4<&JFILE
awk 'NR % 3 == 0' myfile
caffe train solver.prototxt
--weights=iter_1000.caffemodel
It will be executed! And finally you will find out caffe didn't load any thing!
ls -d -1 ${PWD}/dir
sort f1 f2 | uniq -d
for job in `jobs -p`; do
wait $job
done
if [[ ${#FILES} -le $THREDHOLD ]]; then
# ...
else
# ...
fi
Use -e
to test if a file exists.
$(cmd)
to execute cmd
, $((j + i))
to execute expression, ${var}
to expand variables.
# Strip prefix (greedy)
filename=${VARIABLE_NAME##PREFIX}
# Strip postfix (non-greedy)
dirname=${VARIABLE_NAME%POSTFIX}
paste f1 f2