add random stuffs
This commit is contained in:
11
untitled_script.sh
Normal file
11
untitled_script.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
while IFS= read -r line; do
|
||||
row=""
|
||||
for (( i=0; i<${#line}; i++ )); do
|
||||
char="${line:i:1}"
|
||||
row+="$char$char"
|
||||
done
|
||||
echo "$row"
|
||||
echo "$row"
|
||||
done
|
||||
Reference in New Issue
Block a user