I need to generat开发者_开发问答e 12 digit Hex numbers in KSH on Solaris Thanks#!/bin/ksh set -A hex 0 1 2 3 4 5 6 7 8 9 A B C D E F
I normally use the for construct in ksh to quickly iterate over a list of files to perform some action on it. It doesn\'t seem to work in this scenario:
I have to modi开发者_如何学JAVAfy an existing ksh script which looks at the command-line arguments using \'shift\', and so empties $@, but now want to pass the original arguments to a second script af
Subject shell script if I perform compare on the following [[ 2 -eq 2 ]] && print OK I get OK
How can one strip the left parts and right parts off strings up to a matching expression as in ksh? For instance:
I have a fixed length string which is a number. When I assign the string to a variable it is getting assigned 8 instead of 10. Why? How do I stop it?
(AIX/ksh) i have a chinese file ...i cant able to open it in aix using cat fully...if i give cat t开发者_StackOverflow社区hen some contents are missing...and if i give cat -v it is giving wierd code..
I am operating in a Kor开发者_StackOverflow社区n Shell, and attempting to run a simple chdb script I wrote.If run with no arguments, it prompts the user with a list of databases and waits for a select
in general i will use expr inside shell scripts for doing arithmetic operations. is there a way where we can come up with arithmetic 开发者_如何学Gooperation in a shell script without using expr? Mod
I wish to source a script, print the value of a variable this script defines, and then have this value be assigned to a variable on the command line with command substitution wrapping the source/print