🌗

Bhupesh Varshney

Developer • FOSS Creator • Tech Writer

All Posts Tags About

Print lines between 2 words using sed & awk

Posted on 📅 July 24, 2020

📌 linux 📌 shell 📌 til

You may arrive in a situation where you may want to “extract” out text between two words. For example to view the latest changelog (where x.x.x is the latest version) in a CHANGELOG.md file.

Get complete system info using Shell Commands

Posted on 📅 July 19, 2020

📌 linux 📌 shell 📌 til

Below are a bunch of easy one-liner commands that gives information about various aspects of your Linux machine.

Shell script to open a url through terminal

Posted on 📅 July 8, 2020

📌 linux 📌 shell 📌 til

If you are a developer then fixing bugs takes time because you have to shift from terminal to your fav browser & then type your query. (and then in between you open reddit/twitter 😅 for some reason, which wanders your attention).

Line Discipline in Unix/Linux Machines

Posted on 📅 July 6, 2020

📌 linux 📌 shell 📌 til

Line discipline handles things like backspace and also generates various signals for special characters like Ctrl + C/Z etc.

Find all python virtual environments in your system

Posted on 📅 June 10, 2020

📌 linux 📌 python 📌 shell

So if you work with Python all day, you already know about Virtual Environments. The only problem with me 😅 is that I end up creating a lot of them when using and making my side-projects. We know that there is a activate script that can be used for this purpose.

Where are my build files when I use go run

Posted on 📅 June 9, 2020

📌 go 📌 til

By default, go run runs the compiled binary directly. The binaries are stored in a temp work folder, to see where they are stored use the -work flag.

Reading & Setting environment variables in Go

Posted on 📅 June 9, 2020

📌 go 📌 til

Use os.Getenv() and os.Setenv() for reading and setting environment variables.

Find files changed 7 days ago

Posted on 📅 June 7, 2020

📌 linux 📌 shell 📌 tips

To find last modified file

find Documents/ -mtime -1

where mtime means “Last Modification Time”

❮ 3 of 6 ❯
devto: Bhupesh