difficulty with Xdialog --msgbox

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
arivas_2005
Posts: 212
Joined: Sun 25 Feb 2007, 14:39

difficulty with Xdialog --msgbox

#1 Post by arivas_2005 »

regards
I can not see the file list
I use this code

Code: Select all

#!/bin/bash
# extraer lista de archivos seleccionados en rox
f_marcados=$@
dosp=`echo ""$f_marcados"" | sed 's, /,\\|/,g'`
Xdialog --msgbox ""$dosp"" 0 0 
numfiles=`echo "$dosp" | awk -F'|' '{print NF}'`
Xdialog --msgbox $numfiles 0 0 
for i in $(eval echo {1..$numfiles});
	do
	   listado[$i]=`echo ""$dosp"" | awk -F'|' '{print $'$i'}'  | awk '{printf $0, "%s\r\n"}' `
	 done
Xdialog --msgbox  ""${listado[@]}"" 0 0
the Xdialog --msgbox look like this
Attachments
Xdialog-vista.png
(32.32 KiB) Downloaded 126 times
Last edited by arivas_2005 on Sun 24 Sep 2017, 19:38, edited 1 time in total.

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#2 Post by MochiMoppel »

Code: Select all

#!/bin/bash
f_marcados=$(echo "$@" | sed 's, /,\n/,g')
Xdialog --msgbox "$f_marcados" 0 0

Post Reply