| |
| |
| |
|
Comments:
<0> Rado: What does a paste bot do? <1> Hi, is it possible to substitute all spaces in a line with newline's, with one sed command? <1> -e 's/ /\n/' does it only for the first one. <2> 's/ /\n/g' <1> Sometimes I think I'm too dumb for this world.
<3> =D <4> prec, announces URL's here. If you find one of which you like the paste-service behind it, then you might establish it as "official" paste page. <5> hi all <5> I'm having problem with a sed expression. I would like to replace & by &, but not & by &amp; I tried s/'&(^amp;)'/'&'/g (if it matches & but isn't fallowed by amp; replace by &) <5> but.. it don't do anything <4> _ericb, you can try a _placeholder_ replacement, add extra change step. <4> 1) change & to THISWILLNEVERAPPEARINHTML, & to &, that string to &, too. <5> ok <5> that sounds good <6> guys what does :a does? i saw it sed -e :a -e 's/\(.*[0-9]\)\([0-9]\{3\}\)/\1,\2/;ta' <4> nachox, "man sed". <6> ohh, my bad, it's just a label <7> hi, can I (using sed or any other bash util) dump the first / last 1024kb of a file ? <0> Rado: Meh; those kinds of paste bots aren't terribly useful. <0> hq4ever: dd <0> hq4ever: head or tail also.l <7> hi prec <7> it's binary, and dd for some reason can't read from file <7> I did dd if=file of=otherfile count=1024 bs=1024
<0> head -c 1024 <7> won't head tread it like text ? <4> prec, well, I consider some paste-sites overloaded with unused stuff, waste of resources ... so I'd like to focus on the slim ones. <0> hq4ever: Yes and no. <0> hq4ever: dd bs=1024 count=1 ## why doesn't this work? <7> it's not the bs, 1sec i'll pastebin the output for you <8> lol. <7> ok, non of the pastebin's works for me right now (really strange...) so what i'm getting is this : <7> 1024+0 records in <7> 1024+0 records out <7> 1024 bytes (1.0 kB) copied, 0.004018 seconds, 255 kB/s <0> hq4ever: Ja, and? <7> here, please have a look http://google.com/notebook/public/00488414386743714497/BDSaYIgoQpYWY9c8h <0> Does Google have a pastebin now? <0> hq4ever: OK, look in the file named "1024kb" <0> hq4ever: You should see your data there, no? <7> it works <7> :P <7> guess it's just too late or something
Return to
#sed or Go to some related
logs:
azadder ubuntu nxfree client ipset gentoo-sources #perl mysqladmin -u root create mydb .htaccess date.timezone edgy suspend2 howto centos ssh httpd openpty how to install ndisdriver broadcom ubuntu uclibc undefined reference to '__libc_csu_fini'
|
|