Uncategorized

How to delete multiple files using TCL?

In TCL, deleting a single file is easy, just type:
file delete filename
However, if you want to delete hundreds of lines, simply typing file delete filenames* does not work. Instead, I found the following to work:
eval file delete [glob filenames*]

var _gaq = _gaq || []; _gaq.push([‘_setAccount’, ‘UA-24872537-1’]); _gaq.push([‘_trackPageview’]); (function() { var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true; ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl’ : ‘http://www’) + ‘.google-analytics.com/ga.js’; var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s); })();

Advertisements

5 thoughts on “How to delete multiple files using TCL?

  1. Was not able to get the above scripts to work, but the following script I was able to get all .txt files to delete. Just have to change the extension for the file type. eval file delete [glob nocomplain *.txt]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s