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)						    BSD General Commands Manual 						  ZGREP(1)

NAME
zgrep, zegrep, zfgrep -- print lines matching a pattern in gzip-compressed files SYNOPSIS
zgrep [grep-flags] [--] pattern [files ...] zegrep [grep-flags] [--] pattern [file ...] zfgrep [grep-flags] [--] pattern [file ...] DESCRIPTION
zgrep runs grep(1) on files or stdin, if no files argument is given, after decompressing them with zcat(1). The grep-flags and pattern arguments are passed on to grep(1). If an -e flag is found in the grep-flags, zgrep will not look for a pattern argument. zegrep calls egrep(1), while zfgrep calls fgrep(1). EXIT STATUS
In case of missing arguments or missing pattern, 1 will be returned, otherwise 0. SEE ALSO
egrep(1), fgrep(1), grep(1), gzip(1), zcat(1) AUTHORS
Thomas Klausner <wiz@NetBSD.org> BSD
December 28, 2003 BSD
All times are GMT -4. The time now is 12:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy