First  |  Prev |  Next  |  Last
Pages: 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
Temporary environment variable assignment
I want to assign an environment variable temporarily, execute a command, and then erase the variable. According to the Bash manual and the "env" manual, these commands should both print "1": x=1 echo $x env x=1 echo $x However, they both print an empty string. What am I doing wrong? For reference, the Bas... 14 Apr 2010 02:13
Moving average
Does anyone know a simple way to create the n-point moving average of a set of numbers in a file in a shell script? I would think awk might be able to do it in some way, though I don't have a clue how. dave ... 18 Apr 2010 13:03
Another chess related text file processing problem
Further to my previous message on processing PGN files, I have another problem. I want to get my own chess rating (it uses a system called Elo) from a list of my own games in PGN format. The user name of the players is given by the two fields White and Black: [White "black-river"] [Black "g8wrb"] and the r... 13 Apr 2010 21:49
Free Online Subversion Training
Provider of Enterprise Subversion Products is Sponsoring a Series of Free Subversion Training Courses San Ramon, CA April 13, 2010 – WANdisco, a leading provider of infrastructure software for replication, scalability and high availability, and a corporate sponsor of the Subversion open source project with core ... 13 Apr 2010 17:20
Need help with awk regular expression to process chess games
Chess games are stored in a standard format call 'pgn'. Two games, plus the start of a 3rd game are below. [Event "ICC 2 12 (blitz)"] [Site "Internet Chess Club INT"] [Date "2004.01.24"] [Round "-"] [White "g8wrb"] [Black "ininias"] [Result "0-1"] [WhiteElo "1085"] [BlackElo "1347"] [ECO "C41"] [NIC "KP... 13 Apr 2010 19:35
Stuck on a very basic regex.
Hi, My intent here is to be able to look for fully upper-cased words only, and filter out the rest. I was, thus, expecting the following egrep to fail. $ echo "Abby" | egrep '^[A-Z]+$' Abby But for some reason, egrep is able to match the extended regex for the mixed-case input. Does anyone know ... 12 Apr 2010 01:35
Posix fortran and the gnu toolchain
Craig Powers wrote: [x-posting again as in original post] Uno wrote: $ gfortran -llibposix90.a blev1.f90 -o out /usr/bin/ld: cannot find -llibposix90.a collect2: ld returned 1 exit status A standard feature of Unix-derived operating systems is that when specifying a library to a compiler... 10 Apr 2010 20:07
Newbie: setting variable before command execution
Hi, I need to set the var LIBPATH before execute the "ssh" command, because there is a user library that overlap a system library used linked by ssh (libcrypto.a) LIBPATH="/opt/freeware/lib" ssh If I run the command: LIBPATH="/opt/freeware/lib" echo "$LIBPATH" Why LIBPATH keeps its ori... 9 Apr 2010 05:37
adding a user twice to solaris os
is it possible that a user be added twice to the same unix box. ? it looks like that i have been added and things are messing up one of the applications that i am using which authenticate against the os. your help will be appreciated. ... 9 Apr 2010 05:37
problems with loop in bash
On 2010-04-09, houghi <houghi(a)houghi.org.invalid> wrote: I have the following script: #v+ #!/bin/bash set -x COUNT=0 youtube-dl -g -e -b $URL |while read LINE do if [ "$COUNT" == "0" ] then TITLE=$LINE COUNT=1 else LINK=$LINE echo $LINK fi done echo ${TITLE... 14 Apr 2010 16:40
First  |  Prev |  Next  |  Last
Pages: 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39