Skip to content

Commit 864bfa0

Browse files
Create transform_string.sh
1 parent 39c7629 commit 864bfa0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
USER=cn=lara,dc=example,dc=com
4+
USER=${USER%%,*}
5+
USER=${USER#*=}
6+
USER=$(echo $USER | tr [:lower:] [:upper:])
7+
8+
echo the username is $USER

0 commit comments

Comments
 (0)