osrename.lua 159 B

1234
  1. print("creating an empty document named 1.txt, renaming it to 2.txt, and closing this example")
  2. os.execute("echo \"!\" > 1.txt")
  3. os.rename("1.txt","2.txt")