Skip to content

Instantly share code, notes, and snippets.

@kesavanm
Last active August 16, 2025 03:21
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=WACXXXXXXXX&initCaseSearch=CHECK+STATUS"| grep -A1 'Your Current Status'|tail -1
curl -s "https://egov.uscis.gov/casestatus/mycasestatus.do" -X POST --data "changeLocale=&appReceiptNum=WACXXXXXXXX&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=IOEXXXX&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

kesavanm commented Sep 14, 2022

Outcome:

As of June 1, 2022, we are actively reviewing your Form I-129, Petition for a Nonimmigrant Worker, Receipt Number IOEXXXX
 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