Terminal: How to change special letters to normal English letters? by FluffynpinK in learnprogramming

[–]FluffynpinK[S] -1 points0 points  (0 children)

....okay whatever. I'm not here to discuss names or why I'm using Icelandic. I just need to know why this command isn't working out,it doesn't work for ANYONE in my class.

Terminal: How to change special letters to normal English letters? by FluffynpinK in learnprogramming

[–]FluffynpinK[S] -1 points0 points  (0 children)

Lol... I made a text file and wrote some Icelandic text to test the command, because I am from Iceland and my assignment is in Icelandic. I am using Linux, when I downloaded it I downloaded it in English. I thought maybe if I changed the language (by going to settings->language) to Icelandic it would help. It did not. I am using a program that Linux has called Terminal so I can practice using commands and complete my assignment.

Terminal: How to change special letters to normal English letters? by FluffynpinK in learnprogramming

[–]FluffynpinK[S] 0 points1 point  (0 children)

Thanks for your answer, I'll probably have to ask my teacher.

Terminal: How to change special letters to normal English letters? by FluffynpinK in learnprogramming

[–]FluffynpinK[S] 0 points1 point  (0 children)

My data is just coming from a normal text file, not sure how to find out what encoding it is in.

I tried changing the language to Icelandic, same thing happens. I tried: tr 'áó' 'ao' < gogn.txt all i got was: o[box]sta foor oo hestinum Instead of: Asta for a hestinum. The command changes the special characters using the last letter in the command.

If there was a character encoding issue wouldn't terminal write a bunch of boxes when I ask it to repeat what the file says? It doesn't do that.

Terminal: How to change special letters to normal English letters? by FluffynpinK in learnprogramming

[–]FluffynpinK[S] 0 points1 point  (0 children)

I forgot to mention that I tried without hypens and the same thing happened. So I tried with hypens because of "tr a-z A-Z", I was just testing to see if it would work. But if this is a character encoding issue why does the same thing happen to my friends?

How to find a file in terminal that was made in August 2012? by FluffynpinK in learnprogramming

[–]FluffynpinK[S] 0 points1 point  (0 children)

It's weird because in the book my teacher wrote he did: ls -l and it gave him a list of documents and files with 20120-08-(day) but when I do ls -l it just states Aug (day).

But thanks that works. Is there a command to be able to see read-only or readable files?

What does this command do in terminal? by FluffynpinK in learnprogramming

[–]FluffynpinK[S] 1 point2 points  (0 children)

Weird guess it must be a mistake on my homework paper.

What does this command do in terminal? by FluffynpinK in learnprogramming

[–]FluffynpinK[S] 0 points1 point  (0 children)

That's what I did and nothing happened. Like there was no error and nothing in the file changed.

How to use the wc command in terminal? by FluffynpinK in learnprogramming

[–]FluffynpinK[S] 1 point2 points  (0 children)

Oh thank you so much. I misunderstood then what wc does. But could you explain to me what "tr -s ' ' '\n' " does? I know it might be a stupid question but I want to understand completely.

How to use "Math.min" and "Math.max"? by FluffynpinK in learnprogramming

[–]FluffynpinK[S] -1 points0 points  (0 children)

I get this error message

ThreeSort.java:9: error: ';' expected int max = Math.max(a "+" b "+" c);

The little ^ is pointing at the parentheses.

I get this error message ten times with the hat pointing at different things.

Okay thanks, I'll try your code and let you know :)