xooguWeb development - PHP, Wordpress, Javascript, Nginx, etc.
  • Home
  • About
  • WordPress Plugins
    • Currency Conversion WordPress Plugin
      • API for developers
      • Changelog
      • FAQ
    • Simple Social Sharing WordPress Plugin
      • Changelog
      • FAQ
    • Geo Text WordPress Plugin
      • Changelog
      • FAQ
    • Geo Targeted Caching plugin for WP Super Cache
    • Dynamic Shortcodes plugin for WP Super Cache
    • Geo Targeted Caching extension for W3 Total Cache
    • Dynamic Shortcodes extension for W3 Total Cache
    • Big River Shopping Site HTML5 Carousel
  • Üm̈l̈äüẗïz̈ër̈

Posts Tagged ‘Dos Batch’

Differences between windows batch and linux bash shell script syntax

6 Replies

Carrying on from my previous post about using scripts created in Windows on Linux, here are some comparisons to show the syntax differences between Windows batch scripts and bash scripts.

  • Comments
  • For loop through files in directory
  • Setting a variable to a number and then printing the variable
  • Execute a command and store the output in a variable
  • If statement
  • While loop
  • Check last command executed OK, if not print error message and exit
  • Zeropad a number to 4 digits

Continue reading →

Posted on June 29, 2012 by xoogu, last updated December 5, 2015
  • Wordpress Plugins

    • Currency Conversion
    • Simple Social Sharing
    • Geo Text WordPress Plugin
    • Dynamic Shortcodes plugin for WP Super Cache
    • Geo Targeted Caching plugin for WP Super Cache
    • Dynamic Shortcodes extension for W3 Total Cache
    • Geo Targeted Caching extension for W3 Total Cache
    • Big River Shopping Site HTML5 Carousel
  • Recent Posts

    • Recreating Adobe Bridge Keywords.xml file from Image metadata
    • CEP, Extendscript, and XMP API – notes so far
    • WordPress stuck in infinite redirect loop
    • Building a PHP extension rather than having it compiled in
    • Stupid mistake it took me ages to fix #8761
  • Archives

    • July 2024
    • April 2019
    • September 2018
    • October 2017
    • May 2016
    • March 2016
    • February 2016
    • January 2016
    • December 2015
    • September 2015
    • March 2015
    • December 2014
    • November 2014
    • July 2014
    • January 2014
    • September 2013
    • August 2013
    • March 2013
    • January 2013
    • August 2012
    • July 2012
    • June 2012
    • February 2012
    • December 2011
    • February 2011
Ashamedly powered by WordPress | Privacy policy