Hello, this is my first post and question. I have search before for this problem but didn't find anything similar.
My case: I have a string inside the variable string1 like this:
string1="lala lele lili lolo lulu"
When I do echo of it, it appears like this:
echo $string1
lala lele lili... (8 Replies)
So in my shell i execute:
{ while true; do echo string; sleep 1; done } | read line This waits one second and returns.
But
{ while true; do /bin/echo string; sleep 1; done } | read line continues to run, and doesn't stop until i kill it explicitly.
I have tried this in bash as well as zsh,... (2 Replies)
Bit of a weird one i suppose, i want to use an echo inside an echo... For example...
i have a script that i want to use to take users input and create another script. Inside this script it creates it also needs to use echos...
echo "echo "hello"" >$file
echo "echo "goodbye"" >$file
... (3 Replies)
Hi
New at this, but want to learn more.
I'm trying this as an Shell Command in MacOSX;
newdate='<TIME>'
echo $newdate >> /Users/ttadmin/Desktop/test.txt
And it don't work. But if I just use;
echo <TIME> >> /Users/ttadmin/Desktop/test.txt
(<TIME> is an variable that one program... (6 Replies)
I am new to the c shell script, can you let me know why the set rr= is not working.
C shell script
#! /bin/csh
Set tt= 12345_UMR_BH452_3_2.txt
set rr='echo $tt | cut –d”_” -f1'
syntax error (4 Replies)
echo `echo ` doesn't echoes anything. And it's logic. But
echo `echo `echo ` ` does echoes "echo". What's the logic of it? the `echo `echo ` inside of the whole (first) echo, echoes nothing, so the first echo have to echo nothing but echoes "echo"
(too much echoing :P):o (2 Replies)
for i in `cat /export/home/afahmed/Arrvial_time.txt`
do
echo $i
echo $i | awk '$3 < $D { print $4 }' >> dynamic_DF.txt;
done
When i echo, its echo as
Nov
15
02:24
/export/home/pp_adm/inbound//wwallet_20111115.txt where i expect it to be Nov 15 02:24... (7 Replies)
HI
I have and echo command which works perfectly in the shell but when i execute in the script it gives me an error code
query is as below
QUERY=`echo "Select Severity,Dupl_count,Creation_Time,Last_Received,Node_Name,Node_Name,Object,Message_Group,Message_Text,Last_Annotation from " \
... (2 Replies)
Hi Team,
I have written the shell script which returns the result of the disk space filesystems which has crossed the threshold limit in HTML Format. Below mentioned is the script which worked perfectly on QA system.
df -h | awk -v host=`hostname` '
BEGIN {
print "<table border="4"... (13 Replies)
Discussion started by: Harihsun
13 Replies
LEARN ABOUT PHP
locale_get_display_variant
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)