Gang Of Coders
Home
About Us
Contact Us
All Scripting Solutions on Gang of Coders
Total of 235 Scripting Solutions
How to count lines in a document?
Linux
Bash
Command Line
Scripting
Is there a way in Ruby/Rails to execute code that is in a string?
Ruby on-Rails
Ruby
Scripting
Add files to an Xcode project from a script?
Xcode
Scripting
Project
How to use ActiveRecord in a ruby script outside Rails?
Ruby on-Rails
Ruby
Activerecord
Scripting
Git log tabular formatting
Git
Bash
Scripting
Automatically (or more easily) reconnect to a screen session after network interruption
Ssh
Scripting
Automation
Gnu Screen
"eval" in Scala
Java
Scala
Scripting
Embedding
How do I get just real time value from 'time' command?
Bash
Scripting
Shell
How to store the hostname in a variable in a .bat file?
Windows
Batch File
Scripting
Hostname
Passing arguments by reference
Bash
Shell
Scripting
Pass by-Reference
Pass bash script parameters to sub-process unchanged
Bash
Scripting
Parameters
Good guide on VIM Scripting?
Vim
Scripting
Unable to set variables in bash script
Bash
Scripting
cross-platform scripting for windows, Linux, MacOS X
Windows
Linux
Scripting
Multiplatform
Inline if shell script
Linux
Shell
Scripting
Sh
How to compile a linux shell script to be a standalone executable *binary* (i.e. not just e.g. chmod 755)?
Scripting
Binary
Compilation
Executable
Obfuscation
What is the $? (dollar question mark) variable in shell scripting?
Shell
Scripting
How to determine the line ending of a file
Scripting
Line Endings
Running a CMD or BAT in silent mode
Scripting
Cmd
Batch File
How do I create a directory on remote host if it doesn't exist without ssh-ing in?
Bash
Scripting
Scp
How can I declare and use Boolean variables in a shell script?
Bash
Shell
Scripting
Boolean
Sh
Check if a string matches a regex in Bash script
Regex
Bash
Shell
Scripting
Batch character escaping
Windows
Batch File
Cmd
Scripting
Escaping
find -name "*.xyz" -o -name "*.abc" -exec to Execute on all found files, not just the last suffix specified
Linux
Bash
Shell
Scripting
Running MySQL *.sql files in PHP
Php
Mysql
Zend Framework
Scripting
How can I ssh directly to a particular directory?
Bash
Shell
Scripting
Ssh
Python recursive folder read
Python
Scripting
File Io
total size of group of files selected with 'find'
Shell
Scripting
Find
Grep
Filesize
Store mysql query output into a shell variable
Mysql
Sql
Bash
Scripting
What is the difference between a module and a script in Python?
Python
Scripting
Module
PHP - Redirect and send data via POST
Php
Forms
Post
Scripting
if arguments is equal to this string, define a variable like this string
Bash
Scripting
Arguments
how to detect a build error from ant/maven via a bash script?
Bash
Maven 2
Ant
Scripting
How to check if memcache or memcached is installed for PHP?
Php
Apache
Scripting
Webserver
Count occurrences of character per line/field on Unix
Linux
Bash
Shell
Unix
Scripting
How do I write a bash script to restart a process if it dies?
Linux
Bash
Cron
Scripting
Error handling in Bash
Bash
Error Handling
Scripting
Error Logging
Pass ALL Arguments from Bash Script to Another Command
Bash
Scripting
Parameter Passing
Command Line-Arguments
Best way to simulate "group by" from bash?
Bash
Scripting
How to simulate the environment cron executes a script with?
Bash
Scripting
Cron
Meaning of $? (dollar question mark) in shell scripts
Shell
Scripting
Special Characters
How to run a shell script in OS X by double-clicking?
Macos
Shell
Scripting
Desktop
Random number from a range in a Bash Script
Bash
Shell
Scripting
Correct Bash and shell script variable capitalization
Bash
Shell
Scripting
Naming Conventions
Capitalization
How to redirect the output of a PowerShell to a file during its execution
Powershell
Scripting
Stdout
How to resolve symbolic links in a shell script
Bash
Shell
Scripting
Symlink
How do you execute an arbitrary native command from a string?
Scripting
Powershell
How do I create a nice-looking DMG for Mac OS X using command-line tools?
Macos
Scripting
Installation
Dmg
Test for non-zero length string in Bash: [ -n "$var" ] or [ "$var" ]
Bash
Shell
If Statement
Syntax
Scripting
Determine if a function exists in bash
Bash
Function
Testing
Scripting
Purpose of #!/usr/bin/python3 shebang
Python
Scripting
How to make a Python script run like a service or daemon in Linux
Python
Linux
Scripting
Daemons
Copy folder recursively, excluding some folders
Bash
Unix
Shell
Scripting
How to check the extension of a filename in a bash script?
Bash
Scripting
File
How to run a PowerShell script
Windows
Powershell
Scripting
awk without printing newline
Scripting
Awk
Newline
How do I tell if a regular file does not exist in Bash?
Bash
File Io
Scripting
How does "cat << EOF" work in bash?
Linux
Bash
Scripting
Heredoc
In a Bash script, how can I exit the entire script if a certain condition occurs?
Bash
Scripting
Exit
Exit Code
How to get the part of a file after the first line that matches a regular expression
Bash
Shell
Scripting
Grep
How do I abort the execution of a Python script?
Python
Syntax
Scripting
Exit
The 'eval' command in Bash and its typical uses
Linux
Bash
Shell
Scripting
Eval
How does a Linux/Unix Bash script know its own PID?
Bash
Scripting
Pid
Checking for the correct number of arguments
Shell
Scripting
Delete all but the most recent X files in bash
Bash
Unix
Scripting
Wait for a process to finish
Bash
Scripting
Process
Wait
How to run a PowerShell script without displaying a window?
Windows
Powershell
Scripting
Batch File
Silent
How to delete duplicate lines in a file without sorting it in Unix
Unix
Shell
Scripting
Sed
Awk
PowerShell: Setting an environment variable for a single command only
Windows
Powershell
Scripting
Variables
Environment
Bash array with spaces in elements
Arrays
Bash
Unix
Scripting
How to manually expand a special variable (ex: ~ tilde) in bash
Bash
Scripting
Tilde
Tilde Expansion
Capture key press (or keydown) event on DIV element
Javascript
Jquery
Html
Scripting
Keypress
How to show a GUI message box from a bash script in linux?
Linux
Bash
Scripting
Ubuntu
Gtk
How do I use Ruby for shell scripting?
Ruby
Shell
Scripting
How to count objects in PowerShell?
Powershell
Scripting
How do I remove newlines from a text file?
Linux
Bash
Scripting
Shell
Sed
How do I compare two string variables in an 'if' statement in Bash?
Bash
If Statement
Scripting
What's the opposite of head? I want all but the first N lines of a file
Command Line
Scripting
Tail
Unix Head
How to tell if a string is not defined in a Bash shell script
Bash
Shell
Scripting
String
Null
How do I get the result of a command in a variable in windows?
Windows
Scripting
Batch File
How can I run a function from a script in command line?
Linux
Bash
Scripting
What does $$ mean in the shell?
Shell
Scripting
How do I know the script file name in a Bash script?
Linux
Bash
Shell
Scripting
Difference between ${} and $() in Bash
Linux
Bash
Scripting
How to execute an .SQL script file using c#
C#
Sql
Oracle
Scripting
How can I set the current working directory to the directory of the script in Bash?
Bash
Path
Scripting
How can I remove the first line of a text file using bash/sed script?
Bash
Scripting
Sed
Deleting lines from one file which are in another file
Bash
Scripting
Sh
Raise error in a Bash script
Linux
Bash
Shell
Error Handling
Scripting
How do I script a "yes" response for installing programs?
Linux
Bash
Scripting
Grep and Sed Equivalent for XML Command Line Processing
Xml
Command Line
Scripting
How do I split a string on a delimiter in Bash?
Bash
Shell
Split
Scripting
How to mkdir only if a directory does not already exist?
Shell
Scripting
Ksh
Aix
Mkdir
How do I get cURL to not show the progress bar?
Linux
Bash
Unix
Scripting
Curl
Find and Replace Inside a Text File from a Bash Command
Bash
Replace
Scripting
Ironpython
What does `kill -0 $pid` in a shell script do?
Bash
Shell
Scripting
Signals
Kill
unix - head AND tail of file
Linux
Bash
Shell
Unix
Scripting
sudo echo "something" >> /etc/privilegedFile doesn't work
Bash
Shell
Scripting
Permissions
Sudo
Hiding user input on terminal in Linux script
Linux
Bash
Scripting
How to get disk capacity and free space of remote computer
Powershell
Scripting
Powershell 2.0
Unix - create path of folders and file
Linux
Bash
Shell
Unix
Scripting
Counter increment in Bash loop not working
Linux
Bash
Shell
Scripting
Counter
Executing multiple commands from a Windows cmd script
Windows
Batch File
Scripting
Cmd
PowerShell Script to Find and Replace for all Files with a Specific Extension
Powershell
Scripting
Replace
Find
Can I create a One-Time-Use Function in a Script or Stored Procedure?
Sql
Sql Server
Sql Server-2005
Tsql
Scripting
Remove duplicate lines without sorting
Shell
Scripting
Filter
Uniq
Executing JavaScript without a browser?
Javascript
Unix
Command Line
Scripting
V8
Test or check if sheet exists
Excel
Vba
Scripting
Is there a simple way to convert C++ enum to string?
C++
String
Enums
Scripting
Windows batch: sleep
Windows
Shell
Batch File
Scripting
What is the most useful script you've written for everyday life?
Scripting
What's the best way to use R scripts on the command line (terminal)?
R
Bash
Command Line
Scripting
Why do you need to put #!/bin/bash at the beginning of a script file?
Linux
Bash
Scripting
Shebang
Windows batch file file download from a URL
Windows
Batch File
Download
Scripting
How to pass boolean values to a PowerShell script from a command prompt
Scripting
Powershell
Execute PowerShell Script from C# with Commandline Arguments
C#
Command Line
Powershell
Scripting
Arguments
Getting the path of %AppData% in PowerShell
Powershell
Scripting
How do I parse command line arguments in Bash?
Bash
Command Line
Scripting
Arguments
Getopts
How to get the Parent's parent directory in Powershell?
Powershell
Scripting
How can you find and replace text in a file using the Windows command-line environment?
Windows
Command Line
Scripting
Batch File
Text Files
How to make an "alias" for a long path?
Linux
Bash
Unix
Scripting
How to get a password from a shell script without echoing
Bash
Shell
Scripting
Sh
Get name of current script in Python
Python
Scripting
Basename
Batch files - number of command line arguments
Shell
Batch File
Scripting
How do I preserve the remote filename when Downloading a file using curl
Shell
Scripting
Curl
How do I get the path and name of the file that is currently executing?
Python
Scripting
File
When is a language considered a scripting language?
Programming Languages
Scripting
Terminology
Semantics
Choosing a Windows automation scripting language. AutoIt vs Autohotkey
Windows
Scripting
Automation
Autohotkey
Autoit
How can I run a PHP script in the background after a form is submitted?
Php
Scripting
Background
Escaping Double Quotes in Batch Script
Scripting
Parameters
Batch File
Escaping
Quotes
Scripting TFS Command Line for Get Latest Version, Check Out and Check in, programmatically
Tfs
Scripting
Checkin
Vcs Checkout
Getlatest
Bash scripting missing ']'
Bash
Scripting
Creating an array from a text file in Bash
Arrays
Bash
Loops
Scripting
Variable Assignment
Copy all files and folders using msbuild
Build
Scripting
Msbuild
What is a simple command line program or script to backup SQL server databases?
Sql Server
Command Line
Scripting
Backup
How to Remove ReadOnly Attribute on File Using PowerShell?
Powershell
Powershell 1.0
Scripting
Stopping scripters from slamming your website
Scripting
E Commerce
Bots
Detection
Shell script to send email
Linux
Email
Shell
Scripting
What is the best scripting language to embed in a C# desktop application?
C#
Scripting
How do I create a custom type in PowerShell for my scripts to use?
Powershell
Scripting
How do I daemonize an arbitrary script in unix?
Perl
Unix
Scripting
Sysadmin
Daemon
How to execute Python scripts in Windows?
Python
Windows
Scripting
Command Line
File Association
find difference between two text files with one item per line
Bash
File
Scripting
Sed
Awk
How do I do if statement arithmetic in bash?
Bash
Scripting
How to run a script at a certain time on Linux?
Linux
Bash
Scripting
Debian
Running command line commands within Ruby script
Ruby
Command Line
Scripting
Terminal
Command Prompt
Python script header
Python
Scripting
Find multiple files and rename them in Linux
Linux
Bash
Shell
Scripting
Suse
Recursively rename files using find and sed
Bash
Scripting
Sed
Find
Replace
Determine if current PowerShell Process is 32-bit or 64-bit?
Scripting
Powershell
64 Bit
32 Bit
Why the Global Interpreter Lock?
Python
Multithreading
Scripting
Locking
Bytecode
Global environment variables in a shell script
Shell
Scripting
Environment Variables
How to urlencode data for curl command?
Bash
Shell
Curl
Scripting
Urlencode
Get just the filename from a path in a Bash script
Bash
Scripting
Shell
How do I merge one directory into another using Bash?
Bash
Shell
Scripting
Command Line
Sh
Difference between a script and a program?
Scripting
Count line lengths in file using command line tools
Bash
Shell
Command Line
Scripting
How do I get the current username in Windows PowerShell?
Windows
Powershell
Scripting
Can a Ruby script tell what directory it’s in?
Ruby
Scripting
Path
Directory
Environment Variables
unix - count of columns in file
Linux
Bash
Shell
Unix
Scripting
What are the best ways to automate a GDB debugging session?
Scripting
Automation
Gdb
Expect
Remove part of path on Unix
Shell
Unix
Scripting
Sed
Using sed, Insert a line above or below the pattern?
Scripting
Sed
Awk
Unit testing for shell scripts
Linux
Unit Testing
Shell
Scripting
in linux terminal, how do I show the folder's last modification date, taking its content into consideration?
Linux
Bash
Shell
Scripting
Ubuntu
Add a prefix string to beginning of each line
Linux
Scripting
Text Processing
Adding scripting functionality to .NET applications
C#
.Net
Scripting
Compiler Construction
In SQL Server, how do I generate a CREATE TABLE statement for a given table?
Sql Server
Scripting
Dynamic Sql
Mutable list or array structure in Bash? How can I easily append to it?
Arrays
Bash
Scripting
What is the meaning of ${0%/*} in a bash script?
Bash
Scripting
How to remove ^[, and all of the escape sequences in a file using linux shell scripting
Linux
Shell
Scripting
Checking if a website is up via Python
Python
Http
Scripting
Httprequest
Http Head
How to create batch file in Windows using "start" with a path and command with spaces
Windows
Batch File
Scripting
Shell/Bash shortcut for bulk renaming of files in a folder
Linux
Bash
File Io
Scripting
How do I prompt for Yes/No/Cancel input in a Linux shell script?
Linux
Bash
Shell
Scripting
Shell script to capture Process ID and kill it if exist
Bash
Shell
Scripting
Remove the last line from a file in Bash
Bash
Command Line
Scripting
Truncate
Is there any use for Bash scripting anymore?
Python
Perl
Bash
Scripting
Comparison
Loading .sql files from within PHP
Php
Sql
Mysql
Import
Scripting
Wait for bash background jobs in script to be finished
Bash
Scripting
Job Control
How can I add a JavaScript keyboard shortcut to an existing JavaScript Function?
Javascript
Scripting
Keyboard
Shortcut
Execute command on all files in a directory
Bash
Scripting
Do I have a way to check the existence of a directory in Ant (not a file)?
Scripting
Ant
Build
Hidden features of Bash
Bash
Shell
Scripting
Hidden Features
Dealing with quotes in Windows batch scripts
Windows
Batch File
Quotes
Scripting
What does `set -x` do?
Linux
Bash
Unix
Scripting
Scripting Language vs Programming Language
Scripting
Programming Languages
Scripting Language
How to delete items from a dictionary while iterating over it?
Scripting
Dictionary
Python
Giving the script tag an ID
Html
Standards
Scripting
bash: silently kill background function process
Linux
Bash
Shell
Unix
Scripting
How to get started with PowerShell?
Powershell
Scripting
Is there a way to avoid positional arguments in bash?
Bash
Shell
Scripting
Windows batch - concatenate multiple text files into one
Windows
Batch File
Scripting
fork and exec in bash
Linux
Bash
Scripting
Shell
Which programming languages can be used to develop in Android?
Java
Android
Scala
Programming Languages
Scripting
SQL Server - stop or break execution of a SQL script
Sql
Sql Server
Scripting
Exit
How to pass argument to Mongo Script
Javascript
Mongodb
Scripting
Using scripts in a master page with ASP.NET MVC
.Net
asp.net
asp.net Mvc
Scripting
How to convert hex to ASCII characters in the Linux shell?
Linux
Bash
Shell
Encoding
Scripting
Execute SQL script from command line
Sql
Sql Server
Batch File
Command Line
Scripting
Are there any languages that compile to Bash?
Bash
Shell
Scripting
Coffeescript
Library of Useful (Difficult) SQL scripts
Sql
Scripting
Is there a jQuery autogrow plugin for text fields?
Javascript
Jquery
Scripting
How to run a script file remotely using SSH
Scripting
Ssh
Bash or KornShell (ksh)?
Bash
Shell
Unix
Scripting
Ksh
How can I sandbox Python in pure Python?
Python
Scripting
Date command does not follow Linux specifications (Mac OS X Lion)
Macos
Bash
Date
Scripting
Porting
PowerShell script to check an application that's locking a file?
Powershell
Scripting
Filelock
Check the open FD limit for a given process in Linux
Linux
Scripting
Operating System
Limit
File Descriptor
Bash script - store stderr in a variable
Bash
Scripting
Redirect
Stdout
Stderr
How can I read a file and redirect it to a variable?
Linux
Shell
Scripting
Write byte at address (hexedit/modify binary from the command line)
Shell
Scripting
Hex
Patch
Edit
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" How does that work?
Linux
Bash
Shell
Unix
Scripting
Use grep to find content in files and move them if they match
Linux
Shell
Scripting
Grep
How can I suppress all output from a command using Bash?
Bash
Shell
Scripting
Echo
Convert binary data to hexadecimal in a shell script
Linux
Scripting
Hexdump
Is there replacement for cat on Windows
Windows
Command Line
Scripting
What is the difference between $@ and $* in shell scripts?
Shell
Scripting
Creating files with some content with shell script
Shell
Unix
Scripting
How do I run git rebase --interactive in non-interactive manner?
Git
Scripting
Git Rebase
Non Interactive
How to automate a process with the sqlite3.exe command line tool?
Sqlite
Scripting
Batch File
Xcode: Running a script before every build that modifies source code directly
Xcode
Scripting
Build
Dependencies
Adding BOM to UTF-8 files
Utf 8
Batch File
Scripting
Byte Order-Mark
Increase max execution time for php
Php
.Htaccess
Scripting
Php Ini
Read Bash variables into a Python script
Python
Bash
Scripting
Environment Variables
Python: Import And Initialize Argparse After if __name__ == '__main__'?
Python
Scripting
Can Windows' built-in ZIP compression be scripted?
Windows
Vbscript
Batch File
Zip
Scripting
Very simple, terse and easy GUI programming “frameworks”
User Interface
Scripting
Open Source
Declarative
How does the #! shebang work?
Shell
Unix
Scripting
Shebang
Alternatives to Lua as an embedded language?
Scripting
Programming Languages
Embedded
Lua
How to Pass parameters for a Ant script , which is invoked via shell script?
Shell
Scripting
Ant
Shellexecute
How to execute a bash command stored as a string with quotes and asterisk
Bash
Scripting
Escaping
Quotes
Remove quotes from named environment variables in Windows scripts
Windows
Batch File
Scripting
Environment Variables
Quotes
source all files in a directory from .bash_profile
Bash
Shell
Scripting
Expression after last specific character
Linux
Bash
Shell
Unix
Scripting