$ script --id="1.0.0.1 1.0.0.2 1.0.0.3" # split the resulting variable on spaces $ cat >id.dat 1.0.0.1 1.0.0.2 1.0.0.3 $ script --id=@id.dat