• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved dir /b /aa

zbizu

Legendary OT User
Joined
Nov 22, 2010
Messages
3,323
Solutions
26
Reaction score
2,696
Location
Poland
Hello. I need a linux version of "dir /b /aa" command to get filenames only without any extra data.
I want to use it this way: https://otland.net/threads/tfs-1-x-lib-folder-in-data-like-0-4.228660/
Twl84fn.png
 
I know it does. Need filenames only, not folders.
I understand you want me to learn. I'd find that myself already, but I don't have access to any linux device before monday so I asked here in hope someone could test it quickly.

I don't have any server on linux, just need that command to make my script compatible with it.
 
As @dominique120 suggested, this works fine on Ubuntu 14.04:
Code:
local tmp = assert(io.popen('find . -maxdepth 1 -type f', 'r'))
for line in tmp:lines() do
    print(line)
end
tmp:close()
Replace the dot with the path you want to search.
 
Back
Top