#!/bin/bash
NUM=1 && find . -name "*" -exec bash -c "NUM=2; echo $NUM" \;