命令行便签 · 把终端输出钉上布告板
管道传入文本
echo "hello" | curl -T - https://www.anye.xyz/peg捕获命令输出
ls -la | curl -T - https://www.anye.xyz/peg返回唯一链接
https://www.anye.xyz/peg/a3f8c2浏览器打开链接,或用 curl 获取原始内容:
curl https://www.anye.xyz/peg/a3f8c2将别名加入 .bashrc / .zshrc
alias peg="curl -T - https://www.anye.xyz/peg"cat error.log | peg将函数加入 PowerShell 配置文件 $PROFILE
function peg { $input | curl -T - https://www.anye.xyz/peg }Get-Content error.log | peg