Skip to content

Instantly share code, notes, and snippets.

@johnkerl
Created January 13, 2022 13:53
Show Gist options
  • Save johnkerl/0629596cd53cd14404bb51cfd1481a28 to your computer and use it in GitHub Desktop.
Save johnkerl/0629596cd53cd14404bb51cfd1481a28 to your computer and use it in GitHub Desktop.
$ cat deslurm.mlrsh
#!/usr/bin/env mlr -s
--csv put -f deslurm2.mlr -e '$y = deslurm($x)' -e '$z=sec2dhms($y)'
$ deslurm.mlrsh test.csv
x,y,z
5-18:53:20,500000,5d18h53m20s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment