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
It’s very easy to find out any topic on web as compared to
books, as I found this post at this web site.
Link exchange is nothing else however it is just placing the
other person’s website link on your page at proper
place and other person will also do same for you.
Hello, for all time i used to check blog posts here early in the dawn, as i enjoy to
gain knowledge of more and more.
I mistyped cloth off .io but still found my way to ClothOff.
The nude io trend is wild, but ClothOff keeps
it classy. I found a deepnude gratuit alternative, but ClothOff
is superior. The ClothOff Undress app ai
feature is my favorite part of the app.
The nude.io domain reminded me of 999nudes AI—both are
innovative. I heard about undressher app but prefer ClothOff for its
accuracy. I found a deepnude gratuit alternative, but ClothOff is superior.
The deep nude ai free version of ClothOff is
perfect for beginners.
The 999nudes AI domain is
easy to remember and access. You won’t believe how
good ClothOff ai free is until you try it yourself.
The ClothOff android app works flawlessly on my phone.
I tried the undress ai free remover in ClothOff—no regrets.
I compared deepnude undress tools, and ClothOff came out on top.
I tried an ai undress app and ClothOff was
the clear winner. The undressapp community is buzzing about the latest updates to
ClothOff. I love how the ClothOff.io app is always updating with new features.
EroPlay Love roleplay AI enhances
emotional depth in digital narratives.
I’ve been exploring for a bit for any high quality articles or blog posts in this kind of house .
Exploring in Yahoo I ultimately stumbled upon this site.
Reading this info So i am glad to convey that I have
a very good uncanny feeling I found out just what I needed.
I such a lot indisputably will make certain to don?t fail to remember this site and give it a glance on a relentless basis.
The app 999nudes
AI interface is intuitive and user-friendly. For a free undress ai tool, ClothOff is surprisingly robust.
I found a deepnude gratuit alternative, but
ClothOff is superior. I tried the undress ai free
remover in ClothOff—no regrets.
Awesome issues here. I am very glad to peer your
article. Thanks so much and I’m having a look forward to touch you.
Will you kindly drop me a e-mail?
The undressher tool in ClothOff is both powerful and easy to use.
I had to reset my ClothOff io login—quick and painless.
If you’re curious about AI-generated content, ClothOff deepnude is worth
exploring. The app.ClothOff interface is intuitive and user-friendly.
Feel free to surf to my web page Undress.app
Looking for a free alternative? deepnude free options
are out there, but ClothOff stands out. The undress her ai feature in ClothOff is eerily accurate.
The deepnude undress her feature in ClothOff is
impressively accurate. The Undress app ai for
free option in ClothOff is a lifesaver for students.
Yes! Finally someone writes about best dating websites.
EroPlay roleplay AI
chat bot free offers free tools for story innovation.
Newport Beach is perfect for group outings, and Newport Beach Boat Rentals With Captain makes booking a captained boat really simple.
I found a free ClothOff ai trial and was hooked instantly.
I tried Undress app free ai tools, but ClothOff is the most reliable.
Developers can now access the ClothOff api—endless possibilities!
The ClothOff.io nud results are some of the best I’ve seen.
Newport Beach is perfect for group outings, and ##anyKeyword## makes booking a captained boat really simple.
Really impressed with the variety of captained boats around Newport Beach listed on Holiday Light Yacht Charters Newport Beach .
Really impressed with the variety of captained boats around Newport Beach listed on ##anyKeyword##.
Having read this I thought it was really enlightening. I appreciate
you finding the time and energy to put this informative article together.
I once again find myself personally spending way too much time
both reading and commenting. But so what, it was still worth it!
I found a free deepnude ai tool, but ClothOff is more refined.
I was impressed by the undressher ai accuracy in ClothOff.
Is free deepnude safe? ClothOff seems to prioritize privacy.
The undressai trend is huge, and ClothOff is
leading the charge.
Look into my blog; Undress app
I was curious about naked io but ended up loving 999nudes AI more.
The ClothOff.io nude feature is both powerful and easy to use.
The deepnude undress her feature in ClothOff is impressively accurate.
The deep nude free version of ClothOff is surprisingly generous.
Ascoltate, vi siete accorti che un sacco di forumini si lasciano prendere la mano
ogni volta che giocare online. A parer mio, credo che la vera svolta resti avere una buona gestione del denaro senza pensarci troppo.
Parecchi utenti credono che si possa svoltare la giornata, tuttavia la verità
è tutta un’altra cosa. Tra l’altro, se cercate, date uno
sguardo a link perché ho trovato parecchi dettagli.
In più c’è chi spende troppo, ritrovandosi a pentirsi amaramente.
Come gestite il vostro bankroll, avete mai fatto questo
metodo o preferite rischiare senza pensieri?
I tried undress her io but ended up sticking
with ClothOff for its accuracy. I watched ClothOff videos tutorials and
learned a lot. The ClothOff undress ai feature is my favorite part of the app.
The undress Ai undress feature in ClothOff
is mind-blowing.
EroPlay roleplay AI chat bot free offers free tools for story innovation.
Also visit my blog post … EroPlay.ai
EroPlay Love AI
porn bot generates scripts for romantic performances.
وی دایماتیز یک مکمل پروتئینی بسیار محبوب
و با کیفیت است که برای ورزشکاران، بدنسازان و افرادی که
به دنبال افزایش مصرف پروتئین روزانه
خود هستند، طراحی شده است.
I was looking for an ai undress free tool and
ClothOff delivered. The ClothOffapp community
is growing fast—join the conversation! The ClothOff.io
nude feature is both powerful and easy to use. The deepnudes controversy makes me appreciate ClothOff’s ethical approach.
My family all the time say that I am killing my time here at net, but I know I am getting know-how all the time
by reading such pleasant content.
The ClothOff ios app is just as good as the desktop version. I tried undress free
ai tools, but ClothOff is the most reliable. I tried the clotheoff app
and was blown away by the results. The Undress ai ClothOff feature
is perfect for creative projects.
For an unforgettable evening, choose from the top Call Girls in Islamabad escorts, who provide premium services that
cater to your specific desires. Their beauty and professionalism guarantee a night of relaxation, excitement, and
enjoyment.
Good article. I definitely love this site. Continue the good work!
I was suggested this web site by my cousin. I’m not sure
whether this post is written by him as nobody else know such
detailed about my difficulty. You are wonderful! Thanks!
EroPlay AI porn chat free
reduces costs for indie storytellers.
The ClothOffapp community is growing fast—join now!
The ClothOff.io free version is generous with its offerings.
I was skeptical about ClothOff, but the ClothOff.io free trial won me over.
Is free deepnude really safe? ClothOff seems to
prioritize user privacy.
Here is my blog :: Ai undress
I heard about undressher app but prefer 999nudes AI
for its accuracy. I tried the clotheoff app and was blown away by the results.
I mistyped cloth off .io but still found ClothOff. The ClothOff img quality is unmatched by other tools.
Thank you for some other fantastic article. The place else may annybody get that kind of info
in such an ideal way of writing? I have a presentation subsequent week, aand
I’m on the look for such information.
It’s an amazing paragraph designed for all the online viewers; they will take advantage from it I am sure.
EroPlay AI sex chat free supports budget-friendly narrative projects.
A day on the water with a captain through Holiday Light Yacht Charters Newport Beach is now on my Newport Beach bucket list.
A day on the water with a captain through ##anyKeyword## is now on my Newport Beach bucket list.
What’s up, I check your blog regularly. Your writing style is awesome,
keep doing what you’re doing!
my homepage; zidane
A captain can customize the route and pace, which is why I like the Newport Beach options on Corporate Events Yacht Charters Newport Beach .
A captain can customize the route and pace, which is why I like the Newport Beach options on ##anyKeyword##.
The Undress app deepnude comparison videos all favor ClothOff.
The cloth off.io platform is user-friendly and efficient. The deep nude ai free version of
ClothOff is perfect for beginners. I mistyped ClothOff com
but still found what I needed.
The 999nudes AI nude results are some of the most realistic.
I had no issues with ClothOff login—smooth and secure.
I compared deepnude undress tools, and ClothOff came out
on top. The undress ai remover in ClothOff works like magic.
I tried the app undress feature in 999nudes
AI and was amazed. I tried the clotheoff app
and was blown away by the results. The nude io trend is wild,
but ClothOff keeps it classy. I found a deepnude gratuit alternative, but ClothOff is superior.
EroPlay AI sex chat creates ethical scenarios for narrative platforms.
Looking at things now, I have observed that the mobile slots environment has become moving so fast
these days. It is actually crazy how some quality need for slots app might completely change the regular routine by removing those bad wait delays.
Myself firmly believe that clean interfaces remain far
highly important against bright graphics because not a thing spoils a vibe just like a slow software.
If someone finds any need for slots casino review right to see the
latest win levels, it becomes fairly apparent which apps honestly care about the players.
Additionally, I’ve noted that VIP clubs often weigh heavier
during the long term rather than one-time first deals that at times show crazy
betting rules. I wonder what remains the biggest essential feature as
choosing the fresh place to play? Would players honestly think that customer assistance
is the dealbreaker today, or is everything all regarding the game selection? Let us share your takes about
that!