- LinuxManipulação de Arquivos e Pastas (Shell)
- LinuxShell no LinuxInterface de Linha de Comando (Linux)
- LinuxShell no LinuxShell Script
Considere o shell script dado a seguir:
#!/bin/ksh
file=$1
if [ -f $file ]
then
echo "$file"
else
echo "======"
fi
exit
Quando este script é executado com o dado de entrada ‘teste.dat’ e o arquivo ‘teste.dat’ existe no diretório onde o script é executado o resultado é: