The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Storing string with space
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Forum Rules
FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
Storing string with space
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
1
(
permalink
)
10-04-2007
rahul303
Registered User
Join Date: Sep 2007
Posts: 11
Storing string with space
Hi all
I am trying this simple command:
a="abc abc"
echo $a
output is: abc abc
But expected output shoould be :abc abc
i.e spaces in real string are geting truncated to one space everytime.
Plz Help.
Remove advertisements
Forum Sponsor
rahul303
View Public Profile
Find all posts by rahul303