Re: Need to split long lines in mail archives

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



From: James B. Byrne <byrnejb@xxxxxxxxxxxxx>

> What I would like to discover is the functional equivalent
> of this:
> find /path/to/archives/*.html -print | xargs -I {} fmt -s
> {} > {}
> This syntax does not work of course because the xargs file
> name substitution only occurs once in the initial argument
> list of the following command. But, this example does
> describe the effect I wish to obtain, to have the original
> file name receive the reformatted contents.

What about a simple:
find ... | while read F; do ... "$F"; done

JD
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux