Solved

Pass semicolon as a parameter

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Background Still having to process all these year-end "csv" files received from all these sources (including Government entities), sometimes we have the need to examine the contents due to data error, etc... As a "Unix" shop, our only readily …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

912 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now