Category "ksh"

How to create a for loop that reads each character in ksh

I'm unable to find any for loop syntax that works with ksh for me. I'm wanting to create a program that esentially will add up numbers that are assigned to lett

How to write the regex to capture alphanumeric value between square brackets?

Please help in writing the regular expression for below line in bash. There are muliple lines like this in my file, and I want to only capture the below values

Why does ksh's vi-mode in Terminal on macOS "Big Sur" sometimes corrupts the edit line?

I noticed that sometimes when trying to edit a line in the history to re-run a command, that ksh would garble the line and move the cursor up a line. It was rea

Remove new line characters from csv file and save results to the same filename

I have files which have spaces in their filenames (ex filename Listener Care - RXM Call Center Satisfaction-2022-03-01.csv) These files also have new line chara

Unable to run script remotely on VIO servers?

I need to run an KSH script in VIO server remotely. But as VIO server is in restricted shell, I tried as below. ssh -q -T padmin@vioserver "oem_setup_env" <

How do i replace [] brackets using SED

I have a string that i am want to remove punctuation from. I started with sed 's/[[:punct:]]/ /g' But i had problems on HP-UX not liking that all the time