Search Results

Search: Posts Made By: suren.bills
3,368
Posted By Scrutinizer
The working of the single quote in the printf...
The working of the single quote in the printf format statement depends on whether a thousands separator is defined in the locale
$ ( export LC_NUMERIC=en_US.UTF-8 ; printf "%'.2f\n" 123456 )...
3,368
Posted By Don Cragun
If you have a bunch of these to do in a loop, you...
If you have a bunch of these to do in a loop, you might want something more like:
#!/bin/ksh
for number_of_positions in 2 4
do for input_string in 345987 1345987
do printf "%s %s\n"...
3,368
Posted By Don Cragun
What about trying it with ksh93 instead of ksh?
What about trying it with ksh93 instead of ksh?
3,368
Posted By Don Cragun
I believe AIX comes with both ksh and ksh93. Try...
I believe AIX comes with both ksh and ksh93. Try using ksh93 instead of ksh. Also, if you can't use ksh93, try /usr/bin/printf in the ksh script instead of just printf when you have ' as a flag in...
3,368
Posted By Don Cragun
I repeat: What operating system are you using and...
I repeat: What operating system are you using and what version of the Korn shell are you using?
3,368
Posted By Don Cragun
What operating system are you using? What...
What operating system are you using? What version of the Korn shell are you using?

On OS X, with ksh version sh (AT&T Research) 93u+ 2012-08-01, the following script (using the variables...
3,368
Posted By Don Cragun
What have you tried? Is this a homework...
What have you tried?

Is this a homework assignment?

Homework and coursework questions can only be posted in this forum (https://www.unix.com/homework-and-coursework-questions/) under special...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 04:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy