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?...
- 01-22-2010 #1Just Joined!
- Join Date
- Jan 2010
- Posts
- 2
bash help[solved]
I'm just having trouble with getting my quotes correct around that $1. Help?Code:cat file12.txt | sed 's/.$/\" "$1"/' > ~/file.txt
- 01-22-2010 #2Just 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 \\.


Reply With Quote