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
As reliance on third-social gathering APIs has grow to be a prominent
function of software program development, the affect of API updates has been investigated in a number of research
(Espinha, Zaidman, and Gross 2014; Hora
et al. Another IndieWeb developer who created a business service with
similar syndication options as Bridgy has written that reliance
on platform APIs had been an obstacle, particularly from a enterprise
perspective, “Back when I used to be engaged on Known, investors would ask in regards to the supplier threat of being so heavily dependent on third occasion APIs to supply loads of the core value. “, “Specific friends”, and “Only me.” Second,
at any time when a 3rd-occasion app reminiscent of Bridgy needs to access Facebook information, customers
should grant it permission. On this respect, the end result when Bridgy has misplaced
access to platforms demonstrates resilience of this
total approach. This has led to circumstances the place Bridgy fails
to course of content that is intended to be public if the privateness setting in Facebook’s API is
unclear. In Facebook’s API, photos themselves don’t possess a privacy standing.
However, despite the fact that Bridgy does little to enhance individuals’ privateness, it’s designed to avoid infringing upon existing privacy expectations.
código promocional Yobingo sin depósito casino online (penninemilitaria.Co.uk) real san javier
Adult video’s kijken op veilige en betrouwbare platforms.
Vind betrouwbare sites voor een premium ervaring.
Also visit my site buy penis enlarment medicine
top australian online pokies, united statesn roulette
wheel number order and casino in united states, or big uk slot wins
my site – How to apply for a gambling license
poker sites that accept paypal in united states, online poker in australia
legal and best marina bay sands singapore casino review site canada, or usa online casino no deposit bonus codes 2021
can i use td australia visa debit for online gambling, free
poker chips no deposit uk and dollar 5 deposit online Chance Of Getting Diamonds In The Casino Heist australia, or no deposit
bonus australian online casino
Hello! This is my 1st comment here so I just wanted to give a quick shout
out and tell you I truly enjoy reading your blog posts.
Can you suggest any other blogs/websites/forums that cover the same subjects?
Many thanks!
betrouwbaar casino genk
Have a look at my web page :: 75 ball Bingo minimum inzet
แทบไม่เคยสังเกตเรื่องแบบนี้.
My website: WY88 ออนไลน์
Nieuwste porno platforms bieden geavanceerde inhoud voor volwassenen. Kies voor betrouwbare frisse sites voor veilig kijken.
Here is my page; xanax seller
oddsbonus uten innskudd
Have a look at my page – Odds neste landslagstrener
Вау случайно наткнулся на такое количество
без цензуры полных версий порно!
Раньше никак не мог найти, а тут все проблемы решены.
Картинка профессиональная, актрисы на высшем уровне, возбуждает с первых минут.
Поделился с друзьями этот сайт.
Много контента. Любые категории
полных порнофильмов присутствуют.
Спасибо админу!
Here is my website; Порнофильмы
Hurrah, that’s what I was exploring for, what a
stuff! existing here at this weblog, thanks admin of this web page.
完整变性电影
blog topic
wettstrategien forum
Review my blog post: basketball punkte wetten
哇,天哪,真棒!终于找到这么多高质量完整版色情电影!
一直苦于找不到,现在终于解决大问题了!
视频质量非常专业,演员演技在线,根本把持不住!
强烈推荐这个站点,必须收藏!
资源多,更新快,种类全,各种类型不同口味的完整版色情电影都有!
希望站长继续加油,以后会常来!
Visit my page: 同性恋色情
bonanza slot volatility, top slot games uk and roulette australia
rules, or how much does a casino host get
paid (https://www.trudesojka.Museum/) with no deposit united kingdom
bonuses
free online slots new zealand, top paying online casinos canada
and online bingo usa, or no deposit casinomax casino no deposit codes (Monserrate) usa
Best gay porn sites offer high-quality
content for adult entertainment. Choose trusted platforms for a safe and enjoyable experience.
sportwetten ohne oasis legal
Feel free to surf to my web-site – Basketball Wetten erklärung
best united kingdom online casino sites, semyon dusaach blackjack and australian poker machine Online Casino Mit Google Play Guthaben, or paypal online casino uk
new zealandn online casinos pokies, apple pay economy proof Casinos australia and buy pokie machine usa, or top online pokies and casinos in united states 4k
For a night of excitement and enjoyment, choose from the
best Rawalpindi call girls, who provide premium services tailored to meet your desires.
Their charm and beauty ensure that your time together is filled with relaxation and unforgettable
memories.
Hello, Neat post. There’s an issue with your site in web explorer,
could check this? IE still is the market leader and a huge part of other folks will miss
your excellent writing due to this problem.
It is actually a nice and useful piece of info. I am
satisfied that you just shared this helpful information with us.
Please keep us up to date like this. Thanks
for sharing.
online uk bingo reviews, bet365 united statesn roulette tips and craps gambling
uk, or how to play pokies in canada
My web site … asheville nc cherokee casinos (Johnette)
What’s up friends, its wonderful article about teachingand fully explained, keep
it up all the time.
Seks is breed beschikbaar op speciale platforms voor volwassenen. Kies voor veilige sites voor veiligheid.
Here is my web blog; buy viagra
ladbrokes how far Is harrah’s casino from the french quarter
canada, united statesn online poker machines and crusader lvl 1 gambling, or casinos in united states online