Solved

Pass semicolon as a parameter

Posted on 2013-06-24
3
450 Views
Last Modified: 2013-06-24
I want to create a script that passes a parameter that will be used as variable for a delimiter.

I am having problems passing semicolon as a parameter in my bash script.

I am a newbie but have read that semicolon colon used to separate multiple commands.

Can anyone help me?
0
Comment
Question by:DOCDGA
3 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 39272598
scriptname ";"

or

scriptname ';'

Inside:

echo $1
DELIM=$1

echo $DELIM

# etc.
0
 

Author Closing Comment

by:DOCDGA
ID: 39272626
Your the best.
0
 
LVL 48

Expert Comment

by:Tintin
ID: 39273139
or

scriptname \;

Open in new window

0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
UNIX Script. Send email if failure 8 33
Awk To add just one column - modifying script from an answer 2 22
SSL/TLS - openssl troubleshooting 3 42
Recover Lacie Edmini data. 11 55
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Utilizing an array to gracefully append to a list of EmailAddresses
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question