Since 4/26/2012 1:03:31 AM, not121 has written 5 articles and participated in 107 conversations. not121 signature: not121
not121's articles:
Items(5) /1
dash: How to export a user function236 (12/17/2011 8:54:49 AM) comp.unix.shell I have some scripts that run ok on Fedora Linux systems, where /bin/sh is linked to /bin/bash, but not on Ubuntu, where /bin/sh is linked to /bin/dash. Under dash, export -f fname gives "Illegal option -... James
dash: How to get version # ?233 (12/17/2011 8:11:55 AM) comp.unix.shell I recently installed an ubuntu system, which by default uses dash for sh: tini > ls -l $(which sh bash dash) -rwxr-xr-x 1 root root 950896 2011-05-18 04:00 /bin/bash -rwxr-xr-x 1 root root 109768 2011-05-03 09:... James
slow /usr/bin/reset (tset)748 (4/3/2011 5:55:43 PM) comp.unix.programmer Noticing that the 'reset' command seemed slow, I tried 'time reset' on my Linux 2.6.35.11-83.fc14.i686 system and got: real 0m1.003s user 0m0.000s sys 0m0.003s Why is it taking a whole second?? Note... James
Way to obscure command-line params from within C app?1729 (3/13/2011 9:30:07 PM) comp.unix.programmer For an application that accepts numerous command-line parameters, I want to arrange that ps cannot show the parameters. However, none of the methods I've tried are satisfactory. For example, the following p... James
Aliasing and optimization424 (2/4/2009 6:15:32 AM) comp.lang.c On a platform where sizeof (void) != sizeof(int), given code like the following: #include union { void* p; int i; } u; void f() { int* pi = & u.i; (*pi)++; u.p = NULL; } is... ln
grep is screwed on Debian, Ubuntu and others ...2251 (5/4/2012 1:25:05 AM) comp.unix.shell http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=655293 I ran into this doing a simple grep job that needed to match upper case characters, and so I started Googling. This was only reported in January. But t... kaz15(1129)
Multiline Search-Replace With Perl One-liner640 (1/12/2012 9:27:20 AM) comp.unix.shell Hello, I have migrated my free website to my linux web server recently. I have to re-code all my htm files, of which they were created under Windows. I need to make a search and replace with Perl One-liner. ... cibalo(11)
runnin matlab from any directory 2231 (12/29/2011 12:56:13 AM) comp.unix.shell Hello Forum. Merry Christmas and Happy New Year before all. I realized I could run matlab if I edit the ".bashrc" in my account in the following way alias matlab="/usr/local/MATLAB/R2011b/bin/matlab" It happ... medina.rc(51)
dash: How to export a user function236 (12/17/2011 8:54:49 AM) comp.unix.shell I have some scripts that run ok on Fedora Linux systems, where /bin/sh is linked to /bin/bash, but not on Ubuntu, where /bin/sh is linked to /bin/dash. Under dash, export -f fname gives "Illegal option -... not121(112)
dash: How to get version # ?233 (12/17/2011 8:11:55 AM) comp.unix.shell I recently installed an ubuntu system, which by default uses dash for sh: tini > ls -l $(which sh bash dash) -rwxr-xr-x 1 root root 950896 2011-05-18 04:00 /bin/bash -rwxr-xr-x 1 root root 109768 2011-05-03 09:... not121(112)
inside parallelogram?522 (11/5/2011 9:40:03 PM) comp.programming Could someone help with the simplest way to check whether an integer lattice point is inside (or on the boundary of) a parallelogram? The parallelogram has corners (a,b), (i,j), (m,n) (p,q), which are sorted so... lloyd.houghton(28)
shell 'quoting' question1021 (10/15/2011 11:49:38 AM) comp.unix.shell I am *baffled*. Environment is Debian (Linux 2.6.26-2-686 kernel, build date June 21,2010), 'sh --version' reports: GNU bash, version 3.2.39(1)-release (i486-pc-linux-gnu) I am trying to shove a regex int... bonomi(278)
Storing part of a file name to a shell variable336 (8/28/2012 4:20:34 PM) comp.unix.shell Hi,
I'm using CentOS. I have a file that will have the file title
artifactId-version.war
I want to save the "artifactId" version of the file name to a shell variable. This will be everything bef... laredotornado(854)