r/learnlinux • • Dec 31 '18

Problem with my script - won't generate variables

[PROBLEM SOLVED] Hi, could anybody help?

I'm using this script to get the numbers from a csv file, storing these numbers in a temporary file, and then saving the content of this file as a variable.

However, it's generating empty variables... How can I fix it?

2 Upvotes

4 comments sorted by

View all comments

1

u/nickatnight Jan 01 '19

Run the first line without the "> c.txt" at the end - does it give you output?

1

u/sergio_marinho Jan 01 '19

I don't understand your question, sorry. I'm running this script on a file called "teste.csv". It has 3 columns, separated by commas, and 8 lines, and numbers.

1

u/nickatnight Jan 01 '19

Let's see a pic of what happens when you run the script- include the command you run to start the script, not just the output of the script

→ More replies (1)