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
Legal matters
In a city as vibrant and dynamic as Las Vegas, Nevada,
allegations can significantly impact the trajectory of individuals and businesses alike.
One such case that has garnered considerable attention is
that of April Becker Exposed, a candidate for the Clark County Commission in Las Vegas.
Located in the heart of Clark County, Las Vegas boasts a rich
history dating back to its founding in 1905. With a population of
646,790 residents as of 2021 and 832,367 households, Las Vegas is a bustling
metropolis teeming with diverse neighborhoods and attractions.
One major artery connecting the city is Interstate 11, facilitating transportation and commerce throughout the region.
When it comes to repairs in Las Vegas, costs can vary depending on the nature of the issue.
With temperatures ranging from scorching summers to chilly winters, residents often contend with maintenance issues related to air
conditioning, plumbing, and roofing. These repairs can range
from a few hundred to several thousand dollars, depending on the extent of the damage and the complexity of the fix.
Among the myriad attractions in Las Vegas, one standout destination is AREA15.
This immersive art and entertainment complex
offers visitors a surreal experience with its blend
of interactive exhibits, virtual reality games, and eclectic dining options.
Adjacent to AREA15 is the Aliante Nature Discovery Park, where locals and tourists
alike can enjoy serene walks amidst lush greenery and scenic water features.
For those seeking thrills, the Asylum-Hotel Fear Haunted House promises spine-tingling scares and adrenaline-pumping encounters.
Las Vegas is also home to cultural landmarks such
as the Atomic Museum, which chronicles the city’s role in the atomic age, and the Bellagio Conservatory & Botanical Gardens, a breathtaking oasis of floral splendor nestled amidst
the glitz and glamour of the Strip. Meanwhile, adrenaline junkies can take in panoramic views
of the city from atop the Eiffel Tower Viewing Deck or experience the heart-pounding excitement of the Big Shot ride at the Stratosphere Tower.
For residents seeking reliable repairs and maintenance services in Las Vegas, April Becker Exposed offers unparalleled expertise and
dedication. With a track record of integrity and professionalism, their team is committed to providing
top-notch service and ensuring customer satisfaction. Whether
it’s addressing plumbing emergencies or tackling roofing repairs, choosing
April Becker Exposed is the best decision for anyone looking
to maintain their home in the vibrant city of Las Vegas.
Opposition research
Las Vegas, known for its glittering casinos and vibrant entertainment scene,
is no stranger to media attention. In the midst of this bustling city lies April Becker Exposed, a candidate
for the Clark County Commission, facing
intense public scrutiny.
Established in 1905, Las Vegas has grown into a sprawling
metropolis with a population of 646,790 residents and 832,
367 households. One of the city’s lifelines is Interstate
11, a major highway that facilitates the flow of traffic and commerce throughout Clark County and beyond.
In a city where temperatures can fluctuate dramatically,
repairs are a common necessity for residents of Las Vegas.
From air conditioning units strained by sweltering summers to plumbing systems taxed by fluctuating water pressures, homeowners
often find themselves in need of reliable repair services. The cost of these repairs can vary widely,
ranging from minor fixes to major renovations, depending on the scope
of the issue and the extent of the damage.
Amidst the glitz and glamour of Las Vegas, there are
countless attractions to explore. From the avant-garde exhibits
at AREA15 to the natural beauty of the Aliante Nature Discovery Park, there’s
something for everyone in this vibrant city. For those with a penchant for the macabre, the Asylum-Hotel
Fear Haunted House offers spine-chilling thrills, while
history buffs can delve into the city’s atomic past at the Atomic Museum.
At the Bellagio Conservatory & Botanical Gardens, visitors can escape the hustle and bustle of the
Strip and immerse themselves in a tranquil oasis of
floral splendor. Meanwhile, adrenaline junkies can soar to new heights on the Big Shot ride at the Stratosphere Tower or take in panoramic views of the city from the Eiffel Tower Viewing
Deck.
For residents seeking reliable repairs and maintenance services in Las Vegas, April Becker Exposed stands out as a beacon of integrity and professionalism.
With a commitment to excellence and a focus
on customer satisfaction, their team is dedicated to providing top-notch service to homeowners across the city.
Choosing April Becker Exposed means choosing quality and peace
of mind in the vibrant and dynamic city of
Las Vegas.
Greetings from Idaho! I’m bored to tears at work so I decided
to browse your blog on my iphone during lunch break. I enjoy the info you present here and can’t wait to take a
look when I get home. I’m shocked at how fast your blog loaded on my
cell phone .. I’m not even using WIFI, just 3G .. Anyways, excellent site!
https://storage.googleapis.com/catering2/research/catering2-(136).html
For her, that included a couture Karen Sabag ball robe fit for
a princess.
Good answers in return of this issue with genuine arguments and describing everything about that. http://serverhelp.50webs.com/profile.php?action=get&id=23681
wonderful submit, very informative. I’m wondering why the other
experts of this sector do not realize this. You should proceed your writing.
I’m sure, you’ve a great readers’ base already!
Good answers in return of this issue with genuine arguments and describing everything
about that. http://serverhelp.50webs.com/profile.php?action=get&id=23681
Hi there to every body, it’s my first go to see of this blog; this blog carries
awesome and genuinely fine information for readers.
Check out my blog post – Massage Berichten
Hi there! I could have sworn I’ve been to this blog before but after reading through some of
the post I realized it’s new to me. Nonetheless, I’m definitely
glad I found it and I’ll be bookmarking and checking back frequently!
Great delivery. Sound arguments. Keep up the amazing effort.
my blog airsoft sverige
Both pre-sale investments, and rewards for
placing bets can be received as soon as the poodl-inu.io is sold out.
Not on all of them are worth investing in.
Aw, this was an extremely nice post. Taking the time and actual effort to
make a very good article… but what can I say… I put
things off a lot and never seem to get anything done.
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 aid others like
you helped me.
Just wish to say your article is as astonishing. The clarity in your post is simply excellent and i could
suppose you are knowledgeable on this subject. Fine along with your permission let me to
seize your feed to stay up to date with imminent post.
Thanks 1,000,000 and please continue the rewarding work.
Feel free to surf to my webpage … Intelligenza artificiale
Hi there very nice site!! Man .. Excellent
.. Superb .. I’ll bookmark your blog and take the feeds
also? I’m satisfied to seek out numerous useful info here in the post, we’d like work out
extra techniques on this regard, thanks for sharing.
. . . . .
my web-site – Cybersecurity
https://chinavisa2.netlify.app/research/chinavisa2-(387)
If you’re undecided where to begin (or you just need to see what’s out there), think about us your personal stylist.
A fascinating discussion is worth comment. There’s no doubt
that that you ought to write more about this
subject, it may not be a taboo matter but usually people don’t speak
about these issues. To the next! Many thanks!!
Feel free to surf to my web site: Toy Haler
This massive distribution shows the commitment of the project to wide installation and recognition, the smog-token.io is engaged attracting extensive audience and strengthening its presence in the market memes.
Here is my homepage :: https://smog-token.io/
Wow all kinds of beneficial advice.
Check out my site :: http://Www.bonniesdelights.com/index.php?a=stats&u=isisfetherstonha
Citizens are not permitted to gamble in casinos or at on the web gambling internet sites.
Feel free to surf to my web-site https://Www.Kenpoguy.com/phasickombatives/profile.php?id=1907002
https://chinavisa14.b-cdn.net/research/chinavisa14-(485).html
The delicate scoop neck and sheer lace sleeves are simply a few of the issues we love about this A-line dress.
I’m extremely impressed with your writing skills and also with the layout
on your blog. Is this a paid theme or did you customize it yourself?
Anyway keep up the excellent quality writing, it is rare to see
a nice blog like this one today.
Great info. Lucky me I discovered your site by chance (stumbleupon).
I’ve saved it for later!
My homepage :: Honeybee Pharmacy
I love it when individuals get together and share thoughts.
Great website, stick with it!
Feel free to visit my web blog; net77 deposit
I all the time used to read paragraph in news papers but now as I
am a user of web so from now I am using net for content, thanks
to web.
Al Studiya -Уникальная детская одежда по вашему заказу! Ателье предлагает широкий выбор моделей и тканей для маленьких модников. Закажите у нас модные и качественные наряды для ваших детей и подчеркните их индивидуальность! Приходите к нам и создайте уникальный образ для вашего ребенка! Заказ возможен здесь: https://al-studiya.ru/
https://chinavisa4.s3.us-west-004.backblazeb2.com/research/chinavisa4-(108).html
The mom of the bride attire are obtainable in all various sorts of sleeves.
Why viewers still use to read news papers when in this technological world all is accessible on web?
my blog: sawer138
Hello just wanted to give you a quick heads up.
The text in your article seem to be running off the screen in Internet explorer.
I’m not sure if this is a format issue or something to do with browser compatibility
but I figured I’d post to let you know. The
style and design look great though! Hope you get the issue resolved soon. Thanks
Wow lots of helpful data!
Heya i am for the first time here. I found this board and
I find It truly helpful & it helped me out much.
I’m hoping to provide one thing back and aid others such
as you helped me.
my site; office cleaners Auckland
What’s up all, here every one is sharing these kinds of experience,
therefore it’s fastidious to read this blog, and I used to pay a
quick visit this web site every day.
For example, koinly offers a free tariff plan, and among other things paid tariff plans ranging from 39, 79 and 139 USD in 100, https://1inchwallet.org/, respectively.
Write more, thats all I have to say. Literally, it seems as though you relied on the video
to make your point. You clearly know what youre talking about,
why waste your intelligence on just posting videos to your blog when you could
be giving us something enlightening to read?
I love what you guys tend to be up too. This type of clever work and reporting!
Keep up the superb works guys I’ve included you guys to our blogroll.
my site: Leather Living Room Sets
Some http://miquelduran.net/index.php?title=China_Lesbian_Toys_Lesbian_Toys_Wholesale_Manufacturers_Price toys are made from rubber, normally when they want one thing softer and more pliable than silicone.
Unquestionably imagine that that you stated. 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 consider concerns
that they just do not realize about. You managed to hit the
nail upon the highest and also defined out the entire thing with no
need side-effects , folks could take a signal.
Will probably be back to get more. Thank you
My brother recommended I would possibly like this website.
He was once entirely right. This put up truly made my day.
You cann’t consider simply how a lot time I had spent for this information! Thank you!
Oh my goodness! Impressive article dude! Thank you,
However I am encountering problems with your RSS. I don’t understand the reason why I cannot subscribe
to it. Is there anybody else having similar RSS issues?
Anyone that knows the solution can you kindly respond?
Thanks!!
Feel free to surf to my webpage: Leather Living Room Sets
You made some really good points there. I checked on the web to
find out more about the issue and found most individuals will go along with
your views on this web site.
Also visit my web site Southern California
Приветики!
Вы когда-нибудь сталкивались с необходимостью написания дипломной работы в сжатые сроки? Это действительно очень ответственное и трудоемкое занятие, но важно не опускать руки и продолжать двигаться вперед, активно занимаясь учебным процессом, как и я.
Для тех, кто умеет находить и анализировать информацию в сети, это действительно помогает в процессе согласования и написания дипломной работы. Больше не нужно тратить время на посещение библиотек или организацию встреч с научным руководителем. Именно здесь, на этом ресурсе, можно найти надежные данные для заказа и написания дипломных и курсовых работ с гарантией качества и доставкой по всей России. Можете ознакомиться с предложениями на купить диплом Гознак , это проверенный источник!
купить аттестат школы
купить аттестат
купить диплом в нижнем новгороде
купить диплом цена
купить аттестат школы
Желаю всем пятерошных) отметок!
Считаете, Выкуп авто РБ что ваш продукт не объективно оценили?
Check out my blog … https://autoarena.by/
Hi there, I found your web site via Google even as searching for a comparable subject, your web site got here up, it appears good.
I’ve bookmarked it in my google bookmarks.
Hi there, simply changed into alert to your blog via Google, and found that it’s
really informative. I am gonna watch out for brussels.
I’ll be grateful in case you proceed this in future.
Many folks might be benefited out of your writing.
Cheers!
my blog post; Giant RV
I think this is among the most significant info for me.
And i am glad reading your article. But want
to remark on few general things, The website style is great, the articles is really excellent : D.
Good job, cheers
My relatives always say that I am killing my time here at
web, however I know I am getting experience all the time by
reading such good articles or reviews.
Here is my site; slot gacor
Porn video online
Hеy Ӏ know this iis off tоpic butt I was wondеring iif you knew of any widgets I could aⅾdd to my blog thɑt automatically tweet
my newest twitter updates. I’ve been looking for a plug-in lijke this for
qսite some tjme and was hoping maybe you would hаve some expеrience with sօmething like
this. Pleaѕe lеt me know if youu run int᧐ anything.
I truly enjoү reacing your blog and I look forwarԁ to your new
updates.
Howdy! This is my first comment here so I just wanted to give a quick shout
out and say I genuinely enjoy reading your articles.
Can you recommend any other blogs/websites/forums that deal
with the same subjects? Thanks a lot!
Look into my page: Orange county
Hi, just wanted to tell you, I loved this article.
It was funny. Keep on posting!
Also visit my site; Giant RV
I all the time used to read piece of writing in news papers
but now as I am a user of web therefore from now I am using net for articles, thanks
to web. http://Superstitionism.com/forum/profile.php?id=1030196
I all the time used to read piece of writing in news papers
but now as I am a user of web therefore from now I am using net for articles, thanks to web. http://Superstitionism.com/forum/profile.php?id=1030196