Results 1 to 2 of 2

Thread: Echoing multiple lines into a file

  1. #1
    Junior Member
    Join Date
    Jan 2010
    Posts
    81

    Default Echoing multiple lines into a file

    Solved: Needed to add another character in the tr parameters to replace the colon with a newline character

    Code:
    echo "$Bash_profileCommands" | tr ':' '\n' >> $fileLocation
    Thanks,
    red

  2. #2
    Super Moderator Archangel-Amael's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere
    Posts
    8,012

    Default

    Please post in the correct section.
    To be successful here you should read all of the following.
    ForumRules
    ForumFAQ
    If you are new to Back|Track
    Back|Track Wiki
    Failure to do so will probably get your threads deleted or worse.

Posting Permissions

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