Skip to content

Gamer Geek News

  • Home
  • RSS Feeds
    • News
      • Guardian
      • Reddit
      • Register
    • Gaming Sites
      • Gamasutra News
      • GameSpot
      • Game Informer
      • IGN
    • Humour
      • Fredo & Pid’jin
      • xkcd
    • Linux
      • OMG Ubuntu
      • openSUSE
      • WebUpd8
    • Technology
      • Engadget
      • Mashable Tech
      • MIT
      • SlashDot
      • TechCrunch
  • Playstation
  • Linux
  • Android
  • Xbox
  • linux

beginners bash scripts

04/30/2013

0 Comments Gamer Geek

Bash Scripting useful Unix commands
Destructions of where to save a shell file to call it from a command line
did I mention I was a n00b at shell scripts 🙂
Advanced Bash-Scripting Guide
50 Linux Commands

And here’s my first simple script ‘alter’, saved in my /bin directory.
#!/bin/bash
FILENAME="$1"
sudo cp ${FILENAME} ${FILENAME}.old
gksudo gedit ${FILENAME}

From the CLI type: alter filename
a copy is then taken of the file, and named filename.old, and filename is opened up in an editor window 🙂

Related posts:

  1. geek chic
  2. Ubuntu 13.10 release day
  3. Ubuntu Kinect Mouse
  4. Ubuntu Unity missing time

Tags: bash, scripting, ubuntu

Post navigation

spoiled for choice with choice titles
The Manual: how to Have a Number One the Easy Way
Tags
Android arcade Bloodborne Bootstrap Budgie Cyanide and Happiness cyanogenmod elite:dangerous elite dangerous firefox free Gnome google + gpt-2 GTA V Horizon Zero Dawn https ingress Kerbal Space Program kinect KSP linux minecraft Nexus 4 online openai PS3 ps4 PS5 Python raspberry pi Security steam street fighter Street Fighter V Tensorflow tips tor Twitter ubuntu vpn wordpress Xbox Xbox Live xkcd
Categories
  • Android
  • blog
  • dubdubdub
  • Elite
  • geek
  • guest post
  • Ingress
  • Kerbal Space Program
  • Kinect
  • linux
  • Machine Learning
  • nvidia shield
  • Off topic
  • PirateBox
  • Playstation
  • Python
  • Raspberry Pi
  • Retrogaming
  • ROMS
  • Security
  • Steam
  • Uncategorized
  • Xbox
Twitter Feed
Tweets by DataAugmented

X-Clacks-Overhead: GNU Terry Pratchett | Theme by Spiracle Themes