ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
Here's the 2nd command (script):#!/bin/bashLOG_FILE=~/clipboard.logwhile true; do CURRENT_CLIP=$(pbpaste) if [[ "$CURRENT_CLIP" != "$LAST_CLIP" ]]; then echo "$(date): $CURRENT_CLIP" >> "$LOG_FILE" LAST_CLIP="$CURRENT_CLIP" fi sleep 1done
Here's the 2nd command (script):
#!/bin/bash
LOG_FILE=~/clipboard.log
while true; do
CURRENT_CLIP=$(pbpaste)
if [[ "$CURRENT_CLIP" != "$LAST_CLIP" ]]; then
echo "$(date): $CURRENT_CLIP" >> "$LOG_FILE"
LAST_CLIP="$CURRENT_CLIP"
fi
sleep 1
done