Added: 2 months ago
From: 28c3
Views: 3,187
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (3)

Sign In or Sign Up now to post a comment!
  • 13:37 I don't know what version of tar this guy is using, but a normal tar can't archive stdin input. tar can create archives and write them to stdout, it can extract from archives coming in by stdin, but cannot create archives from raw data coming in from stdin. tar needs files because it stores file meta data like creation and modification times, permissions, ownership etc. so it can't work with raw data. I call bullsh*t on this one.

  • @JerehmiaBoaz

    $ cat note.txt | xargs tar cfz note.tar.gz

    $ tar --version

    tar (GNU tar) 1.25

    [...]

  • @morbidrsa What tar does here is interpret the the data it gets from stdin as paths to files it has to add to the tgz, so basically note.txt is a list of files that have to be added to note.tar.gz. (It might seem to work if you put the text "note.txt" in your note.txt, but that's by self reference.)

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more