Files
DBAdmin/inbox/DataBase/PostgreSQL/dba_scripts/remove_ctrl.sh
T
2026-05-18 06:40:19 +00:00

25 lines
251 B
Bash

#!/bin/bash
#!/bin/bash
OLDFILE=$1
usage() {
echo "Usage: $0 oldfile"
exit 1
}
if [ -z "$OLDFILE" ]
then
usage
exit 1
fi
OLDFILE=$1
NEWFILE=x$1
col -bp < $OLDFILE >> $NEWFILE
chmod +x $NEWFILE
rm $OLDFILE
mv $NEWFILE $OLDFILE