# 1. Extract 2026+ records
# We use -F'[:,"}]' to treat colons, commas, and quotes as separators
# This puts the timestamp value (1777813074) into field $3
grep '^{"Timestamp":' datafile | awk -F'[:,"}]' '$4 >= 1735689600' > datafile.NEW

# 2. Extract Archive records (Pre-2026)
grep '^{"Timestamp":' datafile | awk -F'[:,"}]' '$4 < 1735689600' > OLDdatafile

# 3. Verify the split
echo "New file line count: $(wc -l < datafile.NEW)"
echo "Archive file line count: $(wc -l < OLDdatafile)"
tail -n 3 datafile.NEW

