linux下通过命令行获取gmail的新邮件,不需输入@gmail.com部分
#!/bin/bash num="3[1;36m" end="3[0m" read -p "Enter your mail: " name read -p "Enter pass of mail: " pass atom=`wget -qO - https://$name:[email protected]/mail/feed/atom \ --secure-protocol=TLSv1 -T 3 -t 1 --no-check-certificate | grep \ fullcount | sed -e 's/<fullcount>\(.*\)<\/fullcount>//'` echo -e 'You have '$num$atom$end' new letters.'
以上所述就是本文的全部内容了,希望大家能够喜欢。
您可能感兴趣的文章:
- 利用shell编程实现DOS风格的Linux命令行
- Linux命令行和shell脚本编程宝典 Richard Blum
- PHP调用Linux的命令行执行文件压缩命令
- CMD里或登陆远程linux服务器时命令行下复制和粘贴实现方法
- linux命令行下使用curl命令查看自己机器的外网ip
- 在linux中导入sql文件的方法分享(使用命令行转移mysql数据库)
- linux shell命令行参数用法详解
- linux shell命令行选项与参数用法详解
本文由 华域联盟 原创撰写:华域联盟 » linux下通过命令行获取gmail的新邮件
转载请保留出处和原文链接:https://www.cnhackhy.com/16918.htm