useful scripts and simple functions

I have just published my scripts
it’s simple and useful functions I’v been using it
like Join , Split , Replace , Date and Time to seconds , create directory path and any file extension , Convert To Low Case Char ,and other scripts
Please leave message in this thread if you have any relevant question.

Repository: https://github.com/osamahfarhan/mikrotik

Very interesting and they look very good.

You do not need to use ; at end of each line, only when separating multiple commands on same line.

Not sure if you can on git post with indentation, but it looks better. And long line makes it hard to read,


Eks

:do {:if (!any($F->"$f")) do={:if ([:len $F]=0) do={:set $F [:toarray ""];};:set ($F->"$f") [:parse [/file get "$f" contents]];}} on-error={:log error "error when call Func not found file=$f";:error "not found $f";}

Post it like:

:do {
	:if (!any($F->"$f")) do={
		:if ([:len $F]=0) do={
			:set $F [:toarray ""]
		}
		:set ($F->"$f") [:parse [/file get "$f" contents]]
	}
} on-error={
	:log error "error when call Func not found file=$f";:error "not found $f"
}