trying to diff new files in a dir
cd ${PWD}
for line in $(ls *.new)
do
# lists all new files and then 2nd variable strips the .new extension of the files
echo ${line} ${line} | sed 's/\(.*\)..../\1/'
diff ${line} ${line} | sed 's/\(.*\)..../\1/'
# this doesnt seem to work
# tried this way and still not working
file1 = ${line}
file2 = ${line} | sed 's/\(.*\)..../\1/'
diff ${file1} ${file2}
collabrpt_cslbos.new collabrpt_cslbos
diffusql[7]: file1: not found
diffusql[8]: file2: not found
diff: two filename arguments required
dam.usql.new dam.usql
diffusql[7]: file1: not found
diffusql[8]: file2: not found
diff: two filename arguments required
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.