在Unity中,我能够轻松地将通用接口映射到通用实现,因此对于所有的ISomething,我都可以将SomethingImpl映射为单一注册。 var container = new UnityContainer();
//Map all generic repositories to their concrete generic implementations.
container.Regi
#!/bin/bash
if [ -f "$1" ] #parameter is file name, if i exists...
then
VARIABLE=`cat "$1"` #assign what's inside into VARIABLE
fi
我试过bash -x script_01.sh "file"和跟踪工作: + '[' -f file ']'
++