rename 's/\.bak$/.txt/' *.bak
time ls
ulimit -Sv 1000 # 1000 KBs = 1MB
ulimit -Sv unlimited # remove limit
timeout 10s ./script.sh
rename 's/\.bak$/.txt/' *.bak
time ls
ulimit -Sv 1000 # 1000 KBs = 1MB
ulimit -Sv unlimited # remove limit
timeout 10s ./script.sh