Bash

This topic about scripts written for the Bash command shell.

Bash Sequence Expression (Range)

The Bash sequence expression generates a range of integers or characters by defining a start and the end point of the range. It is generally used in combination with for loops.

Using Bash for templating configuration files in Docker containers

Using environment variables instead of configuration files is pretty standard practice for the modern application development process…

cURL - How to Install CURL on Windows 10

Learn how to Install cURL command line tool and library on Windows.

Linux Tutorial - Shell Bash Commands from the Beginning with Examples

Linux Tutorial - Shell Bash Commands from the Beginning with Examples. Learn BASH command interpreter explained step by step and with examples. Learn what Linux is and how the command interpreter fits into the operating system. Get and install Linux. Understand the structure and syntax of Linux commands. Learn to manage the elements of the filesystem: files and directories. Learn to install software from official servers or from any compatible file.

Moving Your JavaScript Development To Bash On Windows

In this article, we’ll take an in-depth look at how to set up a Windows/Linux development box for JavaScript development.

What is your opinion for VIM vs VSCode?

I have been recently started learning web dev and I am very happy with the VS Code. However, I have also my eyes on VIM and I am using it for note taking via markdown. I though that it might come useful as it is the default editor for all unix-y installations and distros.

Creating an alias for xpath expression in xidel with regex and bash

If you have already used Xidel, you will often need to locate nodes that have a certain class. To do this more easy, I want to create&nbsp;<code>has-class("class")</code>&nbsp;function that serves as an alias for the expression:

Proper way of reading in files from a directory using Python 2.6 in bash shell

I am trying to read in files for text processing, and the idea is to run them through Hadoop pseudo distributed file system on my virtual machine, using map-reduce code I am writing. The interface is Ubuntu Linux, I am running Python 2.6 with the installation. I need to use sys.stdin for reading in the files, and sys.stdout so I pass from mapper to reducer. So here is my test code for the mapper:

Bash alias to wrap around Git commit

I am trying to write a bash alias to wrap around a Git commit command.

Rename files with loop variable name

I am trying to download a bunch of files and rename them as I go. the download portion works correctly, but i can't get it to rename the files. This is the script I'm using:

Copy output of sql-query to a file

I want to export a random entry of my database into a file with the command

Script only processes 1st Line of input file

bash script to read a file and process commands remotely. It currently only processes the first line (server1)

Remove Database settings of django using bash script

I am trying to create a bash script to create a boilerplate django project that suits for my company. I need to delete the DATABASES in settings and append new one. The DATABASES is a python dictionary with structure

Bash: Array empty outside of the for loop

I'm creating a script to rotate my backups, one important part of this script is to find the files based on certain criteria and then move them or erase them.