Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想写一个bash脚本,可以解析android appstore中应用的版本号。例如这个应用程序,https://play.google.com/store/apps/details?id=com.alphonso.pulse&hl=en
如何从页面右侧的当前版本标题中获取值“3.0.6”?
$ site=https://play.google.com/store/apps/details?id=com.alphonso.pulse $ curl -s $site | sed -rn 's/.*(Current Version:)[^0-9]*([0-9.]+).*/\1\2/p' Current Version:3.0.6 $ curl -s $site | sed -rn 's/.*Current Version:[^0-9]*([0-9.]+).*/\1/p' 3.0.6