First  |  Prev |  Next  |  Last
Pages: 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
starfield in Bash for GNU/Linux
>>>>> "IS" == Ivan Shmakov <ivan(a)main.uusia.org> writes: [...] IS> Ncurses comes with tput(1) bundled. I'm not sure how widely it is IS> available. [...] ... And tput(1), together with Bash arrays, allows, e. g., the following display hack to be implemented. (I wished to code it for a while...) ... 20 Nov 2009 07:51
Print the section from a file from sed except first or last line
HI, sed '/AAA/,/BBB/p' <file> gives me AAA some text some text BBB Now I want is the out put without AAA or BBB. How is this possible with a single sed command? I tried following but didn't work - sed '/AAA/,/BBB/{ 1d; $d; p; }' <file> ... 28 Nov 2009 00:25
Possible to define a variable for only certain directories?
Hi, I'm using Mac 10.5.6. I have just installed a version of JBoss that relies on Java 1.6, and therefore, requires you to set JAVA_HOME to point to the Java 1.6 install directory. However, currently JAVA_HOME is pointing to a 1.5 installation, and I would like to keep it that way because I have some other app... 13 Nov 2009 12:09
tee with pipe
Hi, Does the shell create a process to run "tee" command? Can the code below print "not found"? <<snip begin>> #!/usr/bin/ksh cat | tee foo >/dev/null <<EOF one two three EOF if grep "three" foo 2>&1 then print "found" else print "not found" <<snip end>> Thanks in advance, Jose Luis ... 16 Nov 2009 13:32
about IFS="\n"
I had the bright idea of setting IFS="\n" in my while loops as in: while IFS="\n" read -r FILE I thought that this worked great for processing directory names or filenames with spaces in the name. I didn't test it enough but it seemed to work for several months. Worst of all, I didn't detect this issue until... 13 Nov 2009 22:10
Is it possible to automatically download new software when it's released?
On 2009-11-11 07:13, Lao Ming wrote: Since I have all of my lab machines update their OS automatically from a cron job, I'm wondering if it's possible to do the same with public domain software? Is there some software which I can obtain to enable this? I could do it with wget or curl but most of the time,... 11 Nov 2009 10:07
Is it possible to automatically download new software when it's released?
Lao Ming <laomingliu(a)gmail.com> writes: Since I have all of my lab machines update their OS automatically from a cron job, I'm wondering if it's possible to do the same with public domain software? I doubt much, if any at all, of the software you use is public domain. Almost any zero-cost software is sti... 11 Nov 2009 02:20
Is it possible to automatically download new software when it's released?
Since I have all of my lab machines update their OS automatically from a cron job, I'm wondering if it's possible to do the same with public domain software? Is there some software which I can obtain to enable this? I could do it with wget or curl but most of the time, I cannot think of a way to detect if the sof... 11 Nov 2009 01:15
object oriented shell scripts
I have written a framework for object oriented shell scripting. It doesn't provide type safety or inheritance or access control, but it has classes, objects and some other nice features like automatic creation of getters and setters or return by reference. I am working on a rather complex application and the clea... 17 Nov 2009 19:43
Parsing GC Log File
I have a GC log file with entries like this one: 2.729: [GC [PSYoungGen: 70850K->6800K(152896K)] 70850K->6800K (502464K), 0.0165440 secs] [Times: user=0.09 sys=0.04, real=0.02 secs] I would like to parse this to output for easy plotting using gnuplot and would like the following output: 2.729, 70850, 6800, ... 10 Nov 2009 01:32
First  |  Prev |  Next  |  Last
Pages: 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58