shell Tutorials, Tips & Tricks

Some Useful Unix File Finding Commands

Some Useful Unix File Finding Commands

Following are some bunch of commands that might be useful if you want to find files in unix/linux. Large Files Find files larger than 10MB in the current directory downwards… find . -size +10000000c...

Shell Script to Rename & Move files in Unix

Problem Statement: I have few files in source directory. I have to move them to another destination directory. The source directory have *.txt files that needs to be moved to destination directory. The destination...

Generate Random Number in UNIX Shell Script

Generate Random Number in UNIX Shell Script

RANDOM is a peculiar shell variable, but useful nonetheless. Peculiar because its value changes each time it is referenced (yes, this is by design). As you may have already guessed, RANDOM is a random...

How to: Reset MySQL root password

Resetting the root password of a MySQL database is trivial if you know the current password if you don’t it is a little trickier. Thankfully it isn’t too difficult to fix, and here we’ll...

Conversion of text file in PDF and vice versa in UNIX

Yes, this is also a good solution. All you need is to add: \documentclass[a4paper]{article} \begin{document} …. your original text goes here … \end{document} after that call pdflatex youFIle.tex in your shell script.