354 reputation
26
bio website
location
age
visits member for 3 years, 6 months
seen Oct 15 at 0:06

Jun
16
awarded  Constituent
Jun
9
awarded  Caucus
Mar
10
comment Crontab in Daylight Savings
Interesting, but not really a programming problem. Suggest you flag and ask moderator to move to linux.stackexchange.com. Good luck!
Sep
14
awarded  Critic
Jun
27
comment C Shell Array Declaration Syntax, () vs {}
and you can the echo ${arrname[2]} (for example)? Good luck to all
Oct
24
comment Linux: Does find | xargs grep have limitations?
someone else posted this problem in the last 2-3 days. Sorry don't have time to search for it. Might help to add uname and find --version ; xargs --version ;grep --version output to your posting. (But I'm guessing spaces in path names). Good luck.
Oct
5
comment cd ~ works in one terminal session but not another (no error reported)
what shell are you using? Also, dump both environments, ie set > env_goodwindow ; set > env_badwindow` and diff them. Same for stty settings. Good luck.
Sep
5
answered Plotting the sleep/wait chain of a process
Aug
3
comment Undo `mv` command?
doah! I remove my hare-brained comment. (I didn't know it was possible to move stuff above/beyond '/'. ) Good luck to all.
Jul
27
comment How to adjust numeric fields in a text file
I'm almost sure there are 64bit versions of gawk available. What you describe in your comment sounds like the 32bit version, but I don't have time to research now. Good luck.
Jul
26
comment A standard tool to convert a byte-count into human KiB MiB etc; like du, ls1
I think this should be part of your question. Looks to me like you've got the problem solved. Good luck.
Jul
25
comment Detailed Per-Process Profiling
depending on the version of ps and the options available, some of that information is available there. But... yes, I would love for an all-inclusive performance console like found on Windows7. One possible thing to help ... there is a pretty darn comprehensive perf utility originally for AIX (IBM Unix) called NMON, which I believe has been ported for use on (some) linux(es). Good luck.
Jul
19
comment Time validation with regex
I think you're on the right track using case expressions, but you don't understand the rules of the character class expressions, i.e. [0-23] means "only 1 char matching" either 1). the range 0-2 (i.e. 0,1,2) OR 2) the single number number 3, NOT 0 hrs to 23 hrs as I'm guessing you mean. ---- Inside sq-brackets, each char stands for itself as a match for one char, excepting when the range notation is use as 0-2. You can use reg expers in this case to get mostly what you want, ie case TIME in [0-2][0-9]\ :[0-5][0-9]). Read it one sq-brkt at a time, what ever inside is a single match. GL.
Jul
19
comment what do you mean by interactive shell?
ksh is also a modern shell :-) See www2.research.att.com/sw/download and use the menu on the left-hand margin to navigate to AST->ksh->overview. A new release comes out several times a year from David Korn and Glen Fowler. Good luck to all.
Jul
16
comment Can sed be used to generate a load file for my date lookup fact table?
most sqls have a dateadd(), datediff() and similar functions that make this very easy to compute. It may be possible to do this in sed, but would be torture to create and a fireable offence at most organization to check it in as code that someone else may have to maintain ;-)! Good luck.
Jul
16
comment Piping in awk scripts
+1 for an attempt to solve your problem. Nice looking output. So you want to indent the child files in relation to their parent directories? That will be nice. To answer your question, you know about ls -lfH ${@} | awk 'NR>9{print ....}' don't you? You don't need an intervening script. 99% of all unix tools allow piping of stdout from 1st program, into stdin of 2nd program, and chained on to a reasonable infinity stdout|stdin ... Good luck.
Jul
12
comment ed: set first line as the default current line
ed or ex can't do this. Unix utils expect to write to a file, not go in and fiddle with bytes of the file, or the file allocation table definitions. sed '1d' file > newFile will be about as fast as you can get without writing your own C program. Also, ed and ex (at least the ones I have worked with) are limited to the size of the file they can work on, often times by space available in /tmp (or /var/tmp) or in ex for the internal setting of directory. (You know ex is the steam version of vi|vim? Do :set all to find the value for directory). Good luck.
Jul
10
comment Extract value from different column and replace in another column
@jack: you can use reg exps like grep "[XY]m Gen CDS" OR chain together a bunch of search targets using egrep 'targ1|targ2|targ4'. Please improve your accept rate. Good luck.
Jun
27
comment Ksh features incorporated into Zsh?
ksh is still in active development. To just scratch the surface, see my long comment (as an answer) at stackoverflow.com/questions/5479433/… . I don't use zsh, partly for corporate reasons, but bahamat's answer below gives some good reasons to look at it. Good luck.
Jun
1
comment How can I programatically add entries to Bash history and have timestamps work properly?
eval history -s "#$(date +%s)" ?? Good luck.