scripts

  1. M

    Shell Script for splitting PDF pages vertically, removing blank pages and white borders

    So I'm trying to process PDF documents containing shipping labels the following way: Each A4 page in landscape orientation contains two A5 shipping labels side by side, so simply split each A4 page vertically into two A5 pages. Remove any blank pages. Remove white borders from each page. I...
  2. Josh Rea

    Solved Shell Scripting Output to File and Screen

    Hello all, I wrote a script to direct all output to a log file, but I'd like to echo certain things during the process of the script to screen output if I can. I haven't been able to find anything related to this searching online, and the man page for sh is cryptic for me (as of now). Sample of...
  3. T

    /etc/rc.d/bluetooth - enable or disable variable?

    When I run the bluetooth script I notice it doesn't have any variables: root@www# service bluetooth rcvar # bluetooth # compare to another random service root@www# service ntpd rcvar # ntpd # ntpd_enable="YES" # (default: "") so, most other services have an "enable" variable that I can put...
  4. Phishfry

    Backup script with tar

    I need some help. Will someone proof-read my backup script. Summary- APU3 - FreeBSD Headless Wireless AP on 4GB SDCARD Using NFSv3 I have /raid1 nfs share mount. I have a sub-directory /raid1/apu3-backup/ for the tar file. So I want to back up entire system Live except for unneeded files. I am...
  5. csptra

    read grep pattern from variable

    Hello, I'm sure this is easy, but trying to figure this out: I see a similar example here: but can't get it to work: http://www.unix.com/shell-programming-and-scripting/44975-how-grep-variable-pattern.html but I have a basic code structure like this: #!/bin/sh pattern="hello|help" while...
  6. eriknstr

    Other Safely rename files to their SHA1 sum + ext on FreeBSD 11

    I have a collection of files with external origin which had bad names. The worst characters that they contained were some UTF-8 characters and the single quotation mark. Aside from these characters, there were other unwanted characters such as spaces in the file names. For this collection of...
Top