Print lines between 2 words using sed & awk
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.
🌗
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.
Below are a bunch of easy one-liner commands that gives information about various aspects of your Linux machine.
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 handles things like backspace and also generates various signals for special characters like Ctrl + C/Z etc.
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.
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.
Use os.Getenv()
and os.Setenv()
for reading and setting environment variables.
To find last modified file
find Documents/ -mtime -1
where mtime
means “Last Modification Time”