Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Explanation of a bash command

Name: Anonymous 2010-07-11 11:06

Hi /prog/,

Can you explain this command for me
for f in *.lib; do mv $f lib${f%%lib}a; done

Name: Anonymous 2010-07-11 11:11

It renames all penis.lib to libpenis.a (for variable penis). Was that really so hard to decipher?
Maybe you should stick to DOS batch files.

Name: Anonymous 2010-07-11 11:45

Fucking Ubanto users.

Name: Anonymous 2010-07-11 14:15

Of course, it would have been much clearer if they had just used the rename command.

Name: Anonymous 2010-07-11 14:58

>>4
Yes, non-standard Perl scripts are so much clearer than established Unix utilities that have been around for fifty years.

Name: Anonymous 2010-07-11 15:30

>>5
bash
standard
nipaaaaaaaa

Name: Anonymous 2010-07-11 16:46

>>6
It is standard on Linux everywhere. Until that /bin/sh -> dash fad started it was all /bin/sh -> bash.

Name: Anonymous 2010-07-11 16:59

>>7
On one of my systems it points to ash.

Name: Anonymous 2010-07-11 18:02

>>8
On mine it points to rc.

Name: Anonymous 2010-07-11 18:37

>>8
Surely not a Linux system, eh?

Name: Anonymous 2010-07-11 21:16

>>8
Your non-standard, friend.

Name: Anonymous 2010-07-12 4:03

$ uname -prs
Linux 2.6.16 i686
$ ls -Shl /bin/sh /usr/local/bin/bash /usr/local/bin/dash /usr/local/bin/jsh /usr/local/bin/mksh /usr/local/bin/v7sh /usr/local/bin/zsh
-rwxr-xr-x  1 root  wheel   682K  4 des  2009 /usr/local/bin/bash
-r-xr-xr-x  3 root  wheel   527K 25 jún  2009 /usr/local/bin/zsh
-r-xr-xr-x  1 root  wheel   213K  4 des  2009 /usr/local/bin/mksh
-r-xr-xr-x  1 root  wheel   113K  4 maí  2009 /bin/sh
-r-xr-xr-x  1 root  wheel    92K 22 jún  2009 /usr/local/bin/jsh
-r-xr-xr-x  1 root  wheel    80K 12 júl 03:54 /usr/local/bin/dash
-r-xr-xr-x  1 root  wheel    36K 22 jún  2009 /usr/local/bin/v7sh

Name: Anonymous 2010-07-12 6:33

Christ I wish I understood Linux. I'm OK with Microsoft OS's (Have been using since MS DOS) but I have never sat down and learned to use Linux properly.

Name: Anonymous 2010-07-12 7:41

I tried to install Linux again over the weekend. The piece of shit just could not connect to a WPA2 base station. Oh, and KDE's piece of shit reports the geometry wrong if you set the window to 40 lines tall. Jesus fuck never again.

Name: Anonymous 2010-07-12 7:42

>>13
You probably should. If not for fun, definitely for the experience and knowing that you can use more than one operating system.

Name: Anonymous 2010-07-12 8:11

>>13
You don't realise just how incredibly bad in every single way Windows is until you've used something else. Most of their OSes have been improvements over the previous versions, but they've all been years behind the state of the art at the time of release in terms of both technology and simple usability.
Not to mention that most applications worth using are still written for Unix-likes, as has been the case for the past fifty years.

Name: Anonymous 2010-07-12 8:37

>>16
You don't realize just how incredibly bad in every single way Linux is until you've used something else. Most of their OSes have been improvements over the previous versions, but they've all been years behind the state of the art at the time of release in terms of both technology and simple usability.
Not to mention that most applications worth using are still written for Windows, as has been the case for the past twenty years.

Name: Anonymous 2010-07-12 8:50

You don't realize just how incredibly bad in every single way computers are until you've used something else. Most of their hardwares have been improvements over the previous versions, but they've all been years behind the state of the art at the time of release in terms of both technology and simple usability.
Not to mention that most applications worth using are still written for iPhone, as has been the case for the past four years.

Name: Anonymous 2010-07-12 8:57

Name: Anonymous 2010-07-12 9:09

>>19
There project for 75$ tablet, Xo-3, Which would make you 'Pads'  obsolete.
http://inhabitat.com/2010/05/27/olpc-to-unveil-xo-3-tablet-prototype-by-the-end-of-this-year/

Name: Anonymous 2010-07-12 9:23

>>20
OLPC? So in the end it'll cost $500, run only Windows and come out in 2045.

Name: Anonymous 2010-07-12 10:13

>>18
Jef Raskin was here. Apple UI designers are loser.

Name: Anonymous 2010-07-12 10:32

>>21

Heh.
Why aren't they making the focus into making the goddamn thing as cheap as fucking possible?

Name: Anonymous 2010-07-12 10:42

>>23
Their design is to make it practical for their targeted use cases. Then they will do the engineering and economical logistics to make it as affordable to their customers.

Name: Anonymous 2010-07-12 10:53

>>24
Are you saying that a touchscreen is more practical?
It might lower costs and have fewer parts, but don't you think the lack of a real keyboard lowers the generalizability of skills?

Name: Anonymous 2010-07-12 10:54

>>24

Also, design-hopping is going to make the engineering and econ logistics inefficient.

Name: Anonymous 2010-07-12 11:07

>>25
I haven't done any research in this matter so I cannot say that touch-screens are more practical than physical keyboards for their targeted use cases. I'm presuming the designers have done their due diligence in this matter. Another thing to consider is the fact that using screens will reduce the orifice area to the internals. This helps with the problem of dirt and sand.

>>26
True, but you do have to realize that this is in the design stage of their next gen product. It's relatively cheap to change designs here, though it is more expensive compared to the spec requirements stage.

Name: Anonymous 2010-07-12 11:11

>>27

I was really prepared to diss the whole idea, but when I listed possible pros they ended up being sort of practical.

Lame.

The design was an automatic negative because of the similarity to the iPad, I suppose. Thankfully I can still hate that.

Name: Anonymous 2010-07-12 11:21

nr 13 here again

Yeah I definitely want to learn to use Linux, but that shit is hard when you're used to doing other stuff. I started out on my fathers computer, and he ran MS OS's exclusively, so that's what I've gotten used to. I do, however, have *two* machines to work on, so I'm going to turn one of them into a linux box and use that one primarily until I get it.

Are there some good resources on Linux, like some 101 stuff along the lines of "If you wanted to do THIS in Windows, you do it like THIS in Linux (or you don't do it in linux because Bad Practice).

My latest problem was that I was trying to install a restricted program which I couldn't get through apt-get, and I have bollocks for idea how to do that on Linux. It had an installer file which I could run as root, but I had no idea where to put it, because I couldn't access /opt which is where I suspect it's *supposed* to go.

Name: Anonymous 2010-07-12 11:52

>>29
That's proprietary for you, friend. You've choose to become dependent upon the goodwill of the master of that software. Since they don't care to help you, you're shit out of luck. This is contrary to free software in which the community is free to share and cooperate. This is the reason why it's not necessarily easy to install the proprietary software and why it's much easier to install free software.

http://www.gnu.org/philosophy/free-sw.html

Name: Anonymous 2010-07-12 15:18

I had no idea where to put it, because I couldn't access /opt which is where I suspect it's *supposed* to go.
if opt doesn't exist, just create it.

Name: Anonymous 2010-07-12 18:16

>>12
months labeled des, mai, jun, jul
Setze jutges d'un jutjat mengen fetge d'un penjat.

Name: Anonymous 2010-07-12 18:23

>>32
Catalan to English translation
Sixteen judges tried eating a liver of a hanged man.

What the fuck?

Name: Anonymous 2010-07-12 19:45

>>31

There was an opt, I just couldn't access it. SUDO didn't help.

But this thread isn't for solving my linux problems so fuck it. I'll make another thread when I get my linux box back and begin installing shit on it again.

Name: Anonymous 2010-07-12 19:57

>>33
Well, if they were sixteen, of course it would be difficult. Figuring out an even scheme (they are judges, they like things even) to cut up the morsel in 16 parts is a difficult task.

Name: Anonymous 2010-07-12 23:30

>>32
lrn2"GRUNNUR"

Name: Anonymous 2010-07-13 5:26

>>33
First of all, this translation is horrible! “Sixteen judges from a jury eat liver from a hanged man” would be a bit better. Also, this is just a tongue twister, so it's not intended to make sense, only being gramatically correct.

My post was only to note that month names are spelled in Catalan. OP may be from Barcelona.

Now try to translate “Un plat pla blau clar ple de pebre negre està”.

Name: Anonymous 2010-07-13 6:13

>>37
something something is black

Name: Anonymous 2010-07-13 7:16

>>37
A blue plate is full of black pepper(Google Translate)

Name: Anonymous 2010-07-13 8:29

>>1
Stop using shitty languages that should never have been created in the first place.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List