OT: Need some shell scripting hints ;)

Konstantin Riabitsev yellowdog-general@lists.terrasoftsolutions.com
Wed Oct 1 15:35:01 2003


--=-rhp/Fmz9HdsEgf3ulYpH
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Wed, 2003-10-01 at 17:28, nathan r. hruby wrote:
> #!/bin/bash
> line=3D`cat file`
> for i in $line; do
>   /bin/something --to $i
> done
>=20
> Would do it.

Only if there are no whitespaces in the lines.

--=20
Konstantin ("Icon") Riabitsev
Duke University Physics Sysadmin

--=-rhp/Fmz9HdsEgf3ulYpH
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iQCVAwUAP3tIJY0kzWT64eO/AQKFfQQAsAPQAc4p0y0piC75e62+n9/FvVrryRvW
IFdzWxzpmAsaxI3+e0q6cnp020K1JwDXYngWLTAb9Ju2ra34jAsnHF5+XjmS8yav
ZqmfW9UqDO0/jdFFh3pf9DVBxSIQ5LbTfAbC7FYy+zy1l9nYaxSAU+atljZOMlhr
ANn4Nl7cB24=
=AM9Z
-----END PGP SIGNATURE-----

--=-rhp/Fmz9HdsEgf3ulYpH--