fork download
  1. #!/bin/bash
  2.  
  3. # ideone boilerplate: run in temp dir
  4. t=$(mktemp -d -t ideone.XXXXXXXX) || exit
  5. trap 'rm -rf "$t"' ERR EXIT
  6. cd "$t"
  7.  
  8. echo moo |
  9. tee $'a\nb\nc' >$'c\td\ne'
  10.  
  11. tail *
  12.  
  13. python3 -c '
  14. from pathlib import Path
  15. from sys import argv
  16. for arg in argv[1:]:
  17. print(Path(arg).stat().st_mtime, arg, end="\0")' ./* |
  18. od -ctx1
  19.  
  20. stat --printf '%.9Y %n\0' -- ./* |
  21. od -ctx1
Success #stdin #stdout 0.07s 11468KB
stdin
Standard input is empty
stdout
==> a
b
c <==
moo

==> c	d
e <==
moo
0000000   1   6   6   3   1   6   0   6   3   8   .   4   6   8   6   7
         31  36  36  33  31  36  30  36  33  38  2e  34  36  38  36  37
0000020   0   1       .   /   a  \n   b  \n   c  \0   1   6   6   3   1
         30  31  20  2e  2f  61  0a  62  0a  63  00  31  36  36  33  31
0000040   6   0   6   3   8   .   4   6   8   6   7   0   1       .   /
         36  30  36  33  38  2e  34  36  38  36  37  30  31  20  2e  2f
0000060   c  \t   d  \n   e  \0
         63  09  64  0a  65  00
0000066
0000000   1   6   6   3   1   6   0   6   3   8   .   4   6   8   6   7
         31  36  36  33  31  36  30  36  33  38  2e  34  36  38  36  37
0000020   0   2   1   6       .   /   a  \n   b  \n   c  \0   1   6   6
         30  32  31  36  20  2e  2f  61  0a  62  0a  63  00  31  36  36
0000040   3   1   6   0   6   3   8   .   4   6   8   6   7   0   2   1
         33  31  36  30  36  33  38  2e  34  36  38  36  37  30  32  31
0000060   6       .   /   c  \t   d  \n   e  \0
         36  20  2e  2f  63  09  64  0a  65  00
0000072