• skip to content

andunix.net

User Tools

  • Log In

Site Tools

  • Recent Changes
  • Media Manager
  • Sitemap
You are here: andunix.net » Infos » Scripting » Shell Script Variables
Trace: • Formatting Syntax • Print Information about a Key • Plaintext • IPS Repository Appliance • MySQL: Create User • Print all certificates in a file • Oracle: List Accounts with Objects • URL Encoding • Download a Server Certificate • Shell Script Variables

Sidebar

andunix Infos

  • Android
  • Coding
  • Cryptography
  • Database
  • Java
  • JavaScript
  • Link Lists
  • Linux
  • Mac
  • MySQL
  • Oracle
  • Programs
  • Scripting
    • Compare directories
    • DynDNS Updates without a Client
    • exiftool
    • Change Encoding with iconv
    • root login with bash
    • Command Line Tools Used in My Scripts
    • Shell Script Variables
  • Solaris
  • System Administration
  • VirtualBox
  • Web Design
  • firefox
  • Mercurial
  • SSH
  • Thunderbird Extendsions
  • WiFi Config QR-Code

Tags

add-on admin android blogging certificate cli coding config country cryptography css database debian design device documentation drupal howto iso java javascript linux list mac mozilla mysql network opensolaris openssl oracle osx programming project reference script scripting security shell solaris sql ssh standard sysadmin tool topic travian virtualbox web webdesign wlan
info:script:variables
Please note, that this is an old archived version of this site. Check out the new version at andunix.net!

Shell Script Variables

Last Character

Get the last character of $a:

${a: -1}

Remove Slash from the End of a Variable

Remove a trailing slash from $a:

a=${a%/}
scripting, bash, sysadmin, variable
info/script/variables.txt · Last modified: 2015-10-23 12:39 by andunix

Page Tools

  • Show pagesource
  • Old revisions
  • Backlinks
  • Back to top
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution 4.0 International
CC Attribution 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki