import subprocess as sp
import json
import os
import sys
for year in range(1980,2015):
print(year)
cmd=f' mv {year}/pl_*.nc plFiles/'
#print(cmd)
sp.run(cmd, shell=True)
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter