Find the answer to your Linux question:
Results 1 to 2 of 2
Code: cat file12.txt | sed 's/.$/\" "$1"/' > ~/file.txt I'm just having trouble with getting my quotes correct around that $1. Help?...
  1. #1
    Just Joined!
    Join Date
    Jan 2010
    Posts
    2

    bash help[solved]

    Code:
    cat file12.txt |
    sed 's/.$/\" "$1"/' > ~/file.txt
    I'm just having trouble with getting my quotes correct around that $1. Help?

  2. #2
    Just Joined!
    Join Date
    Jan 2010
    Posts
    2
    Oh sorry never mind. I was having problems because $1 contained a path to a folder. And that path starts with a / so i had to escape it with \\.

Posting Permissions

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