Windows Equivalent of Unix Shell Script
问题 To begin, please excuse my lack of knowledge on windows batch scripting (even the basic). I would like to ask for help on the equivalent of a working Unix script. This is the working script that I have. #!/bin/bash list=`cat view_tags` for i in $list; do cleartool lsview -l -prop -full $i | grep "Last accessed" >& /dev/null if [ $? -eq 0 ]; then echo -n $i echo " " `cleartool lsview -reg ccase_win -l -prop -full $i | grep "Last accessed" | awk '{print $3}'` else echo $i cannot be found fi