Sponsored Content
Full Discussion: Merry Christmas! & UNIX Song
The Lounge What is on Your Mind? Merry Christmas! & UNIX Song Post 302153393 by DeepakS on Monday 24th of December 2007 10:17:00 AM
Old 12-24-2007
Not too shabby.

I'd probably write this:

cat list | grep naughty >nogiftlist
cat list | grep nice >giftlist

like this:

>nogiftlist grep naughty list
>giftlist grep nice list

Saves two processes Smilie
 

5 More Discussions You Might Find Interesting

1. What is on Your Mind?

Merry Christmas

Merry Christmas and all best wishes to all fox in this forum salute from Croatia (0 Replies)
Discussion started by: solaris_user
0 Replies

2. What is on Your Mind?

Merry Christmas!

https://www.unix.com/members/neo-albums-forum-pics-picture567-merry-christmas.png (1 Reply)
Discussion started by: Neo
1 Replies

3. What is on Your Mind?

Merry Christmas And Happy New Year

I wish all Administrators,Moderators, Code Taggers, all members and followers of this forum that Santa brings you the gift of never ending happiness this Christmas! May you and your family be blessed abundantly. Merry Christmas and a Prosperous New Year! :) With Best Regards, Akshay Hegde (1 Reply)
Discussion started by: Akshay Hegde
1 Replies

4. What is on Your Mind?

Merry Christmas 2014

Merry Christmas to All. Peace on Earth and Goodwill toward Everyone https://www.unix.com/members/1-albums112-picture653.jpg (7 Replies)
Discussion started by: Neo
7 Replies

5. What is on Your Mind?

Merry Christmas 2019 :) :)

Hello All, I would like to wish merry x-mas to all of you. May GOD bless us all with wisdom, love, positivity and great positive energy, cheers and happy holidays :) Thanks, R. Singh (1 Reply)
Discussion started by: RavinderSingh13
1 Replies
ZGREP(1)                                                      General Commands Manual                                                     ZGREP(1)

NAME
zgrep - search possibly compressed files for a regular expression SYNOPSIS
zgrep [ grep_options ] [ -e ] pattern filename... DESCRIPTION
Zgrep invokes grep on compressed or gzipped files. These grep options will cause zgrep to terminate with an error code: (-[drRzZ]|--di*|--exc*|--inc*|--rec*|--nu*). All other options specified are passed directly to grep. If no file is specified, then the standard input is decompressed if necessary and fed to grep. Otherwise the given files are uncompressed if necessary and fed to grep. If the GREP environment variable is set, zgrep uses it as the grep program to be invoked. EXIT CODE
2 - An option that is not supported was specified. AUTHOR
Charles Levert (charles@comm.polymtl.ca) SEE ALSO
grep(1), gzexe(1), gzip(1), zdiff(1), zforce(1), zmore(1), znew(1) ZGREP(1)
All times are GMT -4. The time now is 01:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy