#!/bin/csh -f # trumpdayone # ----------------------------------------------------------------------------- # Shell script to show my guess at what Trump will do Day One in 2025. # ----------------------------------------------------------------------------- # Get options while ($#argv > 0) if ("$1" == "-h" || "$1" == "--help") then echo "Show 2025 Trump Day One actions, promised and actual" echo "Usage: $0:t [options] [search_string...]" echo "Options:" echo " -h = Show this help text" echo " --help = Show this help text" echo "Args:" echo " search_string = Show only lines containing ony of the" echo " search strings" exit 1 else if ("-" == "`echo $1:q | cut -c 1`") then beep "Error: Invalid option: '$1:q'" $0 --help exit 1 else # Doesn't start with "-". Assume it's the first argument. break endif end if ($#argv == 0) then # Echo only libes that start with "1" for Day One grep --color "^1[ \\\*]" ~/fred/admin/trump.lis else while ($#argv > 0) echo -n "$1:q" echo ":" grep --color "^1[ \\\*]" ~/fred/admin/trump.lis | grep -i --color "$1:q" shift end endif (set echo; open https://www.nytimes.com/interactive/2025/us/trump-agenda-2025.html)