Skip to content

Instantly share code, notes, and snippets.

@kesavanm
Created September 14, 2022 02:56
Show Gist options
  • Save kesavanm/116dbf0fa8a1c1d35b929dbb3d54e920 to your computer and use it in GitHub Desktop.
Save kesavanm/116dbf0fa8a1c1d35b929dbb3d54e920 to your computer and use it in GitHub Desktop.
Command line tool to check USCIS status
#!/bin/bash
# curl -s "https://egov.uscis.gov/casestatus/mycasestatus.do" -X POST --data "changeLocale=&appReceiptNum=WAC2290072020&initCaseSearch=CHECK+STATUS"| grep -A1 'Your Current Status'|tail -1
curl -s "https://egov.uscis.gov/casestatus/mycasestatus.do" -X POST --data "changeLocale=&appReceiptNum=WAC2290072020&initCaseSearch=CHECK+STATUS" | tee >(grep -oh '[On|As].*Number \w.*[0-9]' 1>&2) |grep -C1 'Your Current Status'|tail -1|tr -d "\t" |tr -s " "
echo
curl -s "https://egov.uscis.gov/casestatus/mycasestatus.do" -X POST --data "changeLocale=&appReceiptNum=IOE8718023615&initCaseSearch=CHECK+STATUS" | tee >(grep -oh '[On|As].*Number \w.*[0-9]' 1>&2) |grep -C1 'Your Current Status'|tail -1|tr -d "\t" |tr -s " "
@kesavanm
Copy link
Author

Outcome:

As of June 1, 2022, we are actively reviewing your Form I-129, Petition for a Nonimmigrant Worker, Receipt Number IOE8718023615
 Case Is Being Actively Reviewed By USCIS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment