[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Shell Script



Carlos Júnior ..::.. Boa Noite BH wrote:
Olá, como faço para isto funcionar?

#!/bin/sh
data = `date +%d%m%Y
touch teste.$data

ta dando esse erro

$ sh teste.sh
teste.sh: line 2: unexpected EOF while looking for matching ``'
teste.sh: line 4: syntax error: unexpected end of file

= inesperado fim do arquivo procurando a ` par
falta a ` ao final da linha do date
o intérprete segue lendo o arquivo até a outra aspa
e acha o fim antes de tempo

--
Guillermo Pereyra Irujo
Tandil, Argentina



Reply to: