maybe: t=`cat text.txt` curl -d $t http:... or if there is more than one line
for i in `cat text.txt` do curl -d $i http.... done On Tue, Jan 18, 2011 at 3:32 PM, Alain Gaeremynck <[email protected]> wrote: > I'm trying to invoke > > curl -d `cat data_file.txt` http://somehost/someurl > > data_file.txt contains something like > > 'data={lots of json here}' > > The problem is that cat is adding line wraps to a very large bit of text > that's on a single line in the data_file.txt. > Any idea on solving my problem? > Alain > _______________________________________________ > mlug mailing list > [email protected] > https://listes.koumbit.net/cgi-bin/mailman/listinfo/mlug-listserv.mlug.ca > > -- ___..___........__.......__ ...|....|__/....|...|......|...|__| ...|....|.....\...|...|__..|...|....| "You must be the change you wish to see in the world." Mohandas K Gandhi _______________________________________________ mlug mailing list [email protected] https://listes.koumbit.net/cgi-bin/mailman/listinfo/mlug-listserv.mlug.ca
