![]() |
Forum Index : Microcontroller and PC projects : CMM2: Simple file "find" tool
Author | Message | ||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
Hi folks, It's been a few weeks since I've offered anything, so here is a byproduct of my current efforts, a simple file finder that searches recursively from the CWD$ against a pattern that supports * and ? wildcards: find.zip > *find *.png A:/mmbasic-scratch/led/tom-thumb-new.png A:/others/Defender/DefenderLogo24bit.png A:/others/Defender/mountains.png A:/others/Defender/particles.png A:/others/Defender/sprites.png A:/others/Max-E-Man/Assets/Max-E-Man_Assets.png A:/others/Max-E-Man/Assets/Max-E-Man_Maze.png A:/welcome-develop/games/guardian/GuardianLogo.png A:/welcome-develop/games/guardian/mountains.png A:/welcome-develop/games/guardian/particles.png A:/welcome-develop/games/guardian/sprites.png A:/welcome-develop/games/lunar/LanderPict.png A:/welcome-develop/menu/logo-large.png A:/welcome-develop/menu/logo-small.png A:/welcome-develop/sprites/ghost/background.png A:/welcome-develop/sprites/ghost/ghost.png A:/welcome-develop/sprites/playing-cards/playing_cards_deck.png A:/www.c-com.com.au/mmhelp/Atan2definition.png A:/zzz-not-cmm2/misc/zx-spectrum/thwack-man/sprites-png/cat_down.png A:/zzz-not-cmm2/misc/zx-spectrum/thwack-man/sprites-png/cat_left.png A:/zzz-not-cmm2/misc/zx-spectrum/thwack-man/sprites-png/cat_up.png A:/zzz-not-cmm2/misc/zx-spectrum/thwack-man/sprites-png/moose_down.png A:/zzz-not-cmm2/misc/zx-spectrum/thwack-man/sprites-png/moose_left.png A:/zzz-not-cmm2/misc/zx-spectrum/thwack-man/sprites-png/moose_up.png A:/zzz-not-cmm2/ozmoo/documentation/MemoryMap.png A:/zzz-not-cmm2/ozmoo/examples/DragonTrollMap.png A:/zzz-not-cmm2/ozmoo/screenshots/aventyr.png A:/zzz-not-cmm2/ozmoo/screenshots/curses.png A:/zzz-not-cmm2/ozmoo/screenshots/germangame.png A:/zzz-not-cmm2/ozmoo/screenshots/hollywood.png A:/zzz-not-cmm2/ozmoo/screenshots/minizork.png Note that because I wrote this for my own purposes it doesn't recurse into directories named ".git", but should you require otherwise it is easily changeable in the source-code, just search for the string ".git" Hope it's useful, Tom Edited 2020-11-23 00:40 by thwill MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
elk1984![]() Senior Member ![]() Joined: 11/07/2020 Location: United KingdomPosts: 228 |
Another one for my PATH ![]() |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |