Comparing two files

From Wiki
Jump to: navigation, search
# cat dells/sortidaudells.txt | while read line
> do
> if [[ `grep $line tmp/ss.txt` ]]
> then
> echo $line si esta
> else
> echo $line no esta
> fi
> done > /tmp/sortida2.txt


 cat 192.168.4.x.txt | while read line; do grep $line proxy.txt > /dev/null ; if [[ $? -eq 1 ]]; then echo "$line not in proxy"; fi; done
Personal tools
Namespaces
Variants
Actions
Navigation
Content
Toolbox