User talk:Mdious

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
m (New page: Hello there, might be me that's a bit rusty.. but.. Chris Curran xi include directives script. #!/bin/sh for i in $( ls ); do if [[ "$i" == *.xml ] ; then echo -en "\074xi\072inclu...)
 
m
 
Line 5: Line 5:
 
  #!/bin/sh
 
  #!/bin/sh
 
  for i in $( ls ); do
 
  for i in $( ls ); do
if [[ "$i" == *.xml ]  ;
+
    if [[ "$i" == *.xml ]]  ;
then
+
    then
echo -en "\074xi\072include href=\042"
+
    echo -en "\074xi\072include href=\042"
echo -n $i
+
    echo -n $i
echo -e "\042 xmlns\072xi\075\042http\072\057\057www\056w3\056org\00572001\057XInclude\042 \057\076"
+
    echo -e "\042 xmlns\072xi\075\042http\072\057\057www\056w3\056org\00572001\057XInclude\042 \057\076"
fi
+
    fi
 
  done
 
  done
  
 
Isn't there one "[" too much in the for statement?
 
Isn't there one "[" too much in the for statement?
 
//[[User:Magnusg]]
 
//[[User:Magnusg]]
 +
 +
Fixed [[User:Tsagadai|Tsagadai]] 23:27, 11 January 2009 (UTC)

Latest revision as of 23:27, 11 January 2009

Hello there, might be me that's a bit rusty.. but..

Chris Curran xi include directives script.

#!/bin/sh
for i in $( ls ); do
   if  "$i" == *.xml   ;
   then
   echo -en "\074xi\072include href=\042"
   echo -n $i
   echo -e "\042 xmlns\072xi\075\042http\072\057\057www\056w3\056org\00572001\057XInclude\042 \057\076"
   fi
done

Isn't there one "[" too much in the for statement? //User:Magnusg

Fixed Tsagadai 23:27, 11 January 2009 (UTC)