10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have multiple (~80) files (some can be as big as 30GB of >1 billion of lines!) to grep on a pattern, and piped the match to a single file. I have a 96-core machine so that each grep job was sent to the background to speed up the search:
file1.tab
chr1A_part1 123241847 123241848... (6 Replies)
Discussion started by: yifangt
6 Replies
2. Shell Programming and Scripting
hi,
I would like to exlcude certain files which starts with AUS from a directory while gzip the files but i need it in gzip command only
direct:
AUS1.tx
AUS2.txt
NZ1.txt
i want to gzip only NZ1.txt to NZ1.gz files starting with AUS should not be gzipped and i need it in gzip... (23 Replies)
Discussion started by: rohit_shinez
23 Replies
3. AIX
Dear all
I am facing issue in one part of my script.
in this part i am trying to zip the files but want the status to be redirected to a text file
YAMVASSRV02_vas>
YAMVASSRV02_vas> cat final_col.sh
gzip -cv /data01/oracle/oradata/vas/control/control01.ctl > ... (2 Replies)
Discussion started by: javeedkaleem
2 Replies
4. Shell Programming and Scripting
How to search for all files with matching strings -->
find + tar + gzip + uunecode/email them in one command?
I am sure there is a right way to pass list of files to tar, then compress tar file. Then send that as attachment using uuencode in one command.. Can we do that!? (3 Replies)
Discussion started by: kchinnam
3 Replies
5. Shell Programming and Scripting
I would like to make a listing of files in a large directory and output it to tar.gz. Is it possible to do this in one command?
For example;
I would like the text output from this command to be outputted to a directory.tar.gz file.
ls -al -R /bigdir
Is it possible to do it in memory... (5 Replies)
Discussion started by: lewk
5 Replies
6. UNIX for Advanced & Expert Users
Hi All,
I have a random test file: test.txt, size: 146
$ ll test.txt
$ 146 test.txt
Take 1:
$ cat test.txt | gzip > test.txt.gz
$ ll test.txt.gz
$ 124 test.txt.gz
Take 2:
$ gzip test.txt
$ ll test.txt.gz
$ 133 test.txt.gz
As you can see, gzipping a file and piping into gzip... (1 Reply)
Discussion started by: hanfresco
1 Replies
7. UNIX for Dummies Questions & Answers
Hi there,
I'm puzzled. Compressing the same file (same name, same md5sum) at two different times will produce a different output. I mean the md5sum of the resulting .gz files are different.
Does it make any sens to any of you?
I'd like some explanations if you know what's going on.
Thanks... (4 Replies)
Discussion started by: chebarbudo
4 Replies
8. Shell Programming and Scripting
Hi All,
Is it possible to redirect the o/p of gzip command to another file?
I need to store the o/p in a separate file
Regards,
sh_kk (7 Replies)
Discussion started by: sh_kk
7 Replies
9. Shell Programming and Scripting
Hi experts
I want the proper argument to the grep command so that I need to skip the first few lines(say first 10 lines) and print all the remaining instances of the grep output.
I tried to use grep -m 10 "search text" file*. But this gives the first 10 instances(lines) of the search string.... (7 Replies)
Discussion started by: ks_reddy
7 Replies
10. Shell Programming and Scripting
i want to print the idle time of the users more than 10 days.
for eg:
my "w" command output is like below.
-sh-3.00$ w
03:47:41 up 13 days, 16:59, 3 users, load average: 10.00, 10.00, 10.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root :0 - ... (2 Replies)
Discussion started by: Krrishv
2 Replies