LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

highlighter (cli) -- highlight one or more text searches in one or more colours

Posted 04-25-2019 at 02:05 AM by freemedia2018

Code:
cat highlighter | ./highlighter "def|print| |:|highlight|return 1 2 -2 4 5 6 10"
colours: 0 (black) 1 (blue) 2 (green) 3 (cyan) 4 (red) 5 (magenta) 6 (brown) 7 (white)
8 (grey) 9 (l.blue) 10 (l.green) 11 (l.cyan) 12 (l.red) 13 (l.magenta) 14 (yellow) 15 (b.white)

backgrounds: -1 (blue) -2 (green) -3 (cyan) -4 (red) -5 (magenta) -6 (brown) -7 (white)

https://imgtc.com/i/PxhCp5H.png

Code:
#!/usr/bin/env python
...
Member
Posted in Uncategorized
Views 1193 Comments 0 freemedia2018 is offline
Old

colourfind -- pipe find to this, get size, colour by type, -d for time and date

Posted 03-18-2019 at 04:25 AM by freemedia2018
Updated 03-18-2019 at 04:27 AM by freemedia2018

https://i.imgtc.com/L80yd3L.png

should also work on python 2

Code:
#!/usr/bin/env python3
# coding: utf-8 
#### license: creative commons cc0 1.0 (public domain) 
#### http://creativecommons.org/publicdomain/zero/1.0/ 
proginf = "colourfind, mar 2019 mn"

import sys
import os
from datetime import datetime

from sys import stdin, stdout
from os import popen
from os import
...
Member
Posted in Uncategorized
Views 165 Comments 3 freemedia2018 is offline

  



All times are GMT -5. The time now is 09:47 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration