Syntax
This commit is contained in:
parent
c6c28e5ce4
commit
fffcf01dc7
|
@ -906,21 +906,21 @@ if [ \$no_of_users -gt 0 ]; then
|
||||||
|
|
||||||
if [ ! -f /home/$MY_USERNAME/showusers ]; then
|
if [ ! -f /home/$MY_USERNAME/showusers ]; then
|
||||||
echo '#!/bin/bash' > /home/$MY_USERNAME/showusers
|
echo '#!/bin/bash' > /home/$MY_USERNAME/showusers
|
||||||
echo 'data=$(' >> /home/$MY_USERNAME/showusers
|
echo 'data=\$(' >> /home/$MY_USERNAME/showusers
|
||||||
echo 'cat /tmp/Users.txt | \' >> /home/$MY_USERNAME/showusers
|
echo 'cat /tmp/Users.txt | \' >> /home/$MY_USERNAME/showusers
|
||||||
echo " awk -F ' ' '{" >> /home/$MY_USERNAME/showusers
|
echo " awk -F ' ' '{" >> /home/$MY_USERNAME/showusers
|
||||||
echo ' for(i=1;i<=NF;i++){' >> /home/$MY_USERNAME/showusers
|
echo ' for(i=1;i<=NF;i++){' >> /home/$MY_USERNAME/showusers
|
||||||
echo ' print $i;' >> /home/$MY_USERNAME/showusers
|
echo ' print \$i;' >> /home/$MY_USERNAME/showusers
|
||||||
echo ' }' >> /home/$MY_USERNAME/showusers
|
echo ' }' >> /home/$MY_USERNAME/showusers
|
||||||
echo "}' | \\" >> /home/$MY_USERNAME/showusers
|
echo "}' | \\" >> /home/$MY_USERNAME/showusers
|
||||||
echo ' zenity --list \' >> /home/$MY_USERNAME/showusers
|
echo ' zenity --list \' >> /home/$MY_USERNAME/showusers
|
||||||
echo " --title='$StrMeshUsers' \\" >> /home/$MY_USERNAME/showusers
|
echo " --title='\$StrMeshUsers' \\" >> /home/$MY_USERNAME/showusers
|
||||||
echo " --column='$StrUsername' --column='$StrToxID' \\" >> /home/$MY_USERNAME/showusers
|
echo " --column='\$StrUsername' --column='\$StrToxID' \\" >> /home/$MY_USERNAME/showusers
|
||||||
echo ' --print-column=2 --hide-column=2 --width=250 --height=400)' >> /home/$MY_USERNAME/showusers
|
echo ' --print-column=2 --hide-column=2 --width=250 --height=400)' >> /home/$MY_USERNAME/showusers
|
||||||
echo 'if [ ! $data ]; then' >> /home/$MY_USERNAME/showusers
|
echo 'if [ ! \$data ]; then' >> /home/$MY_USERNAME/showusers
|
||||||
echo ' exit 0' >> /home/$MY_USERNAME/showusers
|
echo ' exit 0' >> /home/$MY_USERNAME/showusers
|
||||||
echo 'fi' >> /home/$MY_USERNAME/showusers
|
echo 'fi' >> /home/$MY_USERNAME/showusers
|
||||||
echo 'echo "$data" | xclip -selection clipboard' >> /home/$MY_USERNAME/showusers
|
echo 'echo "\$data" | xclip -selection clipboard' >> /home/$MY_USERNAME/showusers
|
||||||
chmod +x /home/$MY_USERNAME/showusers
|
chmod +x /home/$MY_USERNAME/showusers
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue