Forum Discussion
nitass
Nov 16, 2015Employee
is scan useful?
e.g.
% set u1 /this_is_where_I_start/lots_of_directories/filename~1.fileextension
/this_is_where_I_start/lots_of_directories/filename~1.fileextension
%
% set u2 /this_is_where_I_start/lots_of_directories/filename.fileextension
/this_is_where_I_start/lots_of_directories/filename.fileextension
%
% scan $u1 {%*[^~]~%d} num1
1
% put $num1
1
%
% scan $u2 {%*[^~]~%d} num2
0