Simple school task : " make script which will read point specification from a file"


#1

Hi, I actually have no idea about programming, but I have to do this little task:

make script which will read point specification from a file and then write it in format
like this: Name of point (x,y,z) e.g. A (0,0,0)

I have to do this in using Putty

I would be grateful for any advice what I’m actually doing…


#2

Honestly, that is a huge task for someone who doesn’t know anything about programming. My recommendation is that you get out of that class right away and get your money back.


#3

ok then somebody explain me here:

#!/bin/bash
while read N S; do
printf “Name: %15s\t Surname: %15s\n” $N $S
done <names.txt

What does N S desribes in 2nd line
and in 3rd %15s\t (why is here t or n )
and $N $S


#4

I did something like this:
zadaniebash


#5

I’m sorry but you need to talk to the person who is giving you these assignments. It’s really not right that they’re giving out assignments like this to someone who doesn’t know anything about programming, and solving this for you here would take way too long and potentially just be wrong for the class.