Yes, and this one works out of the box (something is wrong with 4.1?)Here's a version using gtkdialog checkboxes:
I did not have a look into the 5.0 script yet, but i must say:
Great Work!
Fantastic!
Yes, and this one works out of the box (something is wrong with 4.1?)Here's a version using gtkdialog checkboxes:
Yes, by having a look into previous scripts, i meant to know this already.jpeps wrote:Works on my end. If you hack the script, all bets are off.
Code: Select all
#echo -e "$(Xdialog --title "$WTITLE $WMTUSER" --stdout --no-cancel --editbox /tmp/applist_tmp 16 50)" >/usr/share/applications-desktop-files/$SPATH/applist-new
EdNewList="$(Xdialog --title "$WTITLE $WMTUSER" --stdout --no-cancel --editbox /tmp/applist_tmp 16 50)"
#echo -e $EdNewList >/usr/share/applications-desktop-files/$SPATH/applist-new
# remove old list
if [ "$EdNewList" != "" ]; then
rm /usr/share/applications-desktop-files/$SPATH/applist
fi
# put into file
for i in $EdNewList
do
if [ "$EdNewList" != "" ]; then
echo -e $i >> /usr/share/applications-desktop-files/$SPATH/applist
fi
done
Code: Select all
/tmp $ cat batch-list
CPUtemp_usage-2.0
flashplayer
Wouldn't it be better to have them all in one list,vs tacked on arbitrarily asdisciple wrote:Could you please add your gtkdialog apps to the index of programs using gtkdialog?
Thanks.
Code: Select all
/root/.config/rox.sourceforge.net/ROX-Filer/menus2
/root/.config/rox.sourceforge.net/ROX-Filer/Options
I encounted this when building D-lite puppy -recobayu wrote:hi everyone,
i want to ask you a question.
i make a pet that can setting my rox. actually, this pet is a small part of my big .pet. i just want to make easy, because every come a new varian puppy linux, i download it, try it, and then i must setting everything i want and that is eat my time. so i make an easy pet to setting that.
then my problem was appear when i use another puppy (not lupu, in my case is dpup exprimo). after i install my pet, rox got hang if i go to directory /proc.
i have 2 files in my pet,there are:can anyone explain that?Code: Select all
/root/.config/rox.sourceforge.net/ROX-Filer/menus2 /root/.config/rox.sourceforge.net/ROX-Filer/Options
thanks.
Code: Select all
#!/bin/sh
echo "\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[english]{babel}
\begin{document}
Hi guys, I have an exercise for you.. Can you answer this question?
">recobayu.tex
for i in {1..15};do
echo "$i.">>recobayu.tex
x1=$((RANDOM%10+1))
x2=$((RANDOM%10+1))
#x" + bx + c =0
b=-$(($x1+$x2))
c=$(($x1*$x2))
echo "$ (x-$x1)(x-$x2)=0 \Leftrightarrow x^2 $((b)) x + $c =0 $
">>recobayu.tex
done
echo "\end{document}">>recobayu.tex
pdflatex recobayu.tex recobayu.pdf
evince recobayu.pdf
Code: Select all
ls /bin >databaseku
ls /usr/bin >>databaseku
ls /usr/local/bin >> databaseku
ls /sbin>>databaseku
ls /usr/sbin>>databaseku
Code: Select all
echo $PATH|cut -d ":" -f2
Code: Select all
for p in ${PATH//:/ }; do
echo $p; echo ===== # header
ls $p
echo ----- # footer
done > databaseku
Code: Select all
find ${PATH//:/ } > databaseku
Code: Select all
grep "<Menu label" /root/.jwmrc|cut -d'"' -f2
Code: Select all
grep Program /root/.jwmrc|cut -d'"' -f2
Not very fast, not very elegant, but something like this should do:recobayu wrote:How to print the submain and save it into separate files based on the main name?
Code: Select all
#!/bin/bash
OUTPUTDIR=/tmp/menutest
[ -d "$OUTPUTDIR" ] && rm "$OUTPUTDIR"/* || mkdir "$OUTPUTDIR"
while read line;do
C=$(echo -n $line |grep '<Menu label' | cut -d" -f2)
I=$(echo -n $line |grep '<Program label' | cut -d" -f2)
[ "$C" ] && CATEGORY="$C"
[ "$I" ] && MENUITEM="$I" && echo "$MENUITEM" >> "$OUTPUTDIR/$CATEGORY".txt
done < /root/.jwmrc
Code: Select all
#!/bin/bash
a=(`grep "<Menu label" /root/.jwmrc|cut -d\" -f2`)
#indeks
for i in ${!a[*]};do
sed -e '/"'${a[$i]}'"/,/"'${a[$((i+1))]}'"/!d' /root/.jwmrc|grep "Program label"|cut -d '"' -f2>"$i${a[$i]}.txt"
done
I am always very impressed by people who can use sed grep and awk, but the truth is this can only be read by Daleksrecobayu wrote:sed -e '/"'${a[$i]}'"/,/"'${a[$((i+1))]}'"/!d' root/.jwmrc|grep "Program label"|cut -d '"' -f2>"$i${a[$i]}.txt"
done