Skip to content

Instantly share code, notes, and snippets.

@BonyChops
Last active April 9, 2023 04:03
Show Gist options
  • Save BonyChops/6f4407f849628d97d18e08c03894a493 to your computer and use it in GitHub Desktop.
Save BonyChops/6f4407f849628d97d18e08c03894a493 to your computer and use it in GitHub Desktop.
シフトボードの出力をExcelのシートで貼れるように変換する
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
@BonyChops
Copy link
Author

いろいろ体裁を整えるのが面倒だったのでワンライナーでw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment