Linux tricks

Deleting all files with a certain pattern in the filename

rm *.c # This deletes all the .c files

Deleting all files that do not follow a certain pattern in the filename

Suppose you want to delete all files except .c files

shopt -s extglob # Set the shell option extglob
rm !(*.c) # Remove all files with filenames that do not follow *.c pattern
shopt -u extglob # Unset the shell option extglob

shopt

shopt means shell option You can either use -s flag to set a particular option.

Or you can use the -u flag to unset a particular option.

The extglob flag lets you … (TODO: Fill in after doing some research)

2023

Hacking Ruby

It’s limited in it’s simplicity by the inherent complexity of it’s aim.

Linux tricks

Deleting all files with a certain pattern in the filename rm *.c # This deletes all the .c files

Cpython notes

Cpython is the official implementation of Python. It is written in C (hence the name).

Better hacker

The goal is to gain a better understanding of computer systems and become a better hacker.

Welcome to Jekyll!

Getting started with Jekyll First install bundler and jekyll. gem install jekyll bundler

Lisp notes

Lisp is the greatest single programming language ever designed - Alan Kay

Notes on The Internet

You go onto your computer, open a browser and type www.google.com and hit enter. What happens?

Interesting links

This is a collection of links to some of the interesting articles I found on the internet

Back to Top ↑