reorganise more old stuff
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
parent
bd2765c540
commit
c23bfc5a82
54 changed files with 3 additions and 562 deletions
|
|
@ -1,14 +0,0 @@
|
|||
FILE=/tmp/replace-`date +%s`
|
||||
OLD_STRING=/usr/old-files/bin
|
||||
NEW_STRING=/usr/bin
|
||||
|
||||
if [ $# -ne 1 ]; then
|
||||
echo neo
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ `grep "$OLD_STRING" "$1"` ]; then
|
||||
echo "$1"
|
||||
cat "$1" | sed "s,$OLD_STRING,$NEW_STRING,g" > "$FILE"
|
||||
mv "$FILE" "$1"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue