Results 1 to 3 of 3
Hello All,
I need to join the arguements of a function.
Function call in my bash script
fun Linux forums
Function definition:
function fun
{
i=4
inside this function I ...
- 04-25-2011 #1Just Joined!
- Join Date
- Jun 2010
- Posts
- 9
Join functions arguemets
Hello All,
I need to join the arguements of a function.
Function call in my bash script
fun Linux forums
Function definition:
function fun
{
i=4
inside this function I want to combine the arguments of the fun into a variable separated by a delimiter( for eg : (colon) ).I want a variable to store the value.
variable="Linux:Forms"
}
Plz give your suggestions
- 04-25-2011 #2Linux Newbie
- Join Date
- Apr 2010
- Location
- Novosibirsk, Russia
- Posts
- 136
Use sed
You can pass your string enclosed in quotes (as a single argument) and replace spaces to any delimiter using sed
- 04-25-2011 #3Just Joined!
- Join Date
- Jun 2010
- Posts
- 9
Thanks alot..It worked.


Reply With Quote