Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mklm
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
YouTube demonetizes youtubers covering the war
(youtube.com)
6 points
by
mklm
4y ago
|
0 comments
2.
▲
by
mklm
8y ago
Although -w is supported by both GNU and BSD versions of `seq', BSD's ignores leading zeros in input. Thus a more portable approach is: comm -1 -3 <(ls *_A.csv | sed 's/_.*$//') <(seq -f %04.f 50
3.
▲
by
mklm
8y ago
If you don't mind "cd dataset-directory" beforehand, a shorter and possibly more correct version would be: comm -1 -3 <(ls *_A.csv | sed 's/_.*$//') <(seq -w 0500) | sed 's/^0*