Tags » Bash

Incremental Backup Script

I am Paranoid! (When it comes to Backups)

There I said it. I am a paranoid person but thankfully most of my paranoia is restricted to backups of important files. 619 more words

Code

Simple Automation Scripts

Making a script to automate a few commands is actually pretty easy, but seemed really daunting on the first few attempts.

Here is a breakdown to create a simple script, make it executable and run it.   198 more words

Raspberry Pi

Renaming a set of files

Rename a set of files to a custom name and index.

index=0; for item in *.png; do mv "$item" "name-$(printf '%02d' $index).${item#*.}"; let index++; done

Bash

Build problem, conflict in bash between rcdb and rootcling

Error:

In file included from input_line_11:6:
In file included from /u/scratch/marki/launch_build/sim-recon-aa_test/src/programs/Analysis/hdview2/hdv_optionsframe.h:10:
In file included from /u/apps/gcc/4.9.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../include/c++/4.9.2/iostream:39:
In file included from /u/apps/gcc/4.9.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../include/c++/4.9.2/ostream:609:
/u/apps/gcc/4.9.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../include/c++/4.9.2/bits/ostream.tcc:39:10: error: 
      'bits/cxxabi_forced.h' file not found with  include; use "quotes"
      instead
#include <bits/cxxabi_forced.h>
         ^
… 9 more words

12TH ANNUAL WILDWOOD BBQ BASH WITH FREE CONCERTS ALL WEEKEND


Wildwood BBQ Bash
WILDWOOD, MO: (STLRestaurant.News) The 12th Annual Wildwood BBQ Bash will be begin starting Friday, September 23rd at 5 pm to 10 pm and last through Sunday, September 25th from 10 am to 3 pm.   11 more words

Raspberry Pi Controlled Keezer

A keezer (keg freezer) is a great project to tie in many different interests; home brewing, wood working, plumbing, electronic prototyping, and programming to name a few. 1,391 more words

Bash

How to determine if a bash variable is empty?

A variable in bash (and any POSIX-compatible shell) can be in one of three states:

  • unset
  • set to the empty string
  • set to a non-empty string…
  • 170 more words