I’m running this script in the terminal:
codeally@798325f2ef03:~/project$ cat courses.csv | while read MAJOR COURSE; do echo $MAJOR; done
and when I run it, the terminal reads from the csv file in mention, but when I hit the button RUN, it appears the following message:
Your script should have the suggested command added correctly
and I have checked that code thousands of times and all is correct, that’s what I wanna believe.
I hope you can help me on this, since I’ve been stuck for almost a whole night yesterday and part of today lol
hi, and thanks for your help.
I’ve done it repeatedly and doesn’t work.
I put in the console:
cat course.csv | while read MAJOR COURSE
do
echo $MAJOR
done
This is the result I see when running the code in the project terminal:
codeally@0ec793ac4945:~/project$ cat courses.csv | while read MAJOR COURSE
do
echo $MAJOR
done
major,course
Database
Web
Database
Data
Network
Database
Data
Network
Computer
Database
Game
Data
Computer
System
Game
Web
Data
Web
Game
System
Game
System
System
Computer
Computer
Network
Web
Network
and when hitting the run button, I get the same error message.
hi,
Nothing seems to work, I have clicked the soft reset button thousands of times and stuck yet.
I have follow indentation, Un-indentantion and nothing. got frustrated