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://course128.z23.web.core.windows.net/research/course128-(23).html
“I mentioned right then I would wear it one day,” she recalled.
Usually I do not learn article on blogs, but I wish to say that this write-up very forced me to trry and do it!
Your writing style has been surprised me.
Thank you, very nice article.
골드시티평생주소
https://accounting001.netlify.app/research/accounting001-(364)
For a beach marriage ceremony I would wear one thing a bit more flowy just like the flowery
and ruffly attire above.
Heya! I’m at work surfing around your blog from my new iphone 3gs!
Just wanted to say I love reading through your blog and look forward to
all your posts! Carry on the excellent work!
Thanks to my father who informed me regarding this blog, this website
is actually amazing.
https://storage.googleapis.com/accounting0033/research/accounting0033-(188).html
Read on for the best mother of the bride clothes for each season, body type,
and price range.
https://accounting011.netlify.app/research/accounting011-(302)
It has over one hundred forty constructive reviews,
many from girls who wore this to a marriage and beloved it!
1. Выберите в своей группе «лидера», «секретаря».
Review my website – http://neuromants.ru/teachers.html
It’s enormous that you are getting thoughts from this article as
well as from our discussion made at this place.
I’ve been exploring for a little for any high-quality articles or
blog posts in this sort of space . Exploring in Yahoo I at last stumbled upon this site.
Studying this information So i am glad to show that
I have a very excellent uncanny feeling I came upon exactly what I
needed. I so much surely will make sure to do not put out of your
mind this web site and give it a look regularly.
يحتوي على ميزات تجعل تحويل مقاطع فيديو يوتيوب أمرًا سهلاً في غضون
ثوانٍ.
Quality articles or reviews is the key to interest the users to pay a visit the website, that’s what this website is providing.
Can I simply just say what a relief to uncover an individual who truly knows what they are discussing over the internet.
You actually realize how to bring an issue to light and make it important.
More people ought to check this out and understand this side
of your story. It’s surprising you aren’t more popular since you most certainly
have the gift.
buy viagra online
Today, I went to the beach front with my kids. I found a sea shell and gave
it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.”
She put the shell to her ear and screamed. There was a hermit crab inside and it pinched her ear.
She never wants to go back! LoL I know this is entirely off topic but I had to tell someone!
Just want to say your article is as astonishing.
The clarity to your put up is just great and that i can suppose you are a professional in this
subject. Fine with your permission allow me to grab your
RSS feed to keep up to date with imminent
post. Thanks 1,000,000 and please keep up the enjoyable
work.
Hi this is somewhat 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 knowledge so
I wanted to get advice from someone with experience.
Any help would be enormously appreciated!
https://storage.googleapis.com/catering23/research/catering23-(304).html
Wear yours with grass-friendly footwear like block heels or woven wedges.
турецкие сериалы русская озвучка бесплатно
https://accounting1020.s3.us-west-004.backblazeb2.com/research/accounting1020-(95).html
I assume every of the above could work with winery weddings.
https://accounting25.b-cdn.net/research/accounting25-(156).html
You don’t wish to wear brilliant pink for instance, if the style of the day is extra organic and muted.
I have tⲟ thank you foг the efforts yyou have pսt in penning this site.
I’m hoping to ϲheck οutt the same high-grade blog posts by you
in the futre as welⅼ. In fact, your creative writing abiⅼities has motivated me to get my own,
persolnal blog now 😉
buy cleocin online canada
https://accounting-1.nyc3.digitaloceanspaces.com/research/accounting1-(293).html
This candy and elegant midi with a built-in cape would look simply as stylish paired with an evening shoe as it will with a floor-length maxi.
payday loan
Nice post. I wwas checking continuously thiss blog and I am impressed!
Very helpful informatioon particularly the last part 🙂 I care
for such info a lot. I was seeking this particular info ffor a
long time. Thank you and good luck.
Feel free to surf to my website; 카지노사이트
Oh my goodness! Amazing rticle dude! Thank you, However I amm going through troubles with
your RSS. I don’t understand thee reason why I cannot jooin it.
Is there anyboldy else getting identical RSS problems?
Anyone that knows the answer can you kindly respond?
Thanx!!
como conseguir seguidores en tiktok
certainly like your web-site but you have to check the spelling on quite a few
of your posts. A number of them are rife with spelling issues and I find it very bothersome to tell the truth however I’ll surely come again again.
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.
Very good blog post. I definitely love this website.
Continue the good work!
Hey there! I know this is kind of off topic but
I was wondering if you knew where I could get a captcha
plugin for my comment form? I’m using the same blog platform as yours and I’m having trouble finding one?
Thanks a lot!
Познакомьтесь с Metallobaza №2 – вашим надежным партнером в мире нержавеющего металлопроката!
Мы – лидеры отрасли в России, предлагая широкий спектр продукции из нержавеющей стали от ведущих мировых производителей. Наша прогрессивная торгово-складская инфраструктура и крупные запасы товара на персональном складе в Санкт-Петербурге гарантируют вашему бизнесу надежные поставки и оперативное обслуживание.
Что мы предлагаем:
✅ Оптово-розничная продажа продукции нержавеющего металлопроката.
✅ Комплекс услуг по резке металла и различные способы его обработки.
✅ Отгрузка, хранение и упаковка нержавеющей стали.
✅ Доставка металлопродукции по всем регионам России.
Доверьтесь профессионалам Metallobaza №2 и обеспечьте своему бизнесу надежное снабжение качественным металлопрокатом уже сегодня! ✨
Also visit my web page; http://poznan-adwokat.pl/index.php/Nerzhaveyka-spb.ru
https://filedn.eu/lXvDNJGJo3S0aUrNKUTnNkb/accounting20/research/accounting20-(266).html
Preferably not be all black as which will counsel mourning.
I visited several web pages except the audio quality for audio songs existing at this website is truly
wonderful.
My brother suggested I may like this web site. He used to be entirely right.
This submit actually made my day. You cann’t believe just how so much
time I had spent for this info! Thanks!
Does your site have a contact page? I’m having a tough time locating it but, I’d like to send you an email.
I’ve got some ideas for your blog you might be interested in hearing.
Either way, great blog and I look forward to seeing it
improve over time.
I know this website provides quality based content and other information, is there any other website which provides such
information in quality?
This blog was… how do I say it? Relevant!! Finally I’ve found something that helped
me. Appreciate it!
https://accounting003.netlify.app/research/accounting003-(88)
Discover our hand-picked assortment of mom of the bride dresses and you’re guaranteed to be best-dressed – aside from the bride, of course!
Hi there, for all time i used to check web site posts here in the early hours in the
daylight, because i love to learn more and more.
I have read a few good stuff here. Certainly value bookmarking for revisiting.
I surprise how much attempt you set to make any such wonderful informative website.
Heya i am for the first time here. I found this board and I
find It truly useful & it helped me out much. I hope to
give something back and help others like you aided me.
https://accounting1004.s3.us-west-004.backblazeb2.com/research/accounting1004-(315).html
Opt for non-creasing, moveable fabrics similar to scuba or lace, teamed with fashionable but practical shoes for that added contact of glamour.
I loved as much as you will receive carried out right here.
The sketch is attractive, your authored subject matter stylish.
nonetheless, you command get got an edginess over that you wish be delivering
the following. unwell unquestionably come more formerly again as exactly the same nearly
very often inside case you shield this hike.
I know this if off topic but I’m looking into starting my
own weblog and was wondering what all is required to get set up?
I’m assuming having a blog like yours would cost a pretty penny?
I’m not very internet savvy so I’m not 100% positive.
Any recommendations or advice would be greatly appreciated.
Many thanks
Greetings! Very useful advice in this particular article!
It is the little changes that will make the biggest changes.
Thanks a lot for sharing!
It’s actually a cool and useful piece of information. I’m glad that you shared
this useful information with us. Please stay us up to date like this.
Thanks for sharing.
https://storage.googleapis.com/chinavisa21/research/chinavisa21-(202).html
A gown with jewels at the neckline alleviates the need for a necklace or a great deal of other extras.
Hеyaa і amm for the primаry time hеre. I came
across this board and I too find It truly helpful & it helped me
out much. I’m hoping to offer something
again and aid others like you helped me.
https://accounting005.netlify.app/research/accounting005-(492)
From reasonably priced and classy to designer and traditional, these are our favourite bow ties for weddings.