Find the answer to your Linux question:
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 ...
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Posts
    9

    Thumbs up 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

  2. #2
    Linux Newbie
    Join Date
    Apr 2010
    Location
    Novosibirsk, Russia
    Posts
    136

    Post Use sed

    You can pass your string enclosed in quotes (as a single argument) and replace spaces to any delimiter using sed

  3. #3
    Just Joined!
    Join Date
    Jun 2010
    Posts
    9
    Thanks alot..It worked.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...