B.C. and A.L. > It was not used only in Europe, but (at least) in all the various European colonies. The standard "cal" utility performed the switch between Julian and Gregorian calendar in september 1752 (see cal 9 1752) which corresponds to the date used in England. in Britain and colonie... 24 Mar 2010 02:14
FAQ faults I have found some faults in one section of both an ancient and a fairly recent copy of the comp.unix.shell FAQ . Referring to <http://www.chinaunix.net/jh/24/551026.html>, FAQ lines indented as published, my lines begin '**'. 6 d. Determining leap year A leap year in the Gregorian calendar is defined a... 15 Apr 2010 08:03
Bulk moving of files I just polluted a directory with 100 odd files, they were meant to go into a sub directory. All files have a date so that ls -l|grep '2010-03-23' list the files that need moving. What one liner can I use to move them all into the sub directory in one operation? TIA Owen ... 23 Mar 2010 14:47
sed replace text Question Hi All System : AIX 5.3 How to using sed replace '/* testing_email_body.txt */' to 'UNIX SILENT cat /phx/src/testing_email_body.txt \> VALUE(tmp-file1).' ? program file cat abc.p /* testing_email_body.txt */ #!/bin/ksh hostname=`hostname` case "$hostname" in phxdev2|phxdev3|phxdev4|phxdev5 ) ... 1 Apr 2010 13:30
Want to insert some stuff as a new line after the line matchingregexp. On 2010-03-21, Hongyi Zhao <hongyi.zhao(a)gmail.com> wrote: I want to a insert some stuff as a new line after the line matching regexp. Any hints? Use sed: #v+ chrisbra(a)256bit:~$ echo -e "foobar\none\ntwo" |sed -e '/foobar/a\ baz ' foobar baz one two #v- regards, Christian ... 24 Mar 2010 13:30
Want to insert some stuff as a new line after the line matching regexp. Hi all, I want to a insert some stuff as a new line after the line matching regexp. Any hints? -- ..: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. ... 23 Mar 2010 13:38
Which Program can reformat and indent ksh or sh shell script Hi All AIX 5.3 Which Program can reformat and indent ksh or sh shell script ? moonhkt ... 20 Mar 2010 01:44
trying to parametrize find ... In article <slrnhn71b3.e2i.usenet-nospam(a)guild.seebs.net>, Seebs <usenet-nospam(a)seebs.net> wrote: On 2010-02-11, David Combs <dkcombs(a)panix.com> wrote: In article <7sv50fFe7pU1(a)mid.individual.net>, Chris F.A. Johnson <cfajohnson(a)gmail.com> wrote: On 2010-02-04, Ed Morton wrote: $ x="%s\n" ... 17 Mar 2010 01:24
manning man I've been able to update the capabilities that one expects from man pages. I was particularly glad to find: apt-get install manpages-dev as this gives a person on ubuntu a way to see a man page for fork, for example. Geoff Clare posted elsethread some tricks with paging, and it made a huge difference fo... 25 Mar 2010 19:44
here-document in function and temp file Hi, I have the following function definition on HP-UX ( ksh shell ) function checkDB { sqlplus -s user/pass(a)inst<<END>>${HOME}/db_status set head off; set feedback off; set pagesize 0; set linesize 120; select 'CHECK DB CONNECTION' from DUAL; END grep 'CHECK... 16 Mar 2010 20:58 |