![](/img/trans.png)
[英]Is it possible to see output from log cat without having the app source code?
[英]Grab last line of 'cat' output without head, tail, sed or awk
我有一個(以上)的Android設備上的文件的目錄,並希望cat
當我打電話自帶最后在文件列表,文件ls
。 現在在我的Linux計算機上,我沒有問題,我可以
ls | tail -n 1
但是在我的手機上, tail
, head
, sed
或awk
都不可用。 所以我該怎么做?
嘗試:
for a in *; do :; done; echo "$a"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.