398 reputation
16
bio website
location Southern California
age
visits member for 2 years, 2 months
seen May 26 at 1:08

Mostly harmless.


Mar
14
comment how to extract .z file from an old QNX in Centos
The output of what? The example file you gave is a complete and correct zlib stream.
Mar
14
answered how to extract .z file from an old QNX in Centos
Oct
18
comment How to extract only a specific folder from a zipped archive to a given directory?
Then the filename was not matched. Do unzip -l xxx.zip to see what's in xxx.zip.
Aug
23
awarded  Nice Answer
May
29
awarded  Yearling
May
14
comment How do I specify arguments to return all dot files, but not . and ..?
On my du, -a cannot be combined with -d. However du -d1 . does the trick. Thanks for that as well.
May
14
awarded  Scholar
May
14
accepted How do I specify arguments to return all dot files, but not . and ..?
May
14
comment How do I specify arguments to return all dot files, but not . and ..?
The du -s -- * .[^.]* ..?* works, and covers odd cases included spaces in the names and dot dot names. And it even works in bash. Thanks!
May
14
comment How do I specify arguments to return all dot files, but not . and ..?
Interestingly, I have tcsh 6.17.00. Indeed, the globdot doesn't work there.
May
14
awarded  Editor
May
14
revised How do I specify arguments to return all dot files, but not . and ..?
added 82 characters in body
May
14
awarded  Student
May
14
asked How do I specify arguments to return all dot files, but not . and ..?
Dec
24
answered How to extract only a specific folder from a zipped archive to a given directory?
Dec
23
awarded  Teacher
Dec
23
answered tar: Removing leading `/' from member names
May
29
comment Unix bash script check empty gz files
This is the correct approach, since the use of head avoids completely decompressing giant gzip files just to find out if they have one or more bytes. If there really are zero uncompressed bytes in the file, then it will complete very quickly. Using gunzip -l is not guaranteed to work, since you can have multiple gzip streams in a file, and gzip -l will only tell you about the last one. Also a gzip file with an exact multiple of 4 GB of uncompressed data will show up as zero length to gzip -l.
May
29
awarded  Supporter