blob: 1de73f238731d49e2d69ea4b13729bc2d5c86ff3 (
plain)
1
2
3
4
5
6
7
8
9
10
|
cd src
# Find all core files and move to src
core_files=$(/usr/bin/find -H .. \( -name "*.core" -o -name "*.mdmp" \) 2>/dev/null)
for core_file in $core_files; do
base_name=$(echo $core_file | sed "s/.*\///")
# Move file if it does not already exist
if [ ! -f $base_name ]; then
mv $core_file .
fi
done
|