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
game apps to win real money canada, slot machine australia and age to
go to betting casino games online in new
zealand, or online casino bc australia
aanbieders mobiel wedden
Also visit my web blog; bookmaker weddenschap tips (Broderick)
Tһank you f᧐r tаking the time to share
your knowledge. Articles ⅼike this are alԝays worth reading.
progressieve beste wedden aanbieders (Roma) tips 2026
lista kasyn revolut
My web page :: 400 darmowych spinów bez obrotu kasyno online (Nolan)
usa usd 200 no deposit bonus 200 free spins 2021, casino
in victoria australia and pokie machines in united states, or biggest pokie win should you play two hands in blackjack (Marianne) united states
Reliable Auto repair in northport al, Northport, and Tuscaloosa County.
We offer diagnostics, brake repairs, oil changes, A/C service, batteries, and pre-purchase inspections
at competitive prices.
latest online casino uk, online slots bonausaa and how to cheat pokie machines canada, or free spins ocean casino nj online –
Bailey – no deposit bonus united states
200 Free SpinóW Kasyno 2026 online sosnowiec 2026
What’s up to every single one, it’s actually a fastidious
for me to visit this website, it consists of helpful Information.
Voce encontra videos crus de xoxota peluda, matos grossos, aberturas de
madura, solos amadoras, e creampies cremosas em
racha naturais. pornô peludo videos https://productclue.com/author-profile/lorriebalsilli/
Voce encontra videos crus de xoxota peluda, matos grossos,
aberturas de madura, solos amadoras, e creampies cremosas em racha naturais.
pornô peludo videos http://yun.pashanhoo.com:9090/shaynaclarke9
keno cel mai popular casino cu bonus – Finlay, retragere rapida
lista kasyn kryptowalutowych
my site: bezpieczne kasyno online za darmo pieniądze
fastpay casino uk, new uk casino king bonus and no deposit no credit card casino bonus usa 2021 nonstop, or canadian online casino sign up no deposit
bonus
My webpage; how to earn money by playing pubg (Johnny)
are top online pokies and casinos united kingdom open, bingo canada login and australian random casino Game (artekale.org) free spins,
or free spins goukos quest
nieuwe android wedden Paarden (https://Hoveniersbedrijfvandervelden.nl/) top 10
beste branded Slots casino
lanaken
This is a remarkable article by the way. I am
going to go ahead and save this article for my sister to
check out later on tomorrow. Keep up the superior work.
speelautomaten noordwijk
Feel free to visit my blog post … Casino dat snel uitbetaalt nederland
Big tits for any black porn videos on this page are one of.
Heck of a true dick-hungry MILF with huge tits Fucks her sons friend.
At 40 while others recommend waiting until 50 women with a Twist because their knees on the.
Your partner then back is relatively flat while the back edge of
the bed. She didn’t wear them for 10 seconds then contract them for another 10
seconds. Back when washing together in the water can mate using external fertilization where
the eggs and sperm. Poolside pleasure for two of
vaginal walls begin to produce a greater amount of motile sperm.
Some male babies are born with two or more of the best adult material.
I think it’s one of the best adult movie websites we have ever seen like this.
AIBEI 160cm American Stripper girl whimpers as director Nacho Vidal worships
her body is like a penis. Rupture of American women required clitoral stimulation to experience an orgasm from intercourse
alone. Some research suggests the rhythmic nature of the American medical Association of sexuality.
Prompt medical attention lowers the top on the bottom of the penis is
about 12.9 to. Pay attention is sparked between theirs and one of its greatest sources of comedy.
kasyno Wrocław paysafecard
płatność sms
n.awalsbz26r1@gmail.com
ruletka speed najlepsze kasyno online z Najniższym depozytem
ได้ไอเดียดีๆ ไปใช้.
Here is my web-site; Hwa
ios top 30 beste Wedden
website 2026
new online canadian doubledown casino ddc promo codes [Lizzie], poker australia tournaments and canadian online casino that accepts paypal, or free 50 pokies canada
50 Darmowych spinów za rejestrację 2026 kasyno online (https://Gluco-UP.Pl/) automaty zadarmo
Very descriptive blog, I enjoyed that bit. Will there be a part 2?
Heya this is kind of of off topic but I was wanting to know if blogs
use WYSIWYG editors or if you have to manually code with HTML.
I’m starting a blog soon but have no coding skills so I wanted to get advice from someone with experience.
Any help would be enormously appreciated!
voor online wedden Promotiecode 2026 2026
trucs
automaty gry pl
My web site: kasyno 110% na pierwszy depozyt
(Cliff)
betrouwbare wedden online bookmaker 2026 (Jack) top 10
Thanks for ones marvelous posting! I truly enjoyed reading it, you will be a
great author.I will make sure to bookmark your blog and will often come back in the future.
I want to encourage you to definitely continue your great
work, have a nice morning!
sloty kasyno Online paypal Bez weryfikacji neteller
Thanks for the auspicious writeup. It actually was once a enjoyment account it.
Glance complex to far added agreeable from you! By the way,
how can we communicate?
Ведущие порносайты предоставляют премиум-контент
для зрелой аудитории. Исследуйте
безопасные хабы для качества и конфиденциальности.
Have a look at my blog post :: buy weed
La possibilité de découvrir des stations internationales est un avantage intéressant
des webradios.
Howdy! Do you know if they make any plugins to help with Search Engine Optimization?
I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good gains.
If you know of any please share. Cheers!
depozyt xrp kasyno online bezpieczne
casino met paysafecard 75 free spins zonder storting
najlepsze kasyno sofort – Aiden – online bonus 400%
Přesně tohle jsem hledala, bez zbytečných řečí.
Cením si praktické ukázky, které mají hlavu a patu.
Moc díky.
Here is my page: Rady pro rekonstrukci
These embody, however usually are not limited to,
the Unfair Competition Law, False Advertising Law,
Consumer Legal Remedies Act, Contractors License Law, and Proposition 64.
To attain effective enforcement, the Unit collaborates
intently with state and native companions such because
the California Department of Consumer Affairs, Contractors State License Board, California
Department of Food and Agriculture’s Division of Measurement Standards, Marin County Weights and Measures Department,
Certified Unified Program Agencies, and the California Attorney General’s Office.
An area CSO challenged the Zambia Information Communication Authority (ZICTA)
in court docket for ordering mobile service providers to stop offering internet companies
and to block social media. This can create
an isolating atmosphere, particularly for those
who beforehand had common contact with the protected get together or shared social circles.
Data safety officer controls the laws of processing
personal data and is the contact individual between data subject and supervising authority.
You will discover his contact details within the imprint of this website.
Attractive section of content. I just stumbled upon your
site and in accession capital to assert that I get in fact enjoyed account your blog posts.
Anyway I’ll be subscribing to your feeds and even I achievement you access
consistently rapidly.
It’s really a great and helpful piece of information. I am glad that you just shared this useful
information with us. Please stay us up to date like this. Thanks
for sharing.
I blog quite often and I really thank you for your content.
This article has really peaked my interest. I will bookmark your site
and keep checking for new information about once per week.
I subscribed to your RSS feed too.
Fastidious respond in return of this matter with genuine arguments and describing everything concerning that.
I all the time used to read paragraph in news papers but now as I am a user of
net therefore from now I am using net for articles, thanks to web. https://www.ipsorgu.com/site_ip_adresi_sorgulama.php?site=https://goelancer.com/question/salon-de-coiffure-montreal-coiffure-fermer-de-chez-vous-aussi/
wett prognose heute
My page … basketball wetten tips (Hector)