user1609391
user1609391

Reputation: 455

Cygwin and Curl

I have Cygwin installed with curl in directory C:\cygwin

I am trying to run the below, but I get No such file or directory for INPUT_LIST.TXT. I have the INPUT_LIST.TXT placed in the C:\cygwin. Where should I place the file to make the below work?

xargs curl -sw “%{url_effective}\t %{http_code}\t %{redirect_url}\\n” < INPUT_LIST.TXT

Upvotes: 0

Views: 596

Answers (1)

me_and
me_and

Reputation: 15634

From your comments, I can see you've managed to name your file INPUT_LIST.TXT.txt, not INPUT_LIST.TXT.

You need to do one of the following:

  • Rename the file: mv INPUT_LIST.TXT.txt INPUT_LIST.TXT. You should then be able to run your command as you originally wrote it.
  • Use the file name you've created, finishing your command with < INPUT_LIST.TXT.txt instead of < INPUT_LIST.TXT.

Upvotes: 1

Related Questions