Solved

Pass semicolon as a parameter

Posted on 2013-06-24
3
445 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
Comment Utility
scriptname ";"

or

scriptname ';'

Inside:

echo $1
DELIM=$1

echo $DELIM

# etc.
0
 

Author Closing Comment

by:DOCDGA
Comment Utility
Your the best.
0
 
LVL 48

Expert Comment

by:Tintin
Comment Utility
or

scriptname \;

Open in new window

0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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 …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.

762 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

9 Experts available now in Live!

Get 1:1 Help Now