Re:Problem solving with Unix commands
by masklinn on Thursday February 14, 2019 @03:08PM
(#19165491)
Very much my thinking, especially when there are no significant commands you need to shell out to:
[ Parent
| on HN ]
Re:Problem solving with Unix commands
by hellabites on Thursday February 14, 2019 @04:54PM
(#19166437)
Just for fun some bash:
for k in $(seq -f %04.f 1 501); do
f="${k}_A.csv"
! [[ -f "$f" ]] && echo $f || :
done
or more succinctly, for k in {0001..0501}_A.csv; do
! [[ -f "$f" ]] && echo $f || :
done
and if you have GNU parallel installed: parallel -kj1 '! [[ -f "{}" ]] && echo {} || :' ::: {0001..0501}_A.csv