Register FAQ/Rules Forum Spy Search Today's Posts Mark Forums Read

Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate.

 
Go Back   Mac Forums > Apple Software > Mac Programming
TouchArcade.com - iPhone Game Reviews and News

Reply
 
Thread Tools Search this Thread Display Modes
Old May 30, 2006, 03:03 PM   #1
Doctor Q
macrumors god
 
Doctor Q's Avatar
 
Join Date: Sep 2002
Location: Chu-anz W'allo
Apple Shell-Scripting Primer

For those who are interested in learning more about writing Unix-style shell scripts under Mac OS X, Apple has authored a Shell Scripting Primer.

You can read it in web form here or download it as a PDF here.
__________________
>INPUTFOODCODE:MENU<BACON>;V,'CRISPY':
(CIN>>EGGS)OVEREASY//N++(TOAST)/>>LIQ,(O_J)N:(NOPULP)<
Doctor Q is offline   Reply With Quote
Old May 30, 2006, 03:27 PM   #2
yellow
Demi-God (Moderator)
 
yellow's Avatar
 
Join Date: Oct 2003
Location: I love you, food.
Huh. Interesting find, Doc.

I assume you found it looking for alternate way to use the Monte Carlo method for approximating the value of Pi?
__________________
Why do the Vs speak English?
yellow is offline   Reply With Quote
Old May 30, 2006, 04:37 PM   #3
hhlee
macrumors 6502
 
Join Date: May 2005
nice find! i usually look for anything to do with bash and that seems to work well.
hhlee is offline   Reply With Quote
Old Jan 6, 2009, 03:27 PM   #4
MinkysBear
macrumors newbie
 
Join Date: Apr 2008
Location: Ohio
Diff'ing between MS-DOS (FAT32) and Mac OS Extended (Journaled) Volumes

When I ran the command
diff -qr dirA dirB | sort > diffs.txt

I received a lot of notifications that the "._filename.extension" were different on the one volume but not the other. What had happened is that that volume is formatted as MS-DOS (FAT32) and the other is as Mac OS Extended (Journaled).

When I grep'ed through the diffs.txt file, I used the two flags as suggested above but this time removing any of those files that had the ._ in them

grep -v -e '._' diffs.txt
or
grep -v -e ': .' diffs.txt // since the format was "full_path: filename"

... that showed me the real differences between the directories.

Thanks!
__________________
MacBook Pro 15" Core 2 Duo 2.4 GHz 2 GB RAM | 22" HP Widescreen Flat Panel Display | Mighty Mouse | Bluetooth Keyboard
MinkysBear is offline   Reply With Quote

Reply

Mac Forums > Apple Software > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 05:42 PM.

Mac News | Mac Rumors | iPhone Game Reviews | iPhone Apps

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 2002-2010, MacRumors.com, LLC