How to get epoch time in shell script (for ksh)? I am interested in getting 开发者_如何学Cepoch time for the start of day (so e.g. now is July 28th, 2011 ~ 14:25:00 EST, I need time at midnight).If yo
I writing a ksh shell scr开发者_StackOverflow中文版ipt andI have long comma separated string that I need to divide into separate lines only after the 9th comma. After the 9th comma, I want to remove t
Is there a way to copy an assoc开发者_运维问答iative array? I realize that regular arrays can be copied easily with a one liner as such:
I have a very large data file (2GB-3GB). I need to parse some data out of it and check if there is a duplication. So I have a empty string to start with, so data that I parse out from input file, will
I am using KornShell (ksh) and I need to know what开发者_JAVA技巧 is the command to search a file in the system?
I\'m using a sed command for replacing some words in text files. This command is embedded in a ksh script.
I currently have the following lines of code in a script: set -A ARRAY OPTION1 OPTION2 OPTION3 OPTION4
How can one redirect stdout pipes and stderr pipes nn ksh on UNIX? (Not Linux). The following works to redirect to files:
I\'m seeing stty, not a typewritter messages on hpux (despite an interactive terminal check?), and am guessing that these are due to thestty lines in my .kshrc file:
I\'m tweaking a KSH script and I\'m trying to ssh into various hosts and execute a grep command on vfstab that will return a certain line. The problem is, I can\'t get the following to work below. I\'