Colourful grep on aix.
Linux implements a decent version of grep and highlights the search term using colour. Whilst AIX terminals can support colour (if your term session supports it) with escape codes I have not seen any way of making grep or egrep etc colourful.
On linux you simply add the parameter –color=auto such as
grep --color=auto SearchTerm {files}
Well as I couldn’t find anything on google I decided to implement something. And this is what I came up with. However the one bug I didn’t manage to resolve was If searching case insensitively the highlighting will only find the correct case. As sed does not support case insensitively this is a problem to solve. If nawk or gawk is installed, they do support it with the -i parameter.
#!/bin/ksh
#************************************************************************
# *
# Module Name : grepc.sh *
# Author : Dave Jarman +
# *
# Edit Record (most recent edit at top of list) *
# Date By CF Comments *
# --------- --- ---- --------------------------------------- *
# 5-Apr-12 DCJ i Use ampersand in sed search results as
# matched string to better handle regular
# expressions (thanks Zolo).
# 20-Sep-11 DCJ New file *
#************************************************************************
#
# Executes grep but with the escape codes to colourise the output.
#
# Known Bugs:
# If searching case insensitively the highlighting will only find the
# correct case. As sed does not support case insensitively this is a problem
# to solve. If nawk or gawk is installed, they do support it with the -i
# parameter.
#
# Other colours are available. Use the following lines.
# Blue echo "s/$QRY/\033[1;34m$QRY\033[0m/g" > $TMP/$$.sed
# Light blue echo "s/$QRY/\033[1;36m$QRY\033[0m/g" > $TMP/$$.sed
# Inverse blue echo "s/$QRY/\033[44;37m$QRY\033[0m/g" > $TMP/$$.sed
# Red echo "s/$QRY/\033[0;31m$QRY\033[0m/g" > $TMP/$$.sed
#************************************************************************
# Check for any options and save them
OPT=
while [[ $1 = [-+]?* ]]
do
OPT="$OPT $1"
shift
done
#
# Get the search string.
QRY=$1
shift
#
# Create a sed script to subsitiute for the appropriate colour.
# Show the search term in Blue
# echo "s/$QRY/\033[1;34m$QRY\033[0m/g" > $TMP/$$.sed
echo "s/$QRY/\033[1;34m&\033[0m/g" > $TMP/$$.sed
# echo /usr/bin/grep $OPT "$QRY" $* "|" sed -u -f $TMP/$$.sed
/usr/bin/grep $OPT "$QRY" $* | sed -f $TMP/$$.sed
#
# Clean up the tmp file *
rm $TMP/$$.sed
#
# Finish
exit 0
https://accounting001.netlify.app/research/accounting001-(131)
You can find a fantastic choice right here and they’re great quality that won’t break the financial institution.
https://accounting-6.blr1.digitaloceanspaces.com/research/accounting6-(118).html
If full skirts and punchy prints aren’t your mother’s go-to, try a statement sleeve.
https://accounting6.b-cdn.net/research/accounting6-(170).html
Maybe she envisions everyone sporting impartial tones, or perhaps she prefers
daring and bright.
Jangan Main di tempat ini, Agen Miskin
https://filedn.eu/lXvDNJGJo3S0aUrNKUTnNkb/accounting15/research/accounting15-(161).html
Pair the dress with neutral or metallic equipment to maintain the the rest of the
look subtle and simple.
Hi, I want to subscribe for this web site to obtain hottest updates, so where can i
do it please help.
https://accounting009.netlify.app/research/accounting009-(146)
This embellishment on this beautiful dress adds a contact of magic excellent for any winter wedding ceremony.
Hi thеre this is someԝhat of off topic but I was wanting tto know if blogs use WYSIWYG еditors
or if you have too anualⅼy code ith HTML. I’m starting a blog ѕoρon but have no coding knowledge
so I wanted to get guidance from some᧐ne with experience.
Any help ԝould be enormously apρreciated!
http://accounting0017.s3-website.eu-central-2.amazonaws.com/research/accounting0017-(50).html
Mother of the Bride and Groom dresses in the latest styles and colours.
https://filedn.eu/lXvDNJGJo3S0aUrNKUTnNkb/accounting11/research/accounting11-(197).html
You will need to find something that works in each hot and cold, or discover something to maintain you warm to go over it.
You’re an extremely helpful site; could not make it without ya!
https://www.oferujemyprace.pl
Wonderful website you have here buut I was wanting to know
if you knew of any colmmunity forims that cover the same
topics talked about here? I’d really love to be a part of community where I can get advice
from other experienced people that share the same interest.
If you have any recommendations, please let me know. Cheers!
골드시티 가입쿠폰
My relatives every time say that I am killing my time here at web, however I know I am getting experience every day by reading
such fastidious posts.
Ι ɑm curious to fihd oսt what blog platfoгm you happen to
be usіng? I’m experiencing some small security
proЬlеms with my latest website and I’d like too
find sometһing more risk-frеe. Do you have any suggestions?
Every weekend i used to pay a visit this web page,
for the reason that i wish for enjoyment, as
this this site conations genuinely pleasant funny stuff too.
Magnificent items from you, man. I’ve have in mind your stuff prior to and you’re just extremely great.
I really like what you have received here, really like what you are
stating and the best way wherein you say it. You are making it entertaining and you still take care of to keep it sensible.
I cant wait to read much more from you. That is actually a wonderful website.
I’m not sure where you’re getting your information, but good topic.
I needs to spend some time learning much more or understanding more.
Thanks for wonderful info I was looking for this information for my mission.
https://accounting0002.z8.web.core.windows.net/research/accounting0002-(9).html
Oleg Cassini, solely at David’s Bridal Polyester, spandex Back zipper; totally lined
Hand wash Imported.
I have read some good stuff here. Certainly worth bookmarking for revisiting.
I surprise how so much effort you place to make any such excellent informative website.
https://chinavisa8.z9.web.core.windows.net/research/chinavisa8-(315).html
This gentle grey is perfect for the mom of the bride gown.
https://accounting11.b-cdn.net/research/accounting11-(6).html
Grab amazing on-line deals on mother of the bride dresses now and get free transport in the United
States.
https://accounting3.research.au-syd1.upcloudobjects.com/research/accounting3-(19).html
A trace of sheen makes pastels like this dove grey really feel rich and applicable for the night.
My brother suggested I may like this blog. He was once totally right.
This put up truly made my day. You can not imagine simply how
so much time I had spent for this info! Thanks!
https://accounting1012.s3.us-west-004.backblazeb2.com/research/accounting1012-(174).html
So earlier than I even go into detail mom of the bride outfit
ideas, I want to emphasize one essential thing.
https://chinavisa14.b-cdn.net/research/chinavisa14-(114).html
Add a metallic heeled sandal or pump and also you’re good to go.
Whats up very cool site!! Man .. Excellent ..
Wonderful .. I’ll bookmark your web site and take the
feeds additionally? I am happy to seek out a lot of helpful info here within the publish, we need develop more
strategies on this regard, thanks for sharing. . . .
. .
https://accounting010.netlify.app/research/accounting010-(93)
From inexpensive and classy to designer and traditional, these are our favorite bow ties
for weddings.
Рекомендую лучший беттинг сайт и казино 1win
https://accounting0023.z20.web.core.windows.net/research/accounting0023-(18).html
Celebrate their massive day in fashion with our Mother of
the Bride or Groom outfits.
Navigating Legal Challenges in Southfield City Centre: The Sam Bernstein Law Firm
In the bustling city of Southfield, the need for a reliable
car accident attorney is paramount. The Sam Bernstein Law Firm proudly serves neighborhoods
like Southfield City Centre, providing crucial legal support to residents facing challenges on the road.
Established in Southfield in 1830, the firm
boasts a legacy of legal expertise. With a population of 75,898
residents across 34,404 households, Southfield is a city with a rich history.
Connected by the major highway I-696, residents of Southfield City Centre have convenient access to legal services from The Sam Bernstein Law Firm.
Legal repairs, especially in car accident cases, can vary in Southfield.
The Sam Bernstein Law Firm, strategically positioned in Southfield City Centre, offers specialized legal services tailored to residents’
specific needs, ensuring a comprehensive and personalized approach for each case.
Southfield City Centre is home to various points of interest, from the serene American Commerce Centre Nature
Preserve to the captivating Arctic Ring of Life featuring Polar Bears
and Sea Otters. Residents can explore the city’s attractions while having a reliable legal partner in The Sam Bernstein Law
Firm.
Choosing The Sam Bernstein Law Firm in Southfield City Centre is choosing a legacy of legal excellence dating back to 1830.
With a commitment to providing top-notch legal services,
the firm ensures residents facing car accident challenges have unparalleled support in the ever-evolving legal landscape of
Southfield.
”
“Legal Excellence in Beverly Hills Village Park:
The Sam Bernstein Law Firm
In the picturesque neighborhood of Beverly Hills Village Park and its neighboring
communities, The Sam Bernstein Law Firm stands as a pillar of legal
expertise, especially in car accident cases. Serving the residents of Beverly Hills Village Park and beyond,
the firm is committed to providing essential
legal support.
Established in Southfield in 1830, The Sam Bernstein Law Firm
has become synonymous with legal excellence. With a population of 75,898
residents in 34,404 households, Southfield boasts a rich
history. Connected by the major highway I-696, residents
in neighborhoods like Beverly Hills Village Park enjoy convenient access to The Sam Bernstein Law
Firm’s specialized legal services.
Legal repairs, particularly in car accident cases, can vary in Southfield.
Positioned strategically in Beverly Hills Village Park, The Sam Bernstein Law Firm offers tailored legal services, ensuring a comprehensive and personalized approach for each case.
Beverly Hills Village Park is surrounded by captivating points of
interest, from the charming Carpenter Lake Nature Preserve to the historic Beverly Hills Village Park itself.
Residents can savor the natural beauty of the area while
having a steadfast legal partner in The Sam Bernstein Law Firm.
Choosing The Sam Bernstein Law Firm in Beverly Hills Village Park is choosing a legacy of legal excellence that dates back to 1830.
With a commitment to providing top-notch legal services, the firm
ensures residents facing car accident challenges have unwavering support
in the ever-evolving legal landscape of Southfield.
”
“Providing Legal Solutions near Carpenter Lake Nature Preserve:
The Sam Bernstein Law Firm
In the serene vicinity of Carpenter Lake Nature
Preserve and its adjacent neighborhoods, The Sam Bernstein Law Firm serves
as a beacon of legal expertise, specializing in car accident cases.
Dedicated to offering crucial legal support, the
firm caters to residents near Carpenter Lake Nature Preserve and throughout Southfield.
Established in Southfield in 1830, The Sam
Bernstein Law Firm holds a longstanding legacy of legal excellence.
Southfield, with its population of 75,898 residents in 34,404 households, is a city
deeply rooted in history. Connected by the major highway I-696, residents in areas surrounding Carpenter Lake
Nature Preserve enjoy seamless access to the firm’s specialized
legal services.
Legal repairs, especially in car accident cases, can vary in Southfield.
Nestled near Carpenter Lake Nature Preserve, The Sam Bernstein Law Firm provides tailored legal
solutions, ensuring a comprehensive and personalized approach for each
unique case.
Carpenter Lake Nature Preserve is surrounded by natural wonders, including the
scenic Carpenter Lake Overlook and the expansive Beverly
Hills Village Park. Residents can immerse themselves
in the beauty of the area while having a steadfast legal partner
in The Sam Bernstein Law Firm.
Choosing The Sam Bernstein Law Firm near Carpenter Lake Nature Preserve is choosing
a legacy of legal excellence dating back to 1830.
With a commitment to providing top-notch legal services,
the firm ensures residents facing car accident challenges have unparalleled support in the ever-evolving legal landscape of Southfield.
”
“Legal Expertise in the Heart of Southfield: The Sam Bernstein Law Firm
Located in the heart of Southfield, The Sam Bernstein Law
Firm provides unparalleled legal expertise, particularly in car accident cases.
Serving neighborhoods like Southfield City Centre, the firm
is dedicated to offering crucial legal support to residents facing challenging situations on the road.
Established in Southfield in 1830, The Sam Bernstein Law Firm
boasts a legacy of legal excellence. With a population of 75,898 residents
across 34,404 households, Southfield is a city deeply embedded in history.
Connected by the major highway I-696, residents in the heart of Southfield have convenient access to the firm’s specialized
legal services.
Legal repairs, especially in car accident cases, can vary in Southfield.
The Sam Bernstein Law Firm, strategically located
in the city center, offers tailored legal services, ensuring a comprehensive and
personalized approach for each case.
Southfield City Centre is surrounded by points of interest, from
the tranquil Civic Center Park Pavilion to the captivating American Commerce Centre Nature Preserve.
Residents can explore the vibrant heart of Southfield while having a reliable legal partner in The Sam Bernstein Law Firm.
Choosing The Sam Bernstein Law Firm in the heart of Southfield is
choosing a legacy of legal excellence that dates back to 1830.
With a commitment to providing top-notch legal services, the firm ensures residents facing car accident challenges have unwavering support in the ever-evolving legal
landscape of Southfield.
”
“Navigating Legal Challenges in the Vibrant Clawson City Park: The
Sam Bernstein Law Firm
In the vibrant community surrounding Clawson City Park, The
Sam Bernstein Law Firm stands as a symbol of legal expertise,
specializing in car accident cases. Committed to providing essential legal support, the firm serves residents near Clawson City Park and throughout Southfield.
Established in Southfield in 1830, The Sam Bernstein Law Firm carries a legacy of legal excellence.
Southfield, with a population of 75,898 residents across 34,404
households, is a city steeped in history. Connected
by the major highway I-696, residents near Clawson City Park
enjoy convenient access to the firm’s specialized legal services.
Legal repairs, particularly in car accident cases, can vary in Southfield.
Positioned strategically near Clawson City Park, The
Sam Bernstein Law Firm offers tailored legal services, ensuring a comprehensive and personalized approach for each unique case.
Clawson City Park is surrounded by attractions like the Clawson Historical Museum and the captivating Arctic Ring of Life.
Residents can immerse themselves in the community’s vibrancy
while having a steadfast legal partner in The Sam Bernstein Law Firm.
Choosing The Sam Bernstein Law Firm near Clawson City Park
is choosing a legacy of legal excellence dating back to 1830.
With a commitment to providing top-notch legal services, the firm ensures
residents facing car accident challenges have unparalleled support in the
ever-evolving legal landscape of Southfield.
Hi there excellent website! Does running a blog such
as this take a large amount of work? I have very little knowledge of computer programming however I had been hoping to
start my own blog soon. Anyhow, should you have any recommendations or tips for new blog
owners please share. I know this is off subject nevertheless I just wanted to ask.
Cheers! http://www.fantasyroleplay.co/wiki/index.php/User:CaridadSlessor4
Hi there excellent website! Does running a
blog such as this take a large amount of work?
I have very little knowledge of computer programming however I had been hoping to start my own blog soon. Anyhow,
should you have any recommendations or tips for new blog owners please share.
I know this is off subject nevertheless I just wanted to ask.
Cheers! http://www.fantasyroleplay.co/wiki/index.php/User:CaridadSlessor4
Hi, i read your blog from time to time and
i own a similar one and i was just curious if you get a
lot of spam responses? If so how do you stop it, any plugin or anything you can recommend?
I get so much lately it’s driving me crazy so any support is
very much appreciated.
https://accounting-11.fra1.digitaloceanspaces.com/research/accounting11-(406).html
For mothers who swoon for all issues sassy, the dramatic gold mother of the bride dress may
be the picture-perfect decide in 2022.
I believe everything said was actually very logical. But, what about
this? what if you composed a catchier title? I
ain’t saying your information isn’t good., but what if you added a title to possibly grab folk’s attention? I mean jarman.org.uk
| Colourful grep on aix. is a little vanilla. You could look
at Yahoo’s front page and see how they create article headlines to grab viewers
to click. You might add a related video or a pic or two to get
people excited about what you’ve got to say. In my opinion, it might make
your blog a little livelier.
https://filedn.eu/lXvDNJGJo3S0aUrNKUTnNkb/accounting13/research/accounting13-(125).html
This robe comes complete with slits within the sleeves to keep her cool at an outside marriage ceremony this summer.
https://seo18.z1.web.core.windows.net/research/seo18-(160).html
This surprisingly affordable mother-of-the-bride dress is perfect for
a formal fall or winter wedding.
https://accounting1007.s3.us-west-004.backblazeb2.com/research/accounting1007-(146).html
This will allow you to slender down options, making the buying course of easier.
https://filedn.eu/lXvDNJGJo3S0aUrNKUTnNkb/accounting24/research/accounting24-(41).html
It can be utilized for any event, and the fashion of it’s good for the mother of the bride.
Pills information for patients. What side effects?
lopressor otc
Actual news about medicine. Get here.
At this time it seems like WordPress is the top blogging platform out there right now.
(from what I’ve read) Is that what you’re using on your blog?
https://filedn.eu/lXvDNJGJo3S0aUrNKUTnNkb/accounting6/research/accounting6-(104).html
For a beautiful look, select a celebratory design that includes lace
and lengthy sleeves.
Heⅼlo! Thhiѕ is kind of off topic but I need ѕome aԀvice from an eѕtablished
blog. Ιs it tough to sеt up your own ƅlog? I’m not ѵery techincаl but I can figure
thingѕ out pretttу fast. I’m thinking aƄout making my own but I’m nott sure
where too start. Ɗo you һave any tips or suggestions? Many thanks
https://accounting21.b-cdn.net/research/accounting21-(99).html
This glamorous gown in warm and rich gold complements
all skin tones and pairs beautifully with gold and silver equipment.
What’s up to every one, it’s genuinely a nice for me to
pay a visit this site, it contains important
Information.
https://accounting-10.ams3.digitaloceanspaces.com/research/accounting10-(332).html
Plan well in advance, so you will not get too stressed and may help
both your son or daughter with the wedding preparations.
https://filedn.eu/lXvDNJGJo3S0aUrNKUTnNkb/accounting25/research/accounting25-(448).html
When shopping for mother of the bride dresses, firstly, contemplate
the general dress code on the invite.
Hi all, here every person is sharing such knowledge, so it’s good to read this web site, and I used to
visit this website all the time.
Aftеr I oгiginally left a comment І serm to
have сⅼicked oon the -Notify me when new comments
aгe added- checkbox aand from now on evеry time a comment is added I ecieve four emails with the same comment.
Ιs there a means you can remⲟve me from that service?
Appreciate it!
https://digi0001.s3.us-west-004.backblazeb2.com/research/digi0001-(3).html
Talk to your daughter concerning the aesthetic she envisions for her wedding to assist narrow down your choices.