Quote:
Originally Posted by protocomm
Thanks for your answers, but i want work with variables and not directly with the file.
With rsync as comm if i give $var instead the directory directly, i have errors...
|
What are you talking about? You posted example folder1, folder2 so the answers were provided accordingly. What is stopping you from putting the commands in a script, say "compare.sh":
Code:
#!/usr/bin/ksh
f1=$1
f2=$2
dircmp -s $f1 $f2 |grep -v "^ *$" |grep -v Page
Then you can simply pass the arguments to the script:
Code:
ksh compare.sh folder1 folder2
Or I'm completely missing something?