Tag Info

Hot answers tagged

3

The question itself isn't exact too, because the OP talks about: files names like ABC 123456 (without extension), but in the example code using *.txt extension add a dash between two blocks (e.g. where is the space) like ABC - 123456, but in the next taking about counting to 4 and count 3, e.g. not exacltly clear what the script should do for example if ...


2

If your file names are "ABC 123456" with single space between the first 3 and the following, then you are trying to replace the space with a character (or dash or something), so to look like ABC-123456. I found this article that explains how to do that. Example: Note that the following command will only replace spaces with hyphens. If you need a different ...


1

On OS X Yosemite you should add the script in: /Library/LaunchDaemons using this name for the script: com.mysql.mysql.plist and this content: <!--?xml version="1.0" encoding="UTF-8"?--> <plist version="1.0"> <dict> <key>KeepAlive</key> <dict> <key>SuccessfulExit</key> ...


1

You will want to run it through Apple Script and iTerm. tell application "iTerm" make new terminal tell the current terminal activate current session launch session "Default Session" tell the last session write text "unison /folder1 /folder2" end tell terminate the last session end tell end ...


1

You have a couple of errors on your syntax. Replace the following lines: pages=`pdfcount "$f"` pagescut=`$(( ${pages} - 1 ))` With this ones: pages=$(pdfcount "$f") pagescut=$(($pages - 1))



Only top voted, non community-wiki answers of a minimum length are eligible