Solved

Pass semicolon as a parameter

Posted on 2013-06-24
3
449 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

823 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