Step 1: Write the vectors in determinant form.
Given,
\[
\vec{r}_1=\hat{i}+\hat{j}+\hat{k}
\]
and
\[
\vec{r}_2=\hat{i}-\hat{j}+\hat{k}
\]
Now,
\[
\vec{r}_1\times \vec{r}_2
=
\begin{vmatrix}
\hat{i} & \hat{j} & \hat{k} \\
1 & 1 & 1 \\
1 & -1 & 1
\end{vmatrix}
\]
Step 2: Expand the determinant.
Expanding along the first row,
\[
\vec{r}_1\times \vec{r}_2
=
\hat{i}
\begin{vmatrix}
1 & 1 \\
-1 & 1
\end{vmatrix}
-
\hat{j}
\begin{vmatrix}
1 & 1 \\
1 & 1
\end{vmatrix}
+
\hat{k}
\begin{vmatrix}
1 & 1 \\
1 & -1
\end{vmatrix}
\]
Now calculate each determinant:
\[
\begin{vmatrix}
1 & 1 \\
-1 & 1
\end{vmatrix}
=
1(1)-1(-1)
=
2
\]
\[
\begin{vmatrix}
1 & 1 \\
1 & 1
\end{vmatrix}
=
1(1)-1(1)
=
0
\]
\[
\begin{vmatrix}
1 & 1 \\
1 & -1
\end{vmatrix}
=
1(-1)-1(1)
=
-2
\]
Therefore,
\[
\vec{r}_1\times \vec{r}_2
=
2\hat{i}-2\hat{k}
\]
Step 3: Find the magnitude of the vector.
Magnitude:
\[
\left|2\hat{i}-2\hat{k}\right|
=
\sqrt{2^2+(-2)^2}
\]
\[
=
\sqrt{4+4}
\]
\[
=
\sqrt{8}
=
2\sqrt{2}
\]
Step 4: Find the unit vector.
The unit vector in the direction of
\[
\vec{r}_1\times \vec{r}_2
\]
is
\[
\frac{2\hat{i}-2\hat{k}}{2\sqrt{2}}
\]
\[
=
\frac{\hat{i}}{\sqrt{2}}-\frac{\hat{k}}{\sqrt{2}}
\]
Step 5: Final conclusion.
Hence, the required unit vector is
\[
\boxed{\frac{\hat{i}}{\sqrt{2}}-\frac{\hat{k}}{\sqrt{2}}}
\]