Tag: command

Command to Print Until Regular Expression

Print a file until a regular expression is matched. cat file.txt | perl -pe “exit if(/Thats all/)”

Listing all Files Recursively in Windows

Save the list of all files in a folder in windows – recursively. dir /s /b>FileList.txt [tags]command, dir, directory, folder,…

Shortcuts – Hard and Soft Links in Linux

This is how to create hard and soft links in Linux. Remember, a directory cannot be hard linked. #Hard link…

Get URL Headers using CURL

Show the headers of an URL using Curl curl http://example.com -I

Word Meaning from Linux Command Line

Find the meaning of a word from dict using curl. System must be online for this to work. curl dict://dict.org/d:word

Using Git – the Basic Commands

Initialize a New Project in Git… git init git add . git commit #Add a file git add file.php git…

Better Way to find Process ID of an Application in Linux

A better way to get the process id of an application. I recommend giving an alias for this command… ps…

Remove empty directories

Remove all empty directories within the current directory find . -type d -empty -exec rmdir {} \; perl -MFile::Find -e”finddepth(sub{rmdir},’.’)”…

Convert FLV file to MPEG

Convert FLV file to MPEG using ffmpeg ffmpeg -i myFile.flv -ab 56 -ar 22050 -b 500 -s 320×240 myFile.mpg

Find All Connected Harddisks

<p class=”intro”>If you have many IDE harddisks connected to the system(but not mounted), this command will find it. This will…