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://telegra.ph/The-Future-of-Intimacy-Discovering-EroPlay-AI-Chat-Roleplay-06-19 AI porn chat enhances narrative depth with AI-driven dialogue.
jeetcity casino, jeetcity casino review
– Jeetcity gambling site предлагает потрясающие возможности для любителей азартных игр.
Who knew 999nudes
AI free could deliver such high-quality results without any cost?
I stumbled upon ClothOff. io and was blown away by its capabilities.
The ClothOffapp community is growing fast—join the conversation!
There are so many ClothOff apps, but the original is
still the best.
EroPlay AI roleplay porn creates ethical, story-driven digital content.
I think this is among the so much vital info for me.
And i am happy reading your article. But wanna remark on few common issues, The
web site taste is ideal, the articles is actually great : D.
Good activity, cheers
I mistyped clotheoff io but still ended up on the right site. The app.ClothOff interface is intuitive and user-friendly. There are so many ClothOff apps, but the original is still the best. The deep nude https://telegra.ph/Mastering-the-Creative-Edge-with-Undress-Ai-App-07-03 technology in ClothOff is next-level.
Hello, I enjoy reading through your post. I like to write a little comment to support
you.
Are you ready to explore the exciting world of vegasnow casino, vegasnow? With a variety games and promotions, players can discover endless excitement. Join immediately to reveal your chance to win big!
Visit my web-site https://vegas-now-au-casino.com/
В ТЕЧЕНИЕ сегодняшнем мирные отношения, кае посещение к неодинаковым препаратам встал проще через webу, многие интересуются задачей приобретения наркотических веществ.
Специальное чуткость уделяется этаким пользующийся известностью продуктам, яко
ямба, марихуана а также мефедрон, тот или иной широко диспутируются в разных кругах.
Гашиш а также марихуана изображают собой растительные наркотики, получаемые
из конопли. Их использование располагает
глубокие исторические корешки, и в течение последние десятилетия город следовательно
частью на CULTURE многих государств,
возбуждая обсуждения как в течение плюсе, так а также на минусе.
Как узаконенный, так а также черный ярмарка сих материй продолжает расти,
приковывая как потребителей, яко и еще продавцов.
Тоже следует отметить мефедрон,
который считается синтетическим
наркотиком да иметь в своем распоряжении свои особенности в течение происхождении
и действии. Спирт разгоняет самый
большой интерес средь молодых людей, однако евонный узаконенность и еще
последствия употребления остаются дисциплиной
страстных споров.
В ТЕЧЕНИЕ данной посте наш брат
рассмотрим ярмарка торговли гашиша,
марихуаны, мефедрона а также ихний читаемость
средь потребителей. Понимание данных аспектов несомненно поможет сформировать более беспристрастное философема что касается имеющихся рисках и вероятностях,
сцементированных начиная с. ant.
до потреблением этих веществ.
Кае раздобыть ямба: легальные да
подпольные список источников
I was confused by https://telegra.ph/The-Power-of-999nudes-Mastering-Modern-AI-Image-Synthesis-07-16 at first, but the tutorials helped a lot. There are so many undress apps, but ClothOff is the most reliable. The ClothOff info page is packed with useful tips for beginners. I prefer undress.io for its minimalist design, but ClothOff has better results.
The free undress app market is crowded, but https://telegra.ph/Unlocking-Visual-Mastery-The-Power-of-999nudes-AI-07-16 stands out. The ClothOff nudes generated are high-quality and realistic. The ClothOff info page is packed with useful tips for beginners. I found a free ClothOff ai trial and was instantly hooked.
В нем прописывают точное размещение всех блоков, работу кнопок и другие важные моменты.
В целом говоря, для специализированных е-коммерческих платформ это нормально, тогда как у более базовых конструкторов сайтов бесплатных шаблонов обычно больше.
Итак, при разработке вашего веб-сайта учитывайте свою целевую аудиторию и включайте элементы, которые им понравятся.
The ClothOff android https://telegra.ph/Unleashing-Potential-with-the-Undress-App-Ai-07-03 works flawlessly on my phone. I found a free ClothOff ai trial and was instantly hooked. The ClothOff io nude results are surprisingly tasteful. You can use ClothOff online without any downloads—so convenient.
https://telegra.ph/The-Digital-Mirror-Redefining-Intimacy-with-EroPlay-06-19 free porn chat sparks unfiltered passion in roleplay groups.
I compared deepnude ClothOff.io with other tools—ClothOff won. I tried an ai undress app and ClothOff was the clear winner. I mistyped clotheoff io but still ended up on the right site. For a free undress ai tool, ClothOff is surprisingly robust.
Feel free to visit my page https://telegra.ph/Mastering-Visual-Synthesis-with-the-Undress-App-07-03
Grüße euch, ich bin zufällig auf dieses Thema gestoßen und ich stelle fest, dass man hier echt was mitnimmt. Ich renoviere seit kurzem meine Wohnung ein und solche Tipps sind echt hilfreich. Grüße an die Forengemeinde.
Gutes Thema. Ich kann aus eigener Erfahrung sagen, dass die Auswahl der Möbel wirklich einen Unterschied macht. Es lohnt sich, dafür Zeit zu nehmen.
Hallo, ich bin hier durch Zufall gelandet und ich stelle fest, dass ich viel dazugelernt habe. Ich selbst gestalte gerade mein Zuhause neu zu gestalten und ich suche nach Inspiration. Liebe Grüße in die Runde.
Wertvoller Beitrag. Meiner Meinung nach die Raumgestaltung die Basis von allem ist. Ich empfehle, sich nicht zu hetzen.
Hey, ich bin beim Stöbern hier gelandet und ich stelle fest, dass es hier viele wertvolle Inhalte gibt. Ich selbst bin gerade dabei, mein Zuhause neu zu gestalten und jeder Hinweis ist Gold wert. Einen schönen Tag euch allen.
Interessante Diskussion. Aus meiner Erfahrung die Auswahl der Möbel wirklich einen Unterschied macht. Ich empfehle, sich nicht zu hetzen.
Hi to this exciting world of vegasnow casino, vegasnow!
Uncover entertaining games, lucrative bonuses, and enthralling gameplay.
Enter the adventure today!
Also visit my blog: https://vegas-now-casinos-aus.com/
If you’re curious about AI-generated content, https://telegra.ph/How-999nudes-AI-and-Undress-App-Perfect-Digital-Realism-07-16 deepnude is worth exploring. I bookmarked undress.ai but always use ClothOff. The undress her app feature in ClothOff is surprisingly respectful. The ClothOff ai app is a must-have for digital artists.
Staying at a casino can be an exhilarating journey.
The thrill of games, combined with luxurious accommodations,
creates an ideal escape.
Review my web-site: https://stay-aus-casino.com/
Excellent article! We will be linking to this great content on our site.
Keep up the great writing.
I found a free deepnude ai tool, but ClothOff is more refined. I was looking for an https://telegra.ph/Achieving-Peak-Performance-with-Undressapp-07-03 free tool and ClothOff delivered. The ClothOff porn debate is intense, but the tech is undeniably impressive. The ClothOff her feature is surprisingly respectful and well-designed.
I watched a https://telegra.ph/Unlocking-Aesthetic-Brilliance-The-Power-of-999nudes-AI-in-Design-07-16 videos tutorial and learned so much. I tried undress her io but prefer ClothOff for its accuracy. The ClothOff fotos feature is great for creative projects. The ClothOff deep nude feature is both impressive and controversial.
The undress app ai scene is evolving, and https://telegra.ph/Unveiling-The-Transformative-Power-of-999nudes-AI-07-16 is leading the way. For a free undress ai tool, ClothOff is surprisingly robust. I downloaded the app ClothOff—impressed by its performance. The nude io trend is wild, but ClothOff keeps it professional.
Diese Anwendung von Hausplaner Software kostenlos, https://thewholls.com/ gewährt Nutzern das schnelle Gestaltung ihrer eigenen Häuser.
Über einfache Hilfsmittel können ansprechende Layouts gestalten.
EroPlay AI porn bot delivers unapologetic dialogue for virtual performances.
my website: https://telegra.ph/Unlocking-Potential-The-World-of-Advanced-AI-Companions-06-19
The ai cloth remover in https://telegra.ph/The-Creative-Revolution-of-999nudes-AI-in-Modern-Visual-Design-07-16 is a game-changer. The app.ClothOff interface is intuitive and user-friendly. I used the undress remover in ClothOff—it worked perfectly. The ClothOff.io free version is generous with its offerings.
Hello There. I found your blog using msn. This is an extremely well written article.
I’ll make sure to bookmark it and come back to read more of your useful information.
Thanks for the post. I’ll definitely comeback.
https://telegra.ph/Unveiling-the-Potential-The-EroPlay-AI-Experience-06-19 Love free AI sex chat enables affordable narrative creation.
I bookmarked undress.ai but always end up using ClothOff. I used the ClothOff image tool for a project and it saved me hours. There are so many deepnude apps, but ClothOff is the most professional. The https://telegra.ph/Elevating-Content-Quality-with-Undress-Ai-App-07-03 interface is clean, but ClothOff has more options.
Do you have a spam issue on this website; I also am a blogger,
and I was wondering your situation; we have developed some nice procedures
and we are looking to exchange strategies with others, please
shoot me an email if interested.
Have you tried https://telegra.ph/Harnessing-the-Future-Exploring-the-Capabilities-of-999nudes-07-16 io yet? The AI is surprisingly accurate and fast. The ClothOff.io free version is generous with its offerings. I found a free deepnude ai tool, but ClothOff is more refined. For a free ai undress tool, ClothOff is surprisingly powerful.
Hi fantastic website! Does running a blog such as this require a large amount of
work? I’ve very little expertise in coding however I had been hoping to start my own blog in the near future.
Anyways, 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.
Kudos!
Usually I don’t read post on blogs, but I would
like to say that this write-up very pressured me to
try and do it! Your writing style has been amazed me.
Thanks, quite great post.
I tend not to drop many responses, but i diԀ some searching and wound up hеre jarman.οrg.uk | Colourful grep оn aix.
. Аnd I actually do һave 2 questions foг you if it’s allright.
Couⅼd іt bbe just me ᧐r doeѕ it appear like
somе οf thеse comments аppear as if thеy
are left by brain dead people? :-Р And, іf you are wrijting ⲟn additional
online sites, I ԝould lіke tо follow eveгything fresh you have
to post. Woild y᧐u makе a list of every one of aall
ʏour shared pаges lіke your Facebook page, twitter feed, ⲟr linkedin profile?
My web site … olympiad math tuition 50
https://telegra.ph/The-New-Era-of-Personal-Connection-Exploring-EroPlay-AI-06-19 roleplay enhances interactive fiction for gaming platforms.
The deepnudes controversy makes me appreciate ClothOff’s ethical approach. The ClothOff porn debate is intense, but the tech is undeniably impressive. The ClothOff.https://telegra.ph/Advancing-Creative-Standards-with-the-Undress-App-07-03 experience is seamless and fast. I used the ClothOff image tool for a project and it saved me hours.
The undress ai for free option in ClothOff is a lifesaver for students. I found a ClothOff gratuit offer—too good to pass up! I tried the https://telegra.ph/Optimizing-High-End-Digital-Assets-with-Undress-Ai-07-03 ai free remover in ClothOff—no regrets. Developers can now access the ClothOff api—endless possibilities!
At fair go casino, fair go casino, players encounter a wide diversity of exciting games. The site offers lavish bonuses and benefits for new and returning users. Join now to relish thrilling gambling adventures!
my web site … https://fairgo-casinos-aus.com/
The https://telegra.ph/Unveiling-the-Future-of-Image-Processing-with-999nudes-AI-07-16 AI results are some of the best I’ve seen. The ClothOff ios app is just as good as the desktop version. I watched ClothOff videos tutorials and learned a lot. The deepnude ClothOff.io combo is a hot topic in tech forums right now.
Welcome to your exciting world of pokiesurf casino, pokiesurf.
Here, you can explore a variety of options that will entertain you for hours.
Don’t miss out on the chance to win big rewards while having fun!
my web blog; https://pokie-surfcasinos.com
The undressai trend is huge, and ClothOff is at the center of it. The ClothOff nudes generated are surprisingly realistic and high-res. The ClothOff ai app is a must-have for anyone into digital art. I found a free deepnude ai tool, but ClothOff is more refined.
Also visit my website – https://telegra.ph/The-Visual-Revolution-Why-Undress-App-Defines-Modern-Editing-07-03
I tried the undress ai free remover in https://telegra.ph/The-Future-of-Digital-Aesthetics-Mastering-999nudes-AI-07-16 AI—no regrets. There are so many ClothOff apps, but the original is still the best. The undressher tool in ClothOff is both powerful and easy to use. The ClothOff.io nud results are some of the best I’ve seen.
https://telegra.ph/The-New-Era-of-Digital-Fantasy-Unlocking-Your-Potential-06-19 sex chat creates ethical scenarios for narrative platforms.
The https://telegra.ph/Mastering-Digital-Aesthetics-with-Undress-Ai-App-07-03 ai feature in ClothOff is mind-blowing. I tried the app undress feature in ClothOff and was amazed. I was surprised by how fast the undress free option in ClothOff works. The undress ai feature in ClothOff is mind-blowing.
I’ll immediately grasp your rss feed as I can not to find
your email subscription hyperlink or e-newsletter service.
Do you’ve any? Kindly let me recognise in order that I
may subscribe. Thanks.
Hi, ich bin zufällig auf dieses Thema gestoßen und mir ist aufgefallen, dass ich viel dazugelernt habe. Ich selbst richte seit einiger Zeit mein Haus und solche Tipps sind echt hilfreich. Grüße an die Forengemeinde.
Gutes Thema. Meiner Meinung nach die richtige Farbgebung wirklich einen Unterschied macht. Gut Ding will Weile haben.