Linux终端下执行,用于删除无效的链接文件。
代码如下:#!/bin/sh
usage(){ echo “RemoveBroken 0.1, a shell script to remove broken link files.” echo “License: MIT, (c) chenzhiqiang” echo “Usage:” echo ” $0 –help print this help.” echo ” $0 –path PATH broken links under this PATH will be remove