How to Fold a Long Single Line Text to Multiple Lines (in Python and Linux)?

You might want to convert a really long string in a single line into multiple lines with specified width. For example, if you have string like 12345678912345678912345678912345678912345678910 and want to split the long text to multi-line text, where each line is of length w, like w=9 123456789 123456789 123456789 123456789 123456789 10 In the above… Continue reading How to Fold a Long Single Line Text to Multiple Lines (in Python and Linux)?

Basic Linux/Mac OS X Commands that Help You to Get Started

Typically the learning curve of Linux commands is bit slow and scare people away from it. But the piece of advice that is worth is “Hang on!, You will see the fruits of your frustrations soon”. Linux organizes everything in directories. For example, if you are a linux user, your account is just another directory.… Continue reading Basic Linux/Mac OS X Commands that Help You to Get Started