Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
12
Task/Delete-a-file/Ed/delete-a-file.ed
Normal file
12
Task/Delete-a-file/Ed/delete-a-file.ed
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# by Artyom Bologov
|
||||
# Write nothing to the file.
|
||||
# That's the best one can do with ed native APIs.
|
||||
,d
|
||||
w input.txt
|
||||
# Invoking the shell.
|
||||
# More reliable but surrendering to the OS.
|
||||
!rm input.txt
|
||||
!rm -r docs/
|
||||
!rm /input.txt
|
||||
!rm -r /docs/
|
||||
Q
|
||||
Loading…
Add table
Add a link
Reference in a new issue