„TestFile” változatai közötti eltérés

A VIK Wikiből
Ugrás a navigációhoz Ugrás a kereséshez
(Új oldal, tartalma: „{{GlobalTemplate|Infoalap|TestFile}} <pre> #!/bin/bash if [ -f "" ] then echo "A parameterben megadott file egy letezo file." fi if [ -x "" ] then echo "A param…”)
 
 
1. sor: 1. sor:
{{GlobalTemplate|Infoalap|TestFile}}
 
 
 
<pre>
 
<pre>
 
#!/bin/bash
 
#!/bin/bash
27. sor: 25. sor:
  
 
-- [[HederMihaly|Merlin]] - 2005.05.09.
 
-- [[HederMihaly|Merlin]] - 2005.05.09.
 
Vissza Prog2ShellScriptTutorial
 
 
  
 
[[Category:Infoalap]]
 
[[Category:Infoalap]]

A lap jelenlegi, 2013. január 29., 15:56-kori változata

#!/bin/bash

if [ -f "" ] 
then
 echo "A parameterben megadott file egy letezo file."
fi

if [ -x "" ] 
then 
 echo "A parameterben megadott file egy vegrehajthato file."
fi

if [ "" -nt "/usr/bin/mc" ] 
then
 echo "A parameterben megadott file ujabb,mint a /usr/bin/mc ."
fi

if [ "" -ot "/usr/bin/mc" ] 
then
 echo "A parameterben megadott file regebbi,mint a /usr/bin/mc ."
fi

-- Merlin - 2005.05.09.