| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | ffind = del |
Hi Winston.
02-Jun-03 07:29:25, Winston Smith wrote to Renato Zambon
WS> The classical method for deleting a file list is to use a looping
WS> mechanism and a postional parameter. I am not exactly sure how
WS> 4DOS works, but in UNIX it would be something like:
WS> If there is no WHILE statement, then folks usually use the "empty"
WS> error condition, A LA --::
# DELIT -- Delete a file list.
ON %1ERROR GOTO DONE
:LOOP del %1
shift goto
:LOOP
:DONE echo Done.
WS> Of course, you can use FOR and WHILE loops to make things easier,
WS> but that is the basics.
yeah for helps: in bash (unix): for x ; do rm $x ; done
otoh this works too: rm `cat delete.lst`
or maybe something using xargs would be better?
WS> if there are more file names than shell array namespace can handle,
with unix that's usually plenty, with 4dos it's about 512 bytes :(
another 4dos approach (compatible with version 4 and up) is
for x in ({at}delete.lst) do del %x
---
* Origin: Bushido does not mean what it sounds like. (3:640/1042)SEEN-BY: 633/267 270 @PATH: 640/1042 531 954 774/605 123/500 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.