Last active
April 9, 2023 04:03
-
-
Save BonyChops/6f4407f849628d97d18e08c03894a493 to your computer and use it in GitHub Desktop.
シフトボードの出力をExcelのシートで貼れるように変換する
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node -e 'const f = require("fs").readFileSync(process.argv[1]).toString();const d = f.split("\n").filter(v=>/^.*(.*).*/.test(v)).map(v=>v.replace(/(.*)/g, "").split(" ").filter(v=>v!=="-").join("\t")).join("\n");console.log(d)' filepath |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
いろいろ体裁を整えるのが面倒だったのでワンライナーでw