#linux #windows #bash #scripting

Using PGrep

I often use grep in Windows and Linux to find text in files. I have noticed that grep only works on traditional text files with .txt, .c, .cpp, .list, etc extensions. It doesn’t work with Markdown and C# text files and I find this frustrating. I have found a parallel grep program in the Microsoft Learn code samples written by David Pine that overcomes the grep limitations. The thing that I really like about this program is that I can use regular expressions in the search text. ...

#linux #wsl #bash

Changing Default Colours in Windows WSL Linux

I am using the bash shell in Windows WSL Linux. Currently I am using the Ubuntu 20.04, Debian and OpenSuse distributions. The problem I have is that the default colour scheme has an ugly green background colour with blue text This is a really disconcerting colour scheme! I looked around for an alternative colour scheme to use and found that I could run a command to change the colours manually but each time I opened the terminal I would have to run the command again. ...