1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#!/bin/sh
if [ "X$1" = "X" ]; then
echo "Falta al menos directorio destino"
exit 1
fi
test -d $1 || mkdir -p $1
# Buscando los preparados para el programa chorrada de Urko Lusa
CHOFILES=`echo *.cho`
echo $CHOFILES found
ALLFILES=allfiles
cat $CHOFILES > $ALLCHOFILES
if [ "X$2" = "X" ]; then
TARGET=$1/eslinux
else
TARGET=$1/$2
fi
cat $ALLFILES | tr '\r' '\n' | sed 's/^$/%/g' > $2
strfile $2
exit
cat $ALLFILES | sed 's/.*$/&¬/g' | tr '¬' '\n' | sed 's/^$/%/g' > $TARGET
strfile $TARGET
#!/bin/sh
CAT=cat
test -e $1 || exit
$CAT $1 | tr '\r' '\n' | sed 's/^$/%/g' > $2
strfile $2
|