Hi
I need help with the following code:
#!/bin/bash
log_file="/etc/file1.log"
LIST="a A b B c C d D e E f F g G h H i I j J k K l L m M n N o O p P q Q r R s S t T u U v V w W x X y Y z Z 0 1 2 3 4 5 6 7 8 9 ! � $ % ^ & ( ) , . / ; ' # [ ] { } : @ ~ < > ?"
for a in $LIST
do
for b in $LIST
do
for c in $LIST
do
for d in $LIST
do
for e in $LIST
do
for f in $LIST
do
for g in $LIST
do
for h in $LIST
do
for i in $LIST
do
for j in $LIST
do
for k in $LIST
do
for l in $LIST
do
for m in $LIST
do
echo -n " $a$b$c$d$e$f$g$h$i$j$k$l$m " >> $log_file
echo -n " $a$b$c$d$e$f$g$h$i$j$k$l$m "
done
done
done
done
done
done
done
done
done
done
done
done
done
Is there a way to shorten the above code and still produce the same outcome?
Thank you