|
|
one-liner for bash prompt
I guess what they say about PERL programmers is true after all. :-) You can do this with a shell command that can be typed at the bash prompt. If you prefer tcsh then it will be slightly different.
You can of course use -t or -c by itself, or you can use any of the 3 other options. There's also an even more handy method for finding files other than by basic shell globbing:
That will find all entries in the current directory (.) and its subdirectories that are regular files (i.e. not directories, symlinks, or device special) that match the shell glob '*.xml'. For each flie found it will execute the command replacing {} with the name of the file. A semicolon terminates the parameters to the -exec option and must be backslash escaped (or surrounded in quotes like ';') because otherwise the shell interprets it (as it does in the for command above). One feature I can see with this PERL script is that it does both GetFileInfo and SetFile in one command. For that you'd want to check if the user specified any options then run SetFlie and if the user didn't then run GetFileInfo Also, /Developer/Tools is not by default on the PATH so the PERL script won't even work out of the box.
one-liner for bash prompt
Another stupid question, how do I add /Developer/Tools to the path? I have found some instructions |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.15 seconds |
|