Reputation: 4619
This works:
curl -Ls -o /dev/null -w %{url_effective} $URL | xargs printf "%s" > /dev/clipboard
whereas this doesn't:
curl -Ls -o /dev/null -w %{url_effective} $URL > /dev/clipboard
Why is that?
Upvotes: 1
Views: 235
Reputation: 8486
two possible solutions
curl -Ls -o /dev/null -w %{url_effective} $URL > filename
cat filename > /dev/clipboard
and
curl -Ls -o /dev/null -w %{url_effective} $URL | putclip
putclip
is in
$ cygcheck -f /usr/bin/putclip
cygutils-extra-1.4.16-2
Upvotes: 1