Last active
June 14, 2017 01:48
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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