resolved – how to remove whitespaces in expect – tcl language
Here's the way to remove whitespaces automatically when using expect/tcl language: If $line is the string variable that you wanna remove whitespaces, just replace $line with the following in your...
View Articleremove duplicate images using fdupes and expect in linux
I've got several thousands of pictures, but most of them had several exact copies of themselves. So I had to remove duplicate ones by hand firstly. Later, I thought of that in linux we had md5sum which...
View Articleself defined timeout for telnet on Linux
telnet's default timeout value is relative high, so you may want to change timeout value to lower value such as 5 seconds. Here's the way that we can fulfill this: #!/bin/bash timeout() { waitfor=5...
View Article
More Pages to Explore .....