The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   UNIX - Newcomers (http://hintsforums.macworld.com/forumdisplay.php?f=15)
-   -   Why on earth should I use UNIX? (http://hintsforums.macworld.com/showthread.php?t=45852)

onceagain 07-14-2012 02:15 AM

Quote:

Originally Posted by Jay Carr (Post 239564)
I'm a Computer Science major (so, thoeretically, there should be some advantage)

Wow! I can't believe you're not REQUIRED to learn it in the course of your study. When I was a computer science major at Virginia Tech, we were required to buy a Mac running UNIX (A/UX). I learned a lot running my own UNIX box - and that was in 1989, when it was far less common to have an average person running UNIX than it is today.

acme.mail.order 07-14-2012 03:31 AM

He was a CS major back in 2005 - hopefully he's graduated by now :D

Jay: So, did you eventually learn Unix? Any comments about the experience?

Jay Carr 12-20-2012 04:27 PM

Wow, funny question that one Acme... I stopped being a CS major pretty soon after writing that post and decided I was better for the humanities, so I majored in Asian History and got a minor in CS instead. Then I graduated and started doing film production since, you know, that makes all sorts of sense... Sadly, that didn't work out and now I'm doing VBA/C# programming for a fortune 500 company in MO. I basically make very complex graphs all day drawing data from massive servers. And, oddly, I'm loving every second of it. Guess I should have stuck with CS after all...

[/brief history of last 7 years]

As for learning Unix, I did eventually learn quite a bit of it. Mostly it came out of necessity. I kept working with cheap-is-free tools for video editing, and it required me to learn how to use the command line because often that was all I had.

I imagine as I learn to program more and start doing side projects I'll run into the same problem with my iOS programs I want to make. But, I will say this, Unix is much less of a pain to learn when you see an immediate need for it.

mnewman 12-20-2012 06:13 PM

^Fascinating story. So great to read the follow up to that 2005 post.

rccharles 01-11-2013 02:31 PM

Quote:

Originally Posted by mhinkle (Post 691672)
Hello
earlier you posted this:
"...Because someday you're gonna write a boatload of stub files for a large project, then just type something like

(echo SOURCES= ; find . -name "*.[ch]" -printf "%p ") > Makefile.am"

What is a "stub file" ?

It a small file the is created to get you started. It will be expanded as the project grows.

and what exactly will this command do?

I'm assuming it is creating some kind of new file?
Yes. It is named Makefile.am

the > says to create an output file from all the data generated from the prior command.

(echo SOURCES= ; find . -name "*.[ch]" -printf "%p ")

echo SOURCES= ;

prints out SOURCES=

; end of command.

find . -name "*.[ch]" -printf "%p "

.
starts in current directory.

-name "*.[ch]"

do a file name search on *.c and *.h
* is everything.

-printf "%p "

print out results.

( )

groups the output together so it all goes in the output file.

hayne 01-11-2013 04:16 PM

Quote:

Originally Posted by rccharles (Post 716033)
( )

groups the output together so it all goes in the output file.

Well, yes - effectively.
But what ( ) actually does is start a sub-shell and run all of the parenthesized commands in that sub-shell.


All times are GMT -5. The time now is 10:30 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.