Txt

Byte sized tech know-how.

  • Home
  • About

Tag Archives: batch

25 Jul

top in Batch Mode

Run top in batch mode


top -b -d 10 -n 3
admin Posted in Command Line, Linux batch, cli, command, filler, Linux, top Leave a comment
15 Nov

Shell Script for Batch Convertion of Images

An easier way to batch convert images using the ‘convert’ command…


#!/bin/sh
# An Easy command to use the convert command. Makes sure that the rename problem don't happen

if [ ! -d "Out" ]; then
        mkdir Out
fi

sel="*.*"
if [ # -eq 2 ] ; then
        sel=2
fi

for i in sel; do
        echo -n "Convertingi ... "
        convert 1i Out/$i
        echo "Done"
done
admin Posted in Command Line, Linux batch, command, convert, image, Linux, script, shell 3 Comments

Post navigation

Categories

  • Code
  • Command Line
  • Configuration
  • CSS
  • HTML
  • internet
  • JavaScript
  • Linux
  • Mobile
  • Perl
  • PHP
  • Python
  • Ruby
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Fruitful theme by fruitfulcode Powered by: WordPress
↑