|
2010-07-14
, 01:34
|
|
Posts: 451 |
Thanked: 424 times |
Joined on Apr 2010
@ England
|
#2
|
|
2010-07-14
, 01:38
|
Posts: 163 |
Thanked: 21 times |
Joined on Feb 2010
@ London UK
|
#3
|
|
2010-07-14
, 01:45
|
Posts: 145 |
Thanked: 25 times |
Joined on Jan 2010
|
#4
|
|
2010-07-14
, 01:57
|
Posts: 486 |
Thanked: 251 times |
Joined on Oct 2009
|
#5
|
it would be great if we had a mini GCC or C++ compiler for the n900 so we can create even little console programs.
|
2010-07-14
, 02:21
|
|
Posts: 414 |
Thanked: 109 times |
Joined on Mar 2007
@ Silicon Valley
|
#6
|
|
2010-07-14
, 02:31
|
Posts: 838 |
Thanked: 292 times |
Joined on Apr 2010
|
#7
|
|
2010-07-14
, 02:59
|
Posts: 670 |
Thanked: 367 times |
Joined on Mar 2009
|
#8
|
The Following User Says Thank You to buurmas For This Useful Post: | ||
|
2010-07-14
, 03:03
|
Posts: 61 |
Thanked: 63 times |
Joined on Apr 2010
|
#9
|
The Following User Says Thank You to Power For This Useful Post: | ||
|
2010-07-14
, 03:23
|
|
Posts: 387 |
Thanked: 1,700 times |
Joined on Feb 2010
@ Cambridge, MA, USA
|
#10
|
The Following User Says Thank You to Ken-Young For This Useful Post: | ||
well I made pearl say 'hello world' and I wrote this in bash...(was too lazy to fill in all the values in the album file)
yea I know this is a joke to real programmers, but to me...how cool to write my first script on my friggin phone. when I typed "galy year" and it spit out the values 1979 1980 1981 1982 1983, I said to myself...perhaps I can really learn bash. like on a train or waiting on the line at the supermarket.
long live easy debian and thank to all who ported it.
long live the n900.
[root@deb-m5v3d:~/scripts]cat galy
### enter (group album label year) to view that column from the albums file ###
#!/bin/bash
convert=
case $1 in
group) convert=$(echo 1) ;;
album) convert=$(echo 2) ;;
label) convert=$(echo 3) ;;
year) convert=$(echo 4) ;;
*) echo "please input group, album, label, or year." ; exit 1 ;;
esac
cut -f$(echo $convert) -d\| albums
[root@deb-m5v3d:~/scripts]cat albums
van halen|album named|record label|1979
ufo|album named|record label|1980
thin lizzy|album named|record label|1981
the doors|album named|record label|1982
al stewart|album named|record label|1983