maked sed command idempotent