Skip to content

nixCraft

Linux and Unix tutorials for new and seasoned sysadmin

  • Home
  • About
  • Linux Shell Scripting TutoriaL
  • RSS/Feed
  • Donations
  • Search

nixCraft

Linux and Unix tutorials for new and seasoned sysadmin

nixCraft

Tag: bash shell function

Linux / UNIX: Convert Hexadecimal to Decimal Number

last updated November 23, 2010 in Categories BASH Shell, CentOS, Debian / Ubuntu, Fedora Linux, FreeBSD, Korn Shell Scripting, KSH Shell, Linux, Mac OS X, Programming, RedHat and Friends, Solaris-Unix, Suse, Ubuntu Linux, UNIX

How do I convert hex number to decimal number using a shell script under UNIX / Linux operating systems?

26 Comments

Pass Command Line Arguments To a Bash Alias Command

last updated April 7, 2012 in Categories BASH Shell, Linux, UNIX

How do I pass all command line args to my bash alias called foo. For example:

alias foo=”/path/to/command $@”

However $@ get interpreted when creating the alias instead of during the execution of the alias and escaping the $ doesn’t work either. How do I solve this problem?
Continue reading “Pass Command Line Arguments To a Bash Alias Command”

32 Comments

Cool Linux penguin shirt

FEATURED ARTICLES

  • 1
    30 Cool Open Source Software I Discovered in 2013
  • 2
    30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
  • 3
    Top 32 Nmap Command Examples For Linux Sys/Network Admins
  • 4
    25 PHP Security Best Practices For Linux Sys Admins
  • 5
    30 Linux System Monitoring Tools Every SysAdmin Should Know
  • 6
    40 Linux Server Hardening Security Tips
  • 7
    Linux: 25 Iptables Netfilter Firewall Examples For New SysAdmins
  • 8
    Top 20 OpenSSH Server Best Security Practices
  • 9
    Top 25 Nginx Web Server Best Security Practices
  • 10
    My 10 UNIX Command Line Mistakes

Sign up for my newsletter

Sign up for my newsletter



RSS Recently updated

  • Vi / Vim Save And Quit The Editor Command
  • Understanding /etc/passwd File Format
  • How to install and use Nginx on OpenSUSE Linux server
  • Debian / Ubuntu Linux Delete Old Kernel Images Command
  • How to generate RSS 2.0 feed quickly using Python
  • [How to] Linux Change or Rename User Name and UID
  • Bash Assign Output of Shell Command To Variable
  • Bash check if process is running or not on Linux / Unix
  • FreeBSD Find Out All Installed Hard Disk Size Information
  • How to delete empty lines using sed command under Linux / UNIX

Corporate Patron

  • Linode
  • Cloudflare
  • Prospect One
nixCraft ©2000-2019 nixCraft. All rights reserved.
  • PRIVACY
  • TERM OF SERVICE
  • CONTACT/EMAIL
  • DONATIONS
  • Search