blob: 1d47db0283e3c6ef5c733fde1032ce6ff3921e24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/sh
# Exit on error
set -e
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <file>" >&2
exit 1
fi
FILE="$1"
if [ ! -f "$FILE" ]; then
echo "Error: File not found: $FILE" >&2
exit 1
fi
# Remove emojis in-place (Unicode aware via perl)
perl -CSDA -i -pe 's/\p{Extended_Pictographic}//g' "$FILE"
echo "Emojis removed from $FILE"
|