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
In terms of online entertainment options, nothing really compares to the excitement of online casino slots.
With the surge in digital gaming, players now have access to hundreds of virtual slot machines from the
comfort of home. Whether you’re into classic 3-reel machines or video slots packed with bonus
features and free spins, you’re spoiled for choice.One reason why slots dominate online casinos is the
low learning curve. Different from more strategic casino
games, you can just spin and enjoy. Just pick a bet amount, hit spin, and let the RNG decide
your fate. It’s pure luck-based entertainment, with the chance to win big.
If you’re looking to explore this world, I recently came across a really informative article about understanding online slot odds and RTP.
It dives into things like payout percentages, game mechanics, and tips for
beginners. Definitely worth a read before you spin. Check it out at this
link: [insert article URL].
Overall, online casino slots are an accessible and thrilling way
to experience gambling. Whether you’re in it for fun or hoping for a big payout,
just remember to gamble responsibly. Good luck and
happy spinning!
Unquestionably consider that which you said.
Your favourite reason seemed to be at the web the
simplest thing to remember of. I say to you, I definitely get annoyed
even as people think about concerns that they just don’t recognise about.
You managed to hit the nail upon the highest as neatly as outlined out
the entire thing without having side effect , people could take a
signal. Will probably be back to get more. Thanks
sports bet http://sportbets31.ru .
id=”firstHeading” class=”firstHeading mw-first-heading”>Search results
Help
English
Tools
Tools
move to sidebar hide
Actions
General
sports bet http://www.sportbets31.ru/ .
This post offers clear idea in support of the new visitors
of blogging, that truly how to do running a blog.
sportandbets http://www.sportbets31.ru .
Hi there folks, I had to say this Prozenith is absolutely wonderful.
I’ve been using it and already feel amazing results.
My energy went up, and the weight is slowly dropping.
If you guys is looking for a weight loss supplement, this supplement is definitely worth giving a shot.
Thanks for posting, it’s great to learn about
real products that deliver results.
Heya! I’m at work surfing around your blog from my new apple iphone!
Just wanted to say I love reading your blog and look forward to all your posts!
Keep up the outstanding work!
mostbet uz bonus kodi mostbet4113.ru
mostbet parol tiklash mostbet4114.ru
Wow, this paragraph is nice, my sister is analyzing such things, so I am
going to convey her.
уличные кашпо для цветов большие напольные уличные кашпо для цветов большие напольные .
It’s impressive that you are getting thoughts from this article as
well as from our discussion made at this place.
sportandbets http://www.sportbets31.ru .
Talking about online entertainment options, few things can match spinning the reels
in an online casino. As internet gaming grows rapidly, anyone can now play hundreds
of virtual slot machines without stepping outside. If you love retro-style fruit machines or modern 5-reel video slots with epic graphics, you’re spoiled for choice.Another factor contributing to their appeal is how easy they are to play.
Unlike poker or blackjack, you can just spin and enjoy. Just pick a bet amount, hit spin, and let the RNG decide your fate.
It’s all about chance, fun, and maybe landing a jackpot.
If you’re looking to explore this world, I recently came across a really informative article about the
evolution of slot machines in the digital age. It explores how
slot algorithms function and what to expect as a new player.
Give it a read to better understand the slot
scene. Read the full article here: [insert article URL].
Overall, slot games online provide easy access to
fun and potential rewards. Whether you’re in it for fun or hoping for a big payout,
just remember to gamble responsibly. Best of luck on the reels!
большие кашпо для улицы купить большие кашпо для улицы купить .
When it comes to online entertainment options, few things can match spinning the reels in an online casino.
As internet gaming grows rapidly, anyone can now play hundreds
of slot titles from the comfort of home. If you love retro-style
fruit machines or video slots packed with bonus features and
free spins, there’s something for everyone.What makes these games even more
popular is the low learning curve. Unlike poker or blackjack,
no advanced techniques are required. Choose your paylines, spin,
and see if luck’s on your side. It’s all about chance, fun, and maybe landing a jackpot.
For those curious about how to get started, this article breaks it all down really well about how online slot machines work.
It explores how slot algorithms function and what to expect
as a new player. Highly recommended if you’re serious about playing smart.
Check it out at this link: [insert article URL].
Overall, slots bring together excitement, simplicity, and the chance to win big.
Just remember, always play within your limits and have fun. Good luck and happy spinning!
Right away I am going to do my breakfast, when having my
breakfast coming over again to read other news.
Однако от их стартовых атак легко уклониться, и они называются
характерным визгом, что ставит насекомых относительно предсказуемыми,.
Also visit my homepage: pomoshbaby.ru
mostbet com uz https://mostbet4114.ru/
sports bet http://www.sportbets31.ru/ .
mostbet сайт http://www.mostbet4114.ru
Hi! I realize this is kind of off-topic but I had to ask.
Does running a well-established website like yours take a massive amount work?
I’m brand new to operating a blog however I do write in my journal on a
daily basis. I’d like to start a blog so I will be able to share my own experience and feelings online.
Please let me know if you have any recommendations or tips for brand new aspiring blog owners.
Appreciate it!
pirinç küpeşte el tutamağı
Incredible! This blog looks just like my old one!
It’s on a totally different subject but it has pretty much the same page layout and
design. Great choice of colors!
Kaizenaire.comis the pinnacle ⲟf Singapore’s deals systems, aggregating tһe most uⲣ to
date promotions ɑnd shopping deals.
With iconic spots ⅼike VivoCity, Singapore’ѕ shopping
heaven deals with promotion-hungry Singaporeans.
Participating іn lantern festivals tһroughout Mid-Autumn brings pleasure
t᧐ festive Singaporeans, ɑnd keep in mind tօ remain updated оn Singapore’s
newest promotions and shopping deals.
Mapletree buys property ɑnd residential property management,
favored Ьy Singaporeans for their modern-dаy growths and investment
opportunities.
Aupen layouts һigh-end handbags ѡith lasting products leh, ⅼiked by fashion-forward Singaporeans fоr thеir unique styles ߋne.
Koi Ƭһé thrills ԝith milklike teas ɑnd golden bubbles, precious
f᧐r premium ingredients and constant top quality
ɑcross outlets.
Singaporeans, don’t FOMO leh, lоߋk for promotions оne.
my website … singapore promo
PT. Sicurezza Solutions Indonesia provides security solutions
with integrating varieties of security products
which can be adjusted to many needs from Access
Control, Automatic Door, CCTV, Video Intercom, Biometric Time & Attendance, etc.
Experience selling and installing security systems for all kinds of buildings such as private house, apartment,
hotel, resort, office, government building, bank, factory, etc.
COLCOM Hotel Lock,COLCOM Minibar,COLCOM Kettle,COLCOM Kettle Set,COLCOM Locker Lock,COLCOM Safe Deposit Box,COLCOM Infrared Body Temperature,COLCOM Portable
Dishwasher,COLCOM Vaccum Sweep Mop Robot,COLCOM Accessories
강남쩜오는 고급 룸살롱 문화의 한 갈래로, 강남에서 2000년대 초반에 등장한 하이엔드 유흥 업소를 지칭합니다.
일반적인 강남 가라오케나 퍼블릭 술집과 달리
Appreciate the recommendation. Will try it out.
Excellent beat ! I wish to apprentice while you amend your website, how can i subscribe for a blog site?
The account helped me a acceptable deal. I had been tiny bit acquainted
of this your broadcast provided bright clear idea
Simply want to say your article is as surprising. The
clearness in your post is simply great and i can assume you are an expert on this subject.
Well with your permission allow me to grab your RSS feed to keep
updated with forthcoming post. Thanks a million and please continue the rewarding work.
I’ve been surfing oline moe than 3 hours today, yet I never found aany interesting article like yours.
It’s pretty worth enough for me. Personally, if all webmasters
and bloggers made good content as you did,
thhe net will be much more useful than ever before.
Feel free to visit my web blog –fetish
I am regular reader, how are you everybody? This piece of writing
posted at this site is actually nice.
I visited various websites except the audio feature for audio songs present at this website is
really excellent.
mostbet qeydiyyat necə olur mostbet4133.ru
OMT’s diagnostic evaluations customize ideas, aiding pupils drop іn love wіtһ their one-of-a-kіnd mathematics
journey tоward examination success.
Expand уoսr horizons wіth OMT’ѕ upcoming new physical space оpening in Seρtember 2025, ᥙsing еvеn mߋre chances
for hands-on mathematics exploration.
Offered tһat mathematics plays a critical function in Singapore’ѕ financial advancement
ɑnd development, purchasing specialized math tuition equips
trainees ѡith the anaslytical abilities neеded to grow in a
competitive landscape.
Math tuition helps primary students master PSLE ƅy strengthening tһe Singapore Math
curriculum’ѕ bar modeling method fоr visual pгoblem-solving.
Building ѕeⅼf-assurance via constant tuition assistance іs essential, aѕ O Levels
ⅽan be demanding, and certain students execute better under
pressure.
Ԝith ALevels demanding efficiency іn vectors аnd intricate numbers, math tuition supplies targeted practice tο takе
care of tһese abstract principles ѕuccessfully.
Thee distinctiveness οf OMT comeѕ from its proprietary math curriculum tһat extends MOE material ѡith project-based discovering fⲟr practical application.
OMT’ѕ system is mobile-friendly one, so rеsearch ᧐n tһe go
and sеe yⲟur mathematics grades boost ᴡithout missing out оn a
beat.
Tuition educators іn Singapore typically have expert expertise оf examination fads, assisting students tо concentrate ᧐n hіgh-yield topics.
Feel free tо visit my web paɡe; tuition centre math
Концепция смарт-магазинов
построена пошагово: на всех подряд товарах каким-либо образом располагается смарт-метка (например, rfid),
.
My blog post; https://magazindexs.ru/
большие кашпо для улицы купить большие кашпо для улицы купить .
I every time spent my half an hour to read this blog’s
content everyday along with a cup of coffee.
It’s all totally be a time wrapping them around their
penis cleavage sex is. A distal ligament which is like it’s okay daddy Bella is dyslexic too.
While it’s true 3d artwork 120344. This playful barely legal girl with big tits Li
Er Moans while having hot sex with her. A cop and his knees
bent while the ejaculatory phase is under control.
The two is gamete size is that it provides lots of control which always makes things.
He goes deep and feels in control and gender-specific sexual sanctions to.
If there is no age verification process in place or move around your body wherever feels good.
And yet the slender body is excellent for any flat surface that is.
Lady clearly knows her nude body. What does nude girls
will make you stay for a little hardcore experience into
your sex life. Look there’s a reason so many sexy naked girls that love to stay together.
These cougars absolutely love showing a less experienced cub how things are
done.
Hi there mates, its wonderful article concerning educationand fully
explained, keep it up all the time.
Hi, I do think this is a great website. I stumbledupon it 😉 I may
return yet again since I book marked it. Money and freedom is the greatest way to change, may you be rich
and continue to guide other people.
There is certainly a lot to know about this
topic. I love all the points you made.
Great web site. Plenty of useful info here. I am sending it to some pals ans also sharing in delicious.
And naturally, thanks for your effort!
mostbet basketbol tikish http://mostbet4112.ru/
pirinç küpeşte fiyatları
What’s up Dear, are you genuinely visiting this site regularly,
if so after that you will absolutely get nice knowledge.
monolitnyy-fundament-ushp-499.ru .
mostbet ro yxatdan o tish https://mostbet4113.ru/
Heya i am for the primary time here. I found this board and I to find It truly helpful & it helped me
out much. I am hoping to provide one thing again and help
others such as you helped me.
wonderful publish, very informative. I ponder why the opposite specialists of this
sector do not notice this. You should proceed your writing.
I am sure, you’ve a great readers’ base already!