Sponsored Content
Homework and Emergencies Homework & Coursework Questions Display number from 10 to 1 using shell programming in while loop Post 302951262 by Corona688 on Tuesday 4th of August 2015 11:57:40 AM
Old 08-04-2015
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

obtaining a line number in ksh programming

Hi People, how do i obtain the line number of a ksh shell script that i am working on For example in C,when u key in __LINE__ will return u the current line number of the src code. regards wilson (1 Reply)
Discussion started by: wilsontan
1 Replies

2. Shell Programming and Scripting

display number of subdirectories

Can anyone tell me what command would display the number of subdirectories in the current or given location? (2 Replies)
Discussion started by: jjamd64
2 Replies

3. Solaris

Display Serial Number

Hello, I am running Solaris 9 and I need to display the serial number of my machine. How can I do this? Here is my machine info: SunOS birch 5.9 Generic_118558-09 sun4u sparc SUNW,Sun-Fire-V240 Thank you, David (5 Replies)
Discussion started by: dkranes
5 Replies

4. Shell Programming and Scripting

display unique number

Hi, how i can display all the unique number from my random number script below; #!/usr/bin/perl use strict; my @alphanum = ( 'A' .. 'Z', 'a' .. 'z', 0 .. 9); my $random = join('', map($alphanum,(1..5))); print "$random\n"; Thank You. (1 Reply)
Discussion started by: malaysoul
1 Replies

5. UNIX for Advanced & Expert Users

Kernel Programming: Finding the number of I/O requests

Hi I'd like to know a logic or a strategy to count the number of I/O requests that are being made. I have the PID of the process for which this needed to be done. Does anyone have any clue as to how to do this? This is to be done in Kernel programming in C. P.S: This is to be done in... (2 Replies)
Discussion started by: Ir1s
2 Replies

6. Programming

Number of days in month from certain parameters, c programming request.

Hi, I have an issue in date processing, the issue is I have a month as an int ( 1 - 12 ), the weekday as int ( 0 - 6 , 0 = Sunday), and the week day in month as int ( 0 - 5, 5 = last ex: first sunday, last monday, third tuesday ... ), now from those three parameters is there a possible way to... (2 Replies)
Discussion started by: modn3
2 Replies

7. Shell Programming and Scripting

loop to display whatever number use types

sorry couldnt think of a proper title lol ok i have the following script it asks the user how many html tags they want. Im not sure how to display 2 tags if the user eneters the want only 2 tags tags as in <p></p> or <h1></h1> read -p "How many tags" tags1 if then echo "<$tags1>... (3 Replies)
Discussion started by: gangsta
3 Replies

8. Shell Programming and Scripting

for loop iteration and shell programming startup

question :how can i iterate to next item in for loop with the loop e.g for i in `cat abc.txt` do echo $i // this will display first line i=$i+1; // this doesnt work for me. echo $i; //this will display secound line done question: is my approach to manipulate text good? I have... (3 Replies)
Discussion started by: kashif_islam
3 Replies

9. Shell Programming and Scripting

Display number from 10 to 1 using shell programming in while loop

display number from 10 to 1 using shell programming in while loop and using read n numbers (2 Replies)
Discussion started by: aswin
2 Replies

10. Shell Programming and Scripting

Run a shell script in a loop with max number of threads

hi guys. i have a question for you i have a one file and inside this file there are 1000 lines and each line is a linux command running this commands takes long time so i want to create one bash script and run this lines in a loop with max number of threads for example i want to run... (2 Replies)
Discussion started by: avtaritet
2 Replies
LOCALE_GET_DISPLAY_VARIANT(3)						 1					     LOCALE_GET_DISPLAY_VARIANT(3)

Locale::getDisplayVariant - Returns an appropriately localized display name for variants of the input locale

	Object oriented style

SYNOPSIS
publicstatic string Locale::getDisplayVariant (string $locale, [string $in_locale]) DESCRIPTION
Procedural style string locale_get_display_variant (string $locale, [string $in_locale]) Returns an appropriately localized display name for variants of the input locale. If is NULL then the default locale is used. PARAMETERS
o $locale - The locale to return a display variant for o $in_locale - Optional format locale to use to display the variant name RETURN VALUES
Display name of the variant for the $locale in the format appropriate for $in_locale. EXAMPLES
Example #1 locale_get_display_variant(3) example <?php echo locale_get_display_variant('sl-Latn-IT-nedis', 'en'); echo "; "; echo locale_get_display_variant('sl-Latn-IT-nedis', 'fr'); echo "; "; echo locale_get_display_variant('sl-Latn-IT-nedis', 'de'); ?> Example #2 OO example <?php echo Locale::getDisplayVariant('sl-Latn-IT-nedis', 'en'); echo "; "; echo Locale::getDisplayVariant('sl-Latn-IT-nedis', 'fr'); echo "; "; echo Locale::getDisplayVariant('sl-Latn-IT-nedis', 'de'); ?> The above example will output: Natisone dialect; dialecte de Natisone; NEDIS SEE ALSO
locale_get_display_name(3), locale_get_display_language(3), locale_get_display_script(3), locale_get_display_region(3). PHP Documentation Group LOCALE_GET_DISPLAY_VARIANT(3)
All times are GMT -4. The time now is 06:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy