Playgrounds
Snippets
Developers
Compiler
All
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
Coffee
CoffeeScript
ColdFusion
Command
CSS
Delphi
Django
ES6
GLSL
Grunt
Gulp
HAML
Haskell
HTML
iOS
Jade
Java
JavaScript
jQuery
JSX
Less
LUA
MDX
MySQL
Objective
Other
Pascal
Perl
PHP
Plain text
PowerShell
Processing
Progress
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
SCSS
SmallBASIC
Smarty
SQL
Stylus
SVG
Swift
TypeScript
VHDL
X++
XHTML
XML
Xojo
XSLT
New snippet
New playground
Sign up
Login
Upload
Playgrounds
Snippets
Developers
Sign up
Login
Codepad is a place for developers to share code snippets (PHP, Java, Bash, C, C++, Python and more). Create your HTML, CSS and JS Demos.
Sign up
Learn more
Sort
Popular
Most liked
Most recent
Time
Today
Last week
Last month
Last year
All time
Select Languages
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
ColdFusion
Command
CSS
Delphi
Django
Grunt
Gulp
HAML
HTML
iOS
Jade
Java
JavaScript
jQuery
Less
MySQL
Objective
Other
Pascal
Perl
PHP
PowerShell
Processing
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
Smarty
SQL
Swift
VHDL
XHTML
XML
Xojo
XSLT
SCSS
CoffeeScript
GLSL
Progress
Stylus
ES6
Coffee
TypeScript
X++
Haskell
SmallBASIC
JSX
SVG
Plain text
LUA
MDX
Apply
Reset
popular • Bash
Simple trick to echo bash variable name and value
Bash
0
1
836
Replaced Grunt/Gulp with a Makefile
Bash
0
0
1117
Change a word inside 'n' files (sed)
Bash
0
0
1227
Git: remove all deleted files at once
Bash
0
3
1185
changing the origin on git
Bash
0
1
1144
jpegoptim centos
Bash
0
0
1281
grep string in a directory
Bash
0
1
1346
Linux: split file into pieces and join pieces again
Bash
0
2
2126
npm & Makefile
Bash
0
2
1282
get youtube live stream-url livestreamer
Bash
2
2
2584
Mac Logs Downloads
Bash
0
1
994
Ubuntu: send email from command line using gmail account and server
Bash
2
2
6233
find string searching inside files (grep)
Bash
0
1
1307
find string inside a file excluding paths (find)
Bash
0
2
1122
Bash - Use ApacheBench to measure the performance of HTTP web servers
Bash
0
8
8616
IMagick for PHP5.3
Bash
0
4
1309
Bash - CURL a POST with custom UserAgent and follow redirects
Bash
0
6
2051
Bash - Output the last parts of a file with tail
Bash
0
7
1417
Mac OS X: Wake up from sleep and login last user via ssh
Bash
0
7
1788
NPM - Run Custom Bash Script with Arguments
Bash
0
9
2236