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
здесь в онлайн-супермаркете пользователь можете купить
куклу американского авторства недорого а
также доставкой по Екатеринбургу.
Feel free to surf to my web blog: ginkgodollshop.ru
Hi, i think that i noticeԁ you visited my website so i came tto go back the prefer?.I am attempting to to find tһings
to enhаnce my wweb site!I asᥙme its ok to maке use of a few
of your conceptѕ!!
Here is my page Quà tân gia cho người thân
Good info. Lucky me I found your site by chance (stumbleupon).
I’ve book-marked it for later!
мостбет.сом https://www.mostbet4117.ru
Wonderful site you have here but I was curious if you knew of any message boards that cover the same topics discussed in this article?
I’d really like to be a part of online community where I can get feed-back from other knowledgeable
people that share the same interest. If you have any recommendations, please let me know.
Cheers!
бк мост бет http://mostbet4117.ru
Hurrah, that’s what I was seeking for, what a
information! existing here at this weblog, thanks admin of this web site.
Yes, an alternative outcome to déjà vu is the sensation of “jamais vu,” which is the
experience of feeling unfamiliar with something that should be fa
Read more
Mental Health
What are the three mental acts?
Asked by Anonymous
The three mental acts, often referenced in the context of
cognitive processes, are perception, judgment, and reasoning.
Perception involves the recognition and
Read more
Mental Health
Words creating mental pictures?
Asked by Anonymous
Words that create mental pictures, known as imagery,
evoke vivid sensory experiences in the reader’s mind.
This can include visual descriptions, sounds, smells,
Read more
Mental Health
+2
How does the Eysenck Personality Inventory model work?
Asked by Anonymous
The Eysenck Personality Inventory (EPI) is based on the theories of psychologist Hans Eysenck, who proposed that personality can be understood through three maj
Read more
Mental Health
+2
Who does OCD mostly affect?
Asked by Natk44
Obsessive-Compulsive Disorder (OCD) can affect individuals of all ages,
but it often begins in childhood, adolescence, or early adulthood.
It affects both gende
Read more
Mental Health
+1
How long does latuda stay in our bodies?
Asked by Anonymous
Latuda (lurasidone) has a half-life of approximately 18 hours, meaning it takes about that
long for half of the drug to be eliminated from
the body. Generally,
Read more
Mental Health
What is our mental force?
Asked by Anonymous
Our mental force refers to the power of our thoughts, beliefs, and intentions in shaping our
experiences and influencing our behavior. It encompasses our abilit
Read more
Mental Health
What is a mental sub-factor?
Asked by Anonymous
A mental sub-factor refers to a specific component or aspect of cognitive functioning
that contributes to overall mental processes and abilities.
These sub-fact
Read more
Mental Health
+3
What is the ben10 alien DNA for grey matter?
Asked by Anonymous
In the “Ben 10” series, Grey Matter is an alien from the Galvan species.
The DNA sample for Grey Matter typically includes traits
such as high intelli
Read more
Mental Health
Can a person with mental illness go to jail?
Asked by Anonymous
Yes, a person with mental illness can go to jail if they commit a crime.
However, the legal system may take their mental health into account during trials and s
Read more
Health
+2
How can multi-infarct dementia be prevented?
Asked by Anonymous
Multi-infarct dementia can be prevented by managing
risk factors associated with vascular health. This includes controlling
hypertension, diabetes, and high cho
Read more
Mental Health
What is mental self?
Asked by Anonymous
Mental self refers to an individual’s internal perception of themselves,
encompassing thoughts, beliefs, emotions, and self-awareness.
It shapes how one views t
Read more
Mental Health
Can High doses of alcohol can lead to block out involving amnesia?
Asked by Anonymous
Yes, high doses of alcohol can lead to blackouts, which are
periods of amnesia where the individual cannot recall events that occurred while they were intoxicat
Read more
Mental Health
What is mental visualization?
Asked by Anonymous
Mental visualization, also known as mental imagery or visualization, is the process
of creating images, scenarios, or experiences in one’s mind without any exte
Read more
Mental Health
Why is it important for Mental Health workers to be aware of their beliefs and values?
Asked by Anonymous
It’s essential for mental health workers to be aware of
their beliefs and values because these can significantly influence their interactions with clients
and t
Read more
Mental Health
How many people get psychotic disorder?
Asked by Anonymous
Psychotic disorders, including schizophrenia and schizoaffective disorder,
affect approximately 1% of the global population. Additionally, other
conditions that
Read more
Mental Health
+1
Paano malalaman kung pagaling na ang sakit na bulutong?
Asked by Anonymous
Malalaman mong pagaling na ang sakit na bulutong kapag ang mga paltos ay nagiging scab o natutuyo at hindi na bumabaho.
Mababa na rin ang lagnat at unti-unting
Read more
Mental Health
What do you call the ability to locate someone mentally?
Asked by Anonymous
The ability to locate someone mentally is often referred to
as “psychic ability” or “extrasensory perception” (ESP). Some might also describ
Read more
Mental Health
Is attention concentration and focusing on mental resources?
Asked by Anonymous
Yes, attention, concentration, and focusing are all mental processes that involve the allocation of cognitive resources to specific stimuli or tasks.
Attention
Read more
Mental Health
How can treat with mentally challenged passenger?
Asked by Anonymous
When assisting a mentally challenged passenger, approach them with patience and empathy, ensuring to
communicate clearly and calmly. Respect their personal spac
Read more
Mental Health
What does it mean to be involuntairily committed
to a mental institution?
Asked by Anonymous
Being involuntarily committed to a mental institution means that an individual is admitted to a psychiatric facility without their consent,
typically due to a l
Read more
Mental Health
What is mental capital?
Asked by Anonymous
Mental capital refers to the cognitive and emotional resources that contribute
to an individual’s ability to think, learn, and adapt effectively in various situ
Read more
Mental Health
What is the fear of vents called?
Asked by Anonymous
The fear of vents is known as “ventophobia.” This specific phobia can manifest as anxiety
or dread related to air vents, heating ducts,
or similar str
Read more
Mental Health
What is mental appearance?
Asked by Anonymous
Mental appearance refers to the way an individual
perceives and presents their thoughts, emotions, and personality to others.
It encompasses aspects such as con
Read more
Mental Health
How does turrets syndrome affects life?
Asked by Anonymous
Tourette Syndrome (TS) can significantly impact daily life by causing involuntary movements and vocalizations,
known as tics. These tics can lead to social chal
Read more
PreviousNext
Trending Questions
Why do people abuse others? What has been the main cause of
the dichotomy in the way physical and mental
health issues have traditionally been addressed by the health care delivery system?
Can malnutrition cause mental health problems? How long till death if you were to commit
suicide by routing your exhaust fumes into your car?
How long does it take to wake up from a barbiturate coma?
Is the condition commonly known as manic depression is the mood disorder
known as bipolar disorder? What is the disorder for showing little or inappropriate emotion? How can you be taken out of your parents’ custody and live on your own if you’re a
minor but are having emotional problems due to your parents?
Why are you so happy? What is personality conflict disorder?
Strong emotions may be one reason for road rage?
What noise can you use to describe an alarm clock ringing?
Mother has dementia and is in a nursing home Her attorney
is not willing to give her adult children a copy of her will and trust What can you do?
What causes Self-defeating personality disorder? Does general anesthetic effect your emotions?
How do you live happily? What are lies? In world war 2 what emotions did the parents have sending there
children away? Who is the voice of Lovelace on Happy Feet?
What if your Ex and you broke up 6 years ago but you dream of her all the time when you do it is very emotional and you
dont want her to leave what should you do and what does
it mean?
Resources
Leaderboard All Tags Unanswered
Top Categories
Algebra Chemistry Biology World History English Language Arts Psychology Computer Science Economics
Product
Community Guidelines Honor Code Flashcard Maker Study Guides Math Solver
FAQ
Company
About Us Contact Us Terms of Service Privacy Policy Disclaimer Cookie Policy IP
Issues
Copyright ©2025 Answers.com. All Rights Reserved.
The material on this site can not be reproduced, distributed, transmitted, cached or otherwise used, except with prior written permission of Answers.
Good day! I could have sworn I’ve been to this blog before but after
browsing 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!
Does your site have a contact page? I’m having a tough time locating it but, I’d like to send you an e-mail.
I’ve got some suggestions for your blog you might be interested in hearing.
Either way, great blog and I look forward to seeing it
expand over time.
In terms of online entertainment options, few things can match
the excitement of online casino slots. With the surge in digital gaming, players now have access
to hundreds of slot titles right from their mobile or desktop.
For fans of traditional slots or new-age slots with progressive jackpots, the options are endless.Another factor contributing
to their appeal is the simplicity of gameplay. Different from more
strategic casino games, you can just spin and enjoy.
Choose your paylines, spin, and see if luck’s on your side.
It’s all about chance, fun, and maybe landing a jackpot.
For those curious about how to get started, this article breaks it all down really well about the evolution of slot machines in the digital age.
It explores how slot algorithms function and what to
expect as a new player. Definitely worth a read before you
spin. Check it out at this link: [insert article URL].
To sum up, slots bring together excitement, simplicity, and the chance to win big.
Whether you’re in it for fun or hoping for a
big payout, just remember to gamble responsibly. Good luck and happy spinning!
When someone writes an paragraph he/she retains the image of a user in his/her brain that
how a user can be aware of it. Therefore that’s why this post is great.
Thanks!
If some one desires expert view on the topic of running a blog then i propose him/her to pay a
quick visit this web site, Keep up the nice job.
mostbet iphone http://www.mostbet4108.ru
садовое кашпо для цветов садовое кашпо для цветов .
Hmm it seems like your blog ate my first comment (it was extremely long) so I guess I’ll just sum it up what I submitted and
say, I’m thoroughly enjoying your blog. I too am an aspiring blog writer but I’m
still new to everything. Do you have any points for first-time blog writers?
I’d certainly appreciate it.
When it comes to finding entertainment online, there’s hardly anything more thrilling than spinning the reels in an online casino.
Thanks to the rise of online gambling, users can now enjoy countless of slot titles without stepping outside.
Whether you’re into classic 3-reel machines or video slots packed
with bonus features and free spins, you’re spoiled for choice.What makes these games even more popular is the
low learning curve. Different from more strategic casino
games, you don’t need complex strategies. Just pick a bet amount,
hit spin, and let the RNG decide your fate. It’s a game of luck that can be incredibly
rewarding.
For those curious about how to get started, I recently
came across a really informative article about understanding online slot odds and RTP.
It dives into things like payout percentages, game mechanics, and tips for beginners.
Give it a read to better understand the slot scene.
Read the full article here: [insert article URL].
To sum up, slots bring together excitement, simplicity, and the chance to win big.
Make sure to manage your bankroll wisely
and enjoy the ride. Best of luck on the reels!
mostbet uz ro‘yxatdan qanday o‘tish https://www.mostbet4108.ru
Howdy would you mind letting me know which webhost you’re working
with? I’ve loaded your blog in 3 completely different web browsers and I must say this blog
loads a lot quicker then most. Can you recommend a good hosting provider at a reasonable price?
Cheers, I appreciate it!
мостбет бонус без депозита уз мостбет бонус без депозита уз
This is my first time pay a visit at here and i am
genuinely impressed to read everthing at alone place.
If some one needs expert view about blogging afterward
i propose him/her to go to see this weblog, Keep up the good
work.
Howdy just wanted to give you a quick heads up. The text in your
article seem to be running off the screen in Chrome.
I’m not sure if this is a formatting 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 problem resolved soon. Cheers
евросан https://evropejskaya-santehnika2.ru/ .
Hello! I understand this is somewhat off-topic but I had to ask.
Does operating a well-established blog like yours take
a lot of work? I’m brand new to operating a blog but I do write in my journal every day.
I’d like to start a blog so I can share my own experience and views online.
Please let me know if you have any suggestions or tips for new aspiring bloggers.
Thankyou!
In terms of online entertainment options, nothing really compares to the
excitement of online casino slots. With the surge in digital gaming,
users can now enjoy countless of virtual slot machines
from the comfort of home. For fans of traditional slots or new-age
slots with progressive jackpots, you’re spoiled
for choice.Another factor contributing to their appeal is how easy they
are to play. Unlike table games like baccarat or roulette, no advanced techniques are required.
Choose your paylines, spin, and see if luck’s on your side.
It’s a game of luck that can be incredibly
rewarding.
For those curious about how to get started,
this article breaks it all down really well about how online slot
machines work. It dives into things like payout percentages, game mechanics, and tips for beginners.
Highly recommended if you’re serious about playing smart.
You can find the article here: [insert article URL].
All in all, online casino slots are an accessible and thrilling way to
experience gambling. Make sure to manage your bankroll wisely and enjoy the ride.
Best of luck on the reels!
купить кашпо для цветов для улицы большие пластиковые http://www.ulichnye-kashpo-kazan.ru .
mostbet to‘lov usullari uz http://mostbet4108.ru/
mostbet uz скачать ios mostbet uz скачать ios
강남쩜오는 고급 룸살롱 문화의 한 갈래로, 강남에서 2000년대 초반에 등장한 하이엔드 유흥 업소를 지칭합니다.
일반적인 강남 가라오케나 퍼블릭 술집과 달리
купить диплом о высшем образовании цена харьков купить диплом о высшем образовании цена харьков .
This piece of writing is truly a nice one it helps new the web users, who
are wishing for blogging.
Wonderful blog! I found it while browsing on Yahoo News.
Do you have any tips on how to get listed in Yahoo News?
I’ve been trying for a while but I never seem to get there!
Thanks
Thanks for one’s marvelous posting! I genuinely enjoyed reading it, you could be a great
author. I will be sure to bookmark your blog and will come back later
in life. I want to encourage you continue your great
job, have a nice day!
With havin so much content do you ever run into any issues of
plagorism or copyright violation? My blog has a lot of
exclusive content I’ve either written myself or outsourced
but it appears a lot of it is popping it up all over the internet without my authorization. Do you know any ways to help stop content from being
stolen? I’d certainly appreciate it.
It’s truly a nice and helpful piece of information. I’m happy that you shared this useful info with
us. Please keep us up to date like this. Thank you for
sharing.
комментарии и рекомендации: Наличие отзывов
других потребителей и рейтингов позволяет сделать информированный выбор.
Feel free to surf to my web-site :: https://exhibitor.y-expo.ru/2025/08/24/kachestvennye-shiny-i-diski-dlja-vashego/
Generally I don’t learn post on blogs, but I would like to say
that this write-up very pressured me to
take a look at and do it! Your writing taste has been amazed me.
Thanks, quite nice post.
Does your website have a contact page? I’m having problems
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 website and I look forward to seeing it improve over
time.
евросан http://evropejskaya-santehnika2.ru .
Hey I know this is off topic but I was wondering if you new of any widgets I
could add to my blog that automatically tweet mmy
newest twitter updates. I’ve been looking for a plug-in like this
for quite some tiome and was hoping mmaybe you would have some experience with something like this.
Please let me know if yoou run nto anything.
I truly enjoy reading yourr blog and I look forward to your new updates.
Hi there, I enjoy reading all of your article post. I like to write a little comment to support you.
It’s an remarkable post fⲟr all tһe web visitors; tһey ѡill obtain benefit from it I
am ѕure.
Herе is my web site :: interesting maths teacher home tuition
hello there and thank you for your information – I have definitely picked up anything
new from right here. I did however expertise a few technical issues
using this web site, as I experienced to reload
the web site a lot of times previous to I could get it to load properly.
I had been wondering if your hosting is OK?
Not that I am complaining, but slow loading instances
times will often affect your placement in google and could damage your
quality score if ads and marketing with Adwords. Well I am adding this RSS to my email
and can look out for much more of your respective intriguing content.
Ensure that you update this again very soon.
Via heuristic methods educated at OMT, pupils discover tο
beⅼieve liқe mathematicians, firing up
enthusiasm and drive f᧐r premium test efficiency.
Enlist tⲟday in OMT’ѕ standalone e-learning programs аnd
see your grades skyrocket tһrough unlimited access tо top
quality, syllabus-aligned сontent.
Thе holistic Singapore Math technique, ᴡhich develops multilayered ρroblem-solving abilities, highlights ԝhy math tuition іs important for mastering tһе curriculum and getting ready
f᧐r future careers.
Tuition iin primary mathematics іs crucial for
PSLE preparation, aѕ іt introduces sophisticated methods
fοr managing non-routine prоblems that stump lots of prospects.
In-depth responses fгom tuition trainers on technique attempts helps secondary students gain fгom mistakes, improving accuracy fоr the real O Levels.
In a competitive Singaporean education ѕystem, junior
college math tuition ցives trainees the sidе to attain һigh qualities needed fоr university admissions.
OMT’spersonalized syllabus uniquely aligns ѡith MOE framework by offering bridging components fоr smooth changes between primary, secondary, and JC mathematics.
Ꮤith 24/7 accessibility tο video clip lessons, yoս cаn capture uр on tough subjects anytime leh, helping you rack up mսch bettеr in tests
without stress.
Tuitin programs іn Singapore offer mock tests սnder
timed рroblems, imitating actual test situations fօr improved efficiency.
Аlso visit my site: chs primary maths tutor site kiasuparents.com
This design is spectacular! You most certainly know how
to keep a reader entertained. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Wonderful job.
I really loved what you had to say, and more than that, how you presented it.
Too cool!
Thanks for the article https://www.wantedly.com/id/rifal_maulana .
интернет-магазин сантехники с доставкой по россии https://evropejskaya-santehnika2.ru/ .
This design is wicked! You certainly know how to keep a reader
entertained. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Excellent job.
I really loved what you had to say, and more
than that, how you presented it. Too cool!
In terms of online entertainment options, nothing really compares to the
excitement of online casino slots. Thanks to the rise
of online gambling, anyone can now play countless of virtual
slot machines from the comfort of home. Whether you’re into classic 3-reel machines or video slots packed with
bonus features and free spins, there’s something for
everyone.Another factor contributing to their appeal is the
simplicity of gameplay. Unlike poker or blackjack, you don’t need complex strategies.
Choose your paylines, spin, and see if luck’s on your side.
It’s a game of luck that can be incredibly rewarding.
For those curious about how to get started, this article breaks it all down really well about the
evolution of slot machines in the digital age. It offers detailed insights into
volatility, bonus rounds, and fair play. Highly recommended if you’re serious about playing smart.
Check it out at this link: [insert article URL].
To sum up, slot games online provide easy access to fun and potential rewards.
Just remember, always play within your limits and have fun. Best of luck on the reels!