android - Grab last line of 'cat' output without head, tail, sed or awk -


i have directory of files on (older) android device , want cat file comes last in file listing when call ls. on linux computer i'd have no problem that, do

ls | tail -n 1 

but on phone, neither tail, nor head, sed, or awk available. should do?

try:

for in *; :; done; echo "$a" 

Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -