lolololololololololololol!!!!!
I have to add that word to my vocabulary!
martin@ucfw03 ~ $ dd if=/dev/zero of=bench.dump bs=1024 count=10000000
10000000+0 records in
10000000+0 records out
10240000000 bytes (10 GB) copied, 93.678 s, 109 MB/s
martin@ucfw03 ~ $ dd if=bench.dump of=/dev/null
20000000+0 records in
20000000+0 records out
10240000000 bytes (10 GB) copied, 40.7969 s, 251 MB/s
And now that I have a new (external) HDD:natirips wrote:
- Code: Select all
natirips@natirips-laptop:~$ echo `uptime|grep days|sed 's/.*up ([0-9]*) day.*/1/10+/'; cat /proc/cpuinfo|grep '^cpu MHz'|awk '{print $4"/30 +";}';free|grep '^Mem'|awk '{print $3"/1024/3+"}'; df -P -k | grep -v '(1k|1024)-blocks' | awk '{if ($1 ~ "/dev/(scsi|sd)"){ s+= $2} s+= $2;} END {print s/1024/50"/15+70";}'`|bc|sed 's/(.$)/.1 cm/'
152.1 cm
natirips@natirips-laptop:~$
But I have only 43,6 GiB (out of 250GiB) free HDD space...
natirips@nati-lap:~$ echo `uptime|grep days|sed 's/.*up ([0-9]*) day.*/1/10+/'; cat /proc/cpuinfo|grep '^cpu MHz'|awk '{print $4"/30 +";}';free|grep '^Mem'|awk '{print $3"/1024/3+"}'; df -P -k | grep -v '(1k|1024)-blocks' | awk '{if ($1 ~ "/dev/(scsi|sd)"){ s+= $2} s+= $2;} END {print s/1024/50"/15+70";}'`|bc|sed 's/(.$)/.1 cm/'
377.8 cm
natirips@nati-lap:~$
wurst wrote:@dmmh how big it has to be to be able to break a brick out from taj mahal?www.shortnews.de wrote:Niederlande: "Swaffelen" (mit dem Penis schlagen) wird Wort des Jahres
In Deutschland wurde erzkonservativ "Finanzkrise" zum Wort des Jahres gekürt, die Holländer nehmen es da etwas humorvoller. Sie wählten das "Swaffelen" zu ihrem Wort des Jahres.
"Swaffelen" bedeutet so viel wie mit dem leicht erigierten Penis seinen Sexualpartner oder Objekte schlagen. Eingeführt hatte es ein 17-jähriger Holländer, als er bei seinem Indienurlaub mit seinem Handy aufnahm, wie er seinen Penis gegen die Mauer des Taj Mahal schlug.
Auf YouTube verbreitete sich das eingestellte Video dann rund um die Welt. Die Uni, wo der 17-Jährige studierte, exmatrikulierte ihn und entschuldigte sich beim indischen Botschafter für dessen respektlose Handlung. In Holland ist das Wort "Swaffelen" genauso beliebt, wie bei uns das "Geiz ist geil."
I guess my new machine has to big a brother for this script and the scrips can't handle it:Unclefragger wrote:just paste this command into a terminal:
- Code: Select all
echo `uptime|grep days|sed 's/.*up ([0-9]*) day.*/1/10+/'; cat /proc/cpuinfo|grep '^cpu MHz'|awk '{print $4"/30 +";}';free|grep '^Mem'|awk '{print $3"/1024/3+"}'; df -P -k | grep -v '(1k|1024)-blocks' | awk '{if ($1 ~ "/dev/(scsi|sd)"){ s+= $2} s+= $2;} END {print s/1024/50"/15+70";}'`|bc|sed 's/(.$)/.1 cm/'
and tell us your score ;)
natirips@nati-desk:~$ echo `uptime|grep days|sed 's/.*up ([0-9]*) day.*/1/10+/'; cat /proc/cpuinfo|grep '^cpu MHz'|awk '{print $4"/30 +";}';free|grep '^Mem'|awk '{print $3"/1024/3+"}'; df -P -k | grep -v '(1k|1024)-blocks' | awk '{if ($1 ~ "/dev/(scsi|sd)"){ s+= $2} s+= $2;} END {print s/1024/50"/15+70";}'`|bc|sed 's/(.$)/.1 cm/'
sed: -e izraz #1, znak 27: unknown option to `s'
5464
natirips@nati-desk:~$
natirips@nati-desk:~$ echo `uptime|grep days|sed 's=.*up ([0-9]*) day.*=1=10+/'; cat /proc/cpuinfo|grep '^cpu MHz'|awk '{print $4"/30 +";}';free|grep '^Mem'|awk '{print $3"/1024/3+"}'; df -P -k | grep -v '(1k|1024)-blocks' | awk '{if ($1 ~ "/dev/(scsi|sd)"){ s+= $2} s+= $2;} END {print s/1024/50"/15+70";}'`|bc|sed 's/(.$)/.1 cm/'
sed: -e izraz #1, znak 27: unknown option to `s'
5488
natirips@nati-desk:~$ echo `uptime|grep days|sed 's=.*up ([0-9]*) day.*=1=10+='; cat /proc/cpuinfo|grep '^cpu MHz'|awk '{print $4"/30 +";}';free|grep '^Mem'|awk '{print $3"/1024/3+"}'; df -P -k | grep -v '(1k|1024)-blocks' | awk '{if ($1 ~ "/dev/(scsi|sd)"){ s+= $2} s+= $2;} END {print s/1024/50"/15+70";}'`|bc|sed 's/(.$)/.1 cm/'
sed: -e izraz #1, znak 27: unknown option to `s'
5488
natirips@nati-desk:~$ echo `uptime|grep days|sed 's=.*up ([0-9]*) day.*/1=10+='; cat /proc/cpuinfo|grep '^cpu MHz'|awk '{print $4"/30 +";}';free|grep '^Mem'|awk '{print $3"/1024/3+"}'; df -P -k | grep -v '(1k|1024)-blocks' | awk '{if ($1 ~ "/dev/(scsi|sd)"){ s+= $2} s+= $2;} END {print s/1024/50"/15+70";}'`|bc|sed 's/(.$)/.1 cm/'
5488
natirips@nati-desk:~$ echo `uptime|grep days|sed 's=.*up ([0-9]*) day.*/1=10+='; cat /proc/cpuinfo|grep '^cpu MHz'|awk '{print $4"/30 +";}';free|grep '^Mem'|awk '{print $3"/1024/3+"}'; df -P -k | grep -v '(1k|1024)-blocks' | awk '{if ($1 ~ "/dev/(scsi|sd)"){ s+= $2} s+= $2;} END {print s/1024/50"/15+70";}'`|bc|sed 's/(.$)/.1 cm/'
5488
natirips@nati-desk:~$ echo `uptime|grep days|sed 's=.*up ([0-9]*) day.*=1/10+='; cat /proc/cpuinfo|grep '^cpu MHz'|awk '{print $4"/30 +";}';free|grep '^Mem'|awk '{print $3"/1024/3+"}'; df -P -k | grep -v '(1k|1024)-blocks' | awk '{if ($1 ~ "/dev/(scsi|sd)"){ s+= $2} s+= $2;} END {print s/1024/50"/15+70";}'`|bc|sed 's/(.$)/.1 cm/'
5488
natirips@nati-desk:~$
So it should have 3 separators, but yours has 4:man sed wrote:
- Code: Select all
s/regexp/replacement/
Attempt to match regexp against the pattern space. If success‐
ful, replace that portion matched with replacement. The
replacement may contain the special character & to refer to
that portion of the pattern space which matched, and the spe‐
cial escapes \1 through \9 to refer to the corresponding match‐
ing sub-expressions in the regexp.
sed 's/.*up ([0-9]*) day.*/1/10+/'
Who is onlineUsers browsing this forum: No registered users and 5 guests |
Misc
|