I've tried searching for this but can't find out why this doesn't work.
In a terminal directly when I use
join -t $'\t' file1 file2
this works fine, but when I add this to a bash script
#!/bin/bash
join -t $'\t' $1 $2
I get this error:
join: multi-character tab `$\\t'
I've tried various combinations of single/double quotes, without '$' , etc, but I can't seem to get this working within the script.
How can i specifiy a separator within bash script?
I'm using Ubuntu Linux.
In a terminal directly when I use
join -t $'\t' file1 file2
this works fine, but when I add this to a bash script
#!/bin/bash
join -t $'\t' $1 $2
I get this error:
join: multi-character tab `$\\t'
I've tried various combinations of single/double quotes, without '$' , etc, but I can't seem to get this working within the script.
How can i specifiy a separator within bash script?
I'm using Ubuntu Linux.
Comment