Tag Archive

aaomega amateur astronomy awk bash b[e] supergiant c-shell cartoon conference convert csh exoplanet fedora figaro fits fun galaxy history iraf jupiter latex linux lmc magellanic clouds massive star matplotlib meteor moon mypaper ondrejov observatory paper peblo photometry planet pyraf python scisoft skinakas observatory spectroscopy starlink talk theli ubuntu university of crete video wavelength

Floating point numbers in bash or csh

They just don’t pass through!! Bash or csh are unable to use floating numbers, as they understand numbers containing decimal point as strings. So, only actions with full numbers can be performed in these shells.

Useful small things for c-shell

> When using if statement in c-shell you have to be careful with the syntax: if (condition) then (commands) endif or if you want to add another case then if (condition) then (commands) else (commands) endif Important to remember that after “then” you must continue to a new line. > “exit” is the one option […]

While loop in C-shell scripts

When using the while loop in C-shell scripting the usual stucture is: while (expression)commands…end BUT, you need to add an empty line or a comment after end in order for the loop to work!