Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nguyentienlong/2a6bb7b1fa6c9710e11c0176f4f6cb0c to your computer and use it in GitHub Desktop.
Save nguyentienlong/2a6bb7b1fa6c9710e11c0176f4f6cb0c to your computer and use it in GitHub Desktop.
remove break line or enter character at the end of line when combining cat and curl
cat ph_check_page.csv | awk '{ gsub("\r?\n|\r", "", $0); print $0 }' | xargs -I$ curl -s -I $ > ph_link_check.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment