#!/bin/sh cd public/emoji; for EMOJI in *; do BASENAME=${EMOJI%.*} echo "s|:${BASENAME}:||g; " done