I have a csv file with string data.
The string, 1000/06{a-09}90.log, is in row 236 and column 6.
I tried to save the string in a variable using the command below. This command doesn't preserve the curly brackets.
set var = `awk -F ',' 'NR==236{print $6}' File.csv`
echo $var results in: 1000/06a-0990.log <- missing {}
How can I save the string and preserve the special characters?
Curly braces are for brace expansion, that's why they are removed.
Use double quotes to prevent brace expansion: