I need to insert text from one file into another with 'cat'
gives the following error message: not directory
the files are separate folders and have long names with special symbols.
I attach a copy for the exercise.
file of folder BASE are dragged to texbox 1 (REPORTE -BASE-) and file folder 2 are dragged to in texbox 2 ("Correo principal -1- )
code
Code: Select all
#!/bin/sh
CAPTURA=`yad --title="List archivos - drag and drog-" --geometry=500x400 \
--form --separator="©" \
--field="REPORTE -BASE-:TXT" \
--field="Correo principal -1- :TXT" \
--field="Reenvio -2-:TXT" \
--field="Respuesta -3-:TXT"`
##echo "$CAPTURA"
#echo "========================0"
#"$names" "$occupation" "Type your comments here" > /tmp/config
REPORTE=`echo "$CAPTURA" | awk -F"©" '{print $0}' | sed 's/©\+//g'`
Correop=`echo "$CAPTURA" | awk -F"©" '{print $1}' | sed 's/©\+//g'`
Reenvio=`echo "$CAPTURA" | awk -v FS=© '{print $2}' | sed 's/©\+//g'`
Respuesta=`echo "$CAPTURA" | awk -v FS=© '{print $3}' | sed 's/©\+//g'`
#REPORTE=`echo "$CAPTURA" | cut -d"©" -f1`
echo "$Correop"
echo "_____________________________"
# lines command problem 'cat'
cat "$Correop"
cat "$Correop">> "$REPORTE"
#######################