Click here to Skip to main content
15,892,480 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Why do TAR files always need to be decompressed twice? Pin
Bard17-Jun-18 3:25
Bard17-Jun-18 3:25 
GeneralRe: Why do TAR files always need to be decompressed twice? Pin
enhzflep17-Jun-18 10:18
enhzflep17-Jun-18 10:18 
GeneralRe: Why do TAR files always need to be decompressed twice? Pin
kalberts17-Jun-18 22:12
kalberts17-Jun-18 22:12 
GeneralRe: Why do TAR files always need to be decompressed twice? Pin
hpcoder217-Jun-18 20:08
hpcoder217-Jun-18 20:08 
GeneralRe: Why do TAR files always need to be decompressed twice? Pin
pmauriks17-Jun-18 20:54
pmauriks17-Jun-18 20:54 
GeneralRe: Why do TAR files always need to be decompressed twice? Pin
PhM3317-Jun-18 21:19
professionalPhM3317-Jun-18 21:19 
GeneralRe: Why do TAR files always need to be decompressed twice? Pin
Joop Eggen18-Jun-18 4:16
Joop Eggen18-Jun-18 4:16 
GeneralRe: Why do TAR files always need to be decompressed twice? Pin
rjmoses19-Jun-18 0:52
professionalrjmoses19-Jun-18 0:52 
Let's not forget that a fundamental thought in Unix was small, individual programs strung together through pipes and stdin/stdout redirection.

So:

find . -print |grep "draw" | grep "\.c$" |tar -c -T - |gzip -c > temp.tar.gz

is an elaborate way (albeit inefficient) of finding all files ending in ".c" in the current directory and all subdirectories that contain "draw" as any part of the file name to create a tar file which is then zipped to stdout to a file named "temp.tar.gz"

The point here is demonstrate hooking together small programs through piping.

So, because they probably found that many tar files got zipped, someone got the idea of combining zip into the tar command through "tar -cvfz temp.tar.gz filelist". A good idea.
GeneralFIFA World cup Montreal style! Pin
Maximilien16-Jun-18 12:53
Maximilien16-Jun-18 12:53 
GeneralRe: FIFA World cup Montreal style! Pin
OriginalGriff16-Jun-18 19:38
mveOriginalGriff16-Jun-18 19:38 
GeneralRe: FIFA World cup Montreal style! Pin
Munchies_Matt17-Jun-18 23:21
Munchies_Matt17-Jun-18 23:21 
GeneralQ&A Pet Peeves Pin
Eric Lynch16-Jun-18 7:34
Eric Lynch16-Jun-18 7:34 
GeneralRe: Q&A Pet Peeves Pin
PIEBALDconsult16-Jun-18 7:41
mvePIEBALDconsult16-Jun-18 7:41 
GeneralRe: Q&A Pet Peeves Pin
Dave Kreskowiak16-Jun-18 8:04
mveDave Kreskowiak16-Jun-18 8:04 
GeneralRe: Q&A Pet Peeves Pin
lopatir16-Jun-18 8:06
lopatir16-Jun-18 8:06 
GeneralRe: Q&A Pet Peeves Pin
BillWoodruff16-Jun-18 8:16
professionalBillWoodruff16-Jun-18 8:16 
GeneralRe: Q&A Pet Peeves Pin
kmoorevs16-Jun-18 8:30
kmoorevs16-Jun-18 8:30 
GeneralRe: Q&A Pet Peeves Pin
BillWoodruff16-Jun-18 19:04
professionalBillWoodruff16-Jun-18 19:04 
GeneralRe: Q&A Pet Peeves Pin
kmoorevs17-Jun-18 10:05
kmoorevs17-Jun-18 10:05 
GeneralRe: Q&A Pet Peeves Pin
Eddy Vluggen16-Jun-18 13:38
professionalEddy Vluggen16-Jun-18 13:38 
GeneralRe: Q&A Pet Peeves Pin
Eric Lynch16-Jun-18 18:48
Eric Lynch16-Jun-18 18:48 
GeneralRe: Q&A Pet Peeves Pin
Eddy Vluggen16-Jun-18 22:10
professionalEddy Vluggen16-Jun-18 22:10 
GeneralRe: Q&A Pet Peeves Pin
OriginalGriff16-Jun-18 20:31
mveOriginalGriff16-Jun-18 20:31 
GeneralRe: Q&A Pet Peeves Pin
User 5924116-Jun-18 14:17
User 5924116-Jun-18 14:17 
GeneralRe: Q&A Pet Peeves Pin
Eric Lynch16-Jun-18 18:05
Eric Lynch16-Jun-18 18:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.