Uniquely (sort of) color text so you can see changes

function colorify() { n=$(bc <<< "$(echo ${1}|od -An -vtu1 -w100000000|tr -d ' ') % 7"); echo -e "\e[3${n}m${1}\e[0m"; }
Colorify colors input by converting the text to a number and then performing modulo 7 on it. This resulting number is used as the color escape code. This can be used to color the results of commands with complex outputs (like "482279054165371") so if any of the digits change, there's a good chance the color will change too. I say good chance because there's only 7 unique colors here, so assuming you were watching random numbers, there would be a 6/7 chance that the color would change when the number changed. This should really only be used to help quickly identify when things change, but should not be the only thing relied upon to positively assert that an output has not changed.
Sample Output
$ colorify test
test (shows as orange)
$ colorify test2
test2 (shows as purple)

By: tyzbit
2020-08-06 15:17:45

What Others Think

The content of your article page is very good, I find the content quite good and helpful to me, thank you for UnlockMyTV
UnlockMyTvApk · 34 weeks and 6 days ago
This is actually the kind of information I have been trying to find. Thank you for writing this information. Road Trip Planning
Cameliagobella · 34 weeks and 5 days ago
Color text is a unique and different way to write code on word. This gives a different look and also helps to distinguish between the two codes. The https://honestessaywriter.com/dissertation-help/ is an online writing service for college students.
Corban8 · 34 weeks and 4 days ago
I always get useful information through this site. I am a computer science and engineering graduate. But still, I am not good at coding. Through your site, I found coding easy. Hemp Oil So I use your help to learn to code well.
MariyaDorothy · 32 weeks and 5 days ago
family visa UK .. immigration lawyer dublin
saeed20 · 32 weeks and 1 day ago
You cannot be weak on the path of your dream. Dare to overcome the barriers to find your own way. shell shockers
JoEmily · 31 weeks and 5 days ago
You shouldn't waste time on registration and communication in the service for easy russians brides flirting if your goal is marriage. This rule is self-explanatory. However, how to choose the one that suits serious intentions in the variety of services? I advise you to read reviews on the Internet - this is usually enough. It is also very important how the service itself positions itself. For example, if its main page contains photos of hot beauties or brutal macho and promises of easy, easy communication, this is not an option for serious acquaintances.
ArdellaPolinski · 31 weeks and 5 days ago
The Get-Unique cmdlet compares each item in a sorted list to the next item, eliminates duplicates, and returns only one instance of each item. Hardwood Floor Refinishing St Louis MO
emilygoutagny · 31 weeks and 5 days ago
Found a lot of useful information, glad to join your community! jiofi local html
malkovich · 29 weeks and 1 day ago
Nice to see this post here. It is one of the best sites, and it provides so many good articles related to the programming languages and some programming codes. I think this post will be useful for programmers. Thanks for sharing the valuable information for us. In car mobile phone signal booster Australia
ryanbabraham · 25 weeks and 4 days ago
The article has outstanding image content. All information in the article is very delicate. I will keep waiting for your posts. technology + “write for us” + guest post
saichinni · 25 weeks and 2 days ago
great content! will recommend this site to my friends
looneyhans · 25 weeks and 1 day ago
Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! W88
KayGasaway · 25 weeks ago
Thank you for sharing. Thanks to this article I can learn more things. Expand your information and abilities. Now, your right place graphic design dissertation topics UK at reliable price.
arielwilson · 24 weeks and 4 days ago
essay typer How good it will be if someone will complete your challenging Economics essay on Market Structures? How much cost- effective it will be? Are you wondering where you can find such efficient and reliable essay typer?
eliza · 23 weeks and 5 days ago
The article has outstanding image content. All information in the article is very delicate. I will keep waiting for your posts. tamilrockers proxy
saichinni · 23 weeks and 3 days ago
Thanks a lot for all this and thanks for sharing please visit mine as well. [pii_pn_8a68e8c174733080624b]
saichinni · 22 weeks and 2 days ago
guitar lessons boulder I really enjoyed reading your article. I found this as an informative and interesting post, so I think it is very useful and knowledgeable.
yeoyeo · 22 weeks and 1 day ago
Thanks for sharing this great information. http://www.yycsepticservices.ca/
Breana · 20 weeks and 5 days ago
i liked this so much. great help thanks fencecompanyshreveport.com
looneyhans · 20 weeks and 4 days ago
i love this so much! dentalimplants-coloradosprings.com
Killersmile · 20 weeks and 1 day ago
awesome fence company gresham or
looneyhans · 17 weeks and 3 days ago
Thanks for sharing,It's useful for me seo services
jojokoko · 17 weeks and 1 day ago
great job! i l love it! couples counseling
idasanka · 15 weeks and 6 days ago
Great job and it's very useful instruction for all people. But I want to know a deep Law Firm in India Because I always need this type of firm. Because it's very important to me.
lupillawfirm · 15 weeks and 4 days ago
https://bigpharmachem.com/ https://bigpharmachem.com/product/buy-crack-cocaine-online/ https://bigpharmachem.com/product/buy-fishscale-cocaine-online/ https://bigpharmachem.com/product/buy-mdma-crystals-online/ https://bigpharmachem.com/product/buy-crystal-meth-online/ https://bigpharmachem.com/product/buy-black-tar-heroin-online/
jessejames · 14 weeks and 6 days ago
Thanks for sharing What an interesting site you have i really take a good look buy cocaine online and you can also take a good look at our blog too for more information buy crack cocaine online we also recommend you to take a good look at this site too they have good content buy mdma crystals online more of the site still want you to take a closer look too as they have really good content buy crystal meth online thanks for using your time to check on the link.BUY IBOGAINE ONLINE
jessejames · 14 weeks and 6 days ago
guitar lessons long island you are soo inspiring! thanks for this!
yeoyeo · 14 weeks and 2 days ago
love your ideas! eat
sammm · 11 weeks and 1 day ago
Here we can see the command that discusses the Uniquely color text. We can see its command specified herevegan meal and I am looking here for more updates. There are so many such tutorials and online sites there to understand such programming languages so easily.
Alyssalauren · 10 weeks and 5 days ago
Very nice article, I enjoyed reading your post, very nice share, I want to twit this to my followers. Thanks!. coronavirus mexico
bojokey283 · 9 weeks and 6 days ago
Traditionally, the family has always been an important concept. The idea that all women want nothing but money was probably spread by a person in far from good shape. The truth is different and beautiful: many people sincerely seek love and what they want are feelings and affections. Women and girls https://filipino-women.net/asian-brides/ in Vietnam are no exception. This helps them to make them extraordinary mothers. The typical brides gives priority to her family because she was very prepared.
hostinark · 7 weeks and 3 days ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. cozumel 5 star resorts
bojokey283 · 6 weeks and 4 days ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. best all inclusive resorts in cozumel for families
bojokey283 · 6 weeks and 3 days ago
I like this post, And I figure that they have a great time to peruse this post, they might take a decent site to make an information, thanks for sharing it with me. what is restricted stock unit
myopenadvisors · 5 weeks and 6 days ago
This is a great post. I like this topic.This site has lots of advantage.I found many interesting things from this site. It helps me in many ways.Thanks for posting this again. vacation in tulum
xoheko1229 · 5 weeks and 5 days ago
Thanks for your insight for your fantastic posting. I’m glad I have taken the time to see this. restaurant in cancun mexico
xoheko1229 · 5 weeks and 3 days ago
Best work you have done, this online website is really cool with great facts. restaurant in cancun mexico
xoheko1229 · 5 weeks and 3 days ago
This 8.5? x 30? gooseneck trailer manufactured by Cargo Craft has many, many features that make this trailer an outstanding value. It starts with tubular steel main frames, walls and ceilings, making them the strongest frames in the industry. You simply cannot find a better 8.5 x 30 ft gooseneck trailer at a lower price. 30 gooseneck trailer
trailers123 · 5 weeks and 2 days ago
So lucky to come across your excellent blog. Your blog brings me a great deal of fun. Good luck with the site. how to unlock a manual garage door
overheadoorpros · 4 weeks and 6 days ago
A very awesome blog post. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. garage door torsion spring canadian tire
kaldgartdoors · 4 weeks and 6 days ago
It's always exciting to read articles from other writers and practice something from their websites. a1 appliances scarborough
a1appliancereprs · 4 weeks and 6 days ago
I dont know how it happens but the track for the garage door on the left side is bent in aprox. 120" angle and the door is just hanging there because the weels came off....what would be the best and cheepest way of fixing this? northside overhead doors
petersons · 3 weeks and 5 days ago
I have to agree with Texas angel with a twist. I think that if you install a door with a doggy door then everything will be fine. People can always change out a door. I would hire a professional, because you not only have studs, and insulation, you have wiring to be concerned with. garage door cable repair do it yourself
petersons · 3 weeks and 5 days ago
The environment of the hotel is too good. The room decor and appointments are tasteful and sophisticated - more European than Pakistani - but wonderful nonetheless. babusar top
petersons · 3 weeks and 4 days ago
Whoa! I just can't believe I found this site kitchen remodeling tacoma
aegyjingoo · 2 weeks and 1 day ago
I was exactly searching for. Thanks for such a post and please keep it up. you break i fix pittsburgh
garagedoorpitt · 13 hours ago
This is truly the web service provider I was looking for! 24 hour garage
vancoverheadoors · 13 hours ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: