Whenever you make changes to a bunch of files already tracked by git, there’s an easy way to add them without adding untracked files. The command is: git add –update or git add -u That’s it!
Working With Files in Python
Have you ever wondered how you can use Python to work with groups of files? I wrote a comprehensive article on this for Real Python. You can find the article here. In the article, I cover differences between modules such as fnmatch, pathlib and os. In addition to that, you will learn how to create,
Continue reading Working With Files in Python
How to find all files containing specific text in linux?
Recently, while working on a project, I needed to search if an image I intended to delete was in use anywhere else in the code. There were lot’s of text files to go through and I needed a quick way to tell whether or not it was safe to delete said image. I learned how
Continue reading How to find all files containing specific text in linux?
How To Read and Write Files Using Python.
Reading and writing to files using Python is easy to do. In this post, I will go over how to read and write to text files.