[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] variaveis do sed/bash
From: |
Otávio Fernandes |
Subject: |
Re: [shell-script] variaveis do sed/bash |
Date: |
Mon, 11 Feb 2008 21:51:03 -0200 |
Olá Eduardo,
Eu tenho uma consideracao a fazer que nao eh pertinente ao sed:
Veja:
$ ls -l /tmp/shell_script
total 0
-rw-r--r-- 1 otavio wheel 0 Feb 11 21:45 arq1.txt
-rw-r--r-- 1 otavio wheel 0 Feb 11 21:45 arq2.txt
-rw-r--r-- 1 otavio wheel 0 Feb 11 21:45 arq3.txt
Agora, veja este novo exemplo, repare como ficou o path para o
diretorio de testes:
$ ls -l /tmp/.//shell_script/.//
total 0
-rw-r--r-- 1 otavio wheel 0 Feb 11 21:45 arq1.txt
-rw-r--r-- 1 otavio wheel 0 Feb 11 21:45 arq2.txt
-rw-r--r-- 1 otavio wheel 0 Feb 11 21:45 arq3.txt
Repare que eu inclui um './' no meio do path, e isso nao influiu em
nada no retorno do meu comando. Portando, vc nao tem o porque de
subistituir o './' no seu script, vc pode apenas dar um append e
utilizar normalmente, a unica razao para isso seria _estetica_ ;-).
um abraco,
--
| --
| Otávio Fernandes < otaviof | gmail | com >
| FreeBSD 7.0-PRERELEASE && GNU/Linux User: 283.396
| (( Especial Programação )) http://geekbr.podcastbrasil.com/ -- 0.15
| --
Re: [shell-script] variaveis do sed/bash,
Otávio Fernandes <=