Ticket #3273: clean-cfg.sh

File clean-cfg.sh, 188 bytes (added by Gedare Bloom, on Apr 4, 2020 at 7:29:54 PM)

bash script for automation

Line 
1#!/bin/bash
2
3for f in `find . -name "*.cfg" -printf '%f\n' | sed -e 's/\.cfg//g'`
4do
5  ack -l $f > /dev/null
6  if [ ! $? -eq 0 ]
7  then
8    find . -name ${f}.cfg | xargs git rm
9  fi
10done
11