Laur's blog
Sign in Subscribe

batch

A collection of 4 posts
Execute a Command in Every Directory with Bash
bash

Execute a Command in Every Directory with Bash

TL;DR: Use a find-based loop The other day I was wondering how to execute a command in each sub-directory of a project. In python, you have os.walk. In C, I would've probably written myself something just for fun etc. In shell, I know you have find
Jul 13, 2018 1 min read
Delete Dependent Entries of a Table in Oracle PL/SQL
batch

Delete Dependent Entries of a Table in Oracle PL/SQL

The other day I had a task to clean up a database which was populated with a list of records. Unfortunately, my main table is linked to a host of other tables via foreign key dependencies and, to make things worse, no CASCADE constraints are specified. The process I want
Mar 13, 2017 3 min read
Replace a colour in an image with imagemagick
batch

Replace a colour in an image with imagemagick

I had to change the colour of some monochrome icons for a personal project, from black to something else (i.e. not black). I've tried in python with PIL. Unfortunately, my attempts to use ImageOps failed miserably, because I'm working with RGBA images, not RGB :(. Of
Jun 8, 2016 2 min read
Use XPath in PL/PGSQL for Batch Processing
batch

Use XPath in PL/PGSQL for Batch Processing

A while ago I had to process XML loaded in a PostgreSQL database. The task was to extract references from a publication structure. Fortunately, PostgreSQL allows you to use XPath in plpgsql, but there are some things you need to be aware. First, you need to note all namespaces: nsarray
Mar 5, 2016 2 min read
Page 1 of 1
Laur's blog © 2025
  • Sign up
Powered by Ghost