i am trying to do some calculation from output command
for example
its something like this
which get strings from output command and try to sum total lines of this string if exceed certain number it display error
if not it display output from the command
please note ls -l is just a example
I will admit I am a newbie but I am trying to write some simple scripts
Situation:
I have a list of IP Addresses that I want to once or 2 times a day store the average ping response time in a database (mysql) I am part way there but not all the way there
I have the following
cat ./slow... (2 Replies)
Hi,
I was wondering why ls * | echo does not print the contents of the directory to the screen? The way I see it, ls * returns a whole lot of information, and then we pipe all this info to echo, so surely it should all come to our screen!
Is there a serious flaw in my understanding?
... (3 Replies)
#!/bin/bash
INPUT=$1
if
then
INPUT=0$1
TRACKNUMBER=$INPUT
fi
TRACKNUMBER=$INPUT
echo "Track Number:" $TRACKNUMBER
if
then
echo "File Does Not Exist!: split-track"${TRACKNUMBER}".wav"
exit 0
fi
CUEFILE="$2" (6 Replies)
Hello,
I'm writing some bash scripts and I'm trying to get an echo command and the output of another command to display on the same line. For example:
I want to run
echo "Operating System: " unameand have it displayed as
Operating System: Darwin
Thanks for your help! (7 Replies)
Hi,
I have written a BASH shell script that contains a lot of "echo" commands to notify the user about what's going on. The script generates a log file that contains a copy of what is seen in the terminal. The echo statements are generally verbose, and thus extend out for quite a ways on one... (2 Replies)
Hi,
When I run the following command in terminal it works. The string TEST is appended to a file silently.
echo TEST | tee -a file.txt &>/dev/null
However, when I paste this same line to a file, say shell1.sh, and use bourne shell .
I run this file in terminal, ./shell1.sh.
However I... (1 Reply)
Hi,
I try to write script and echo two command at the same line .
echo "A"
echo "B"
How can I pipe above two command at the same line in text file .
So, in the output text file , you can see below ???
A B
not
A
B
Any sugggestion ??? (4 Replies)
Hi All,
I have code to get the UUID and capacity for the LUN from CX -arry. I need the output in this format
LUN Number UUID Space in MB
LUN 238 60:06:01:60:C2:56:11:00:28:36:67:59:11:04:DE:11 122880
But Now iam getting this... (3 Replies)
How do i echo the output of a unix command using shell script???
Like:
echo /etc/ ls -l (2 Replies)
Discussion started by: sunny2802
2 Replies
LEARN ABOUT PHP
locale_get_display_language
LOCALE_GET_DISPLAY_LANGUAGE(3) 1 LOCALE_GET_DISPLAY_LANGUAGE(3)Locale::getDisplayLanguage - Returns an appropriately localized display name for language of the inputlocale
Object oriented style
SYNOPSIS
publicstatic string Locale::getDisplayLanguage (string $locale, [string $in_locale])
DESCRIPTION
Procedural style
string locale_get_display_language (string $locale, [string $in_locale])
Returns an appropriately localized display name for language of the input locale. If is NULL then the default locale is used.
PARAMETERS
o $locale
- The locale to return a display language for
o $in_locale
- Optional format locale to use to display the language name
RETURN VALUES
display name of the language for the $locale in the format appropriate for $in_locale.
EXAMPLES
Example #1
locale_get_display_language(3) example
<?php
echo locale_get_display_language('sl-Latn-IT-nedis', 'en');
echo ";
";
echo locale_get_display_language('sl-Latn-IT-nedis', 'fr');
echo ";
";
echo locale_get_display_language('sl-Latn-IT-nedis', 'de');
?>
Example #2
OO example
<?php
echo Locale::getDisplayLanguage('sl-Latn-IT-nedis', 'en');
echo ";
";
echo Locale::getDisplayLanguage('sl-Latn-IT-nedis', 'fr');
echo ";
";
echo Locale::getDisplayLanguage('sl-Latn-IT-nedis', 'de');
?>
The above example will output:
Slovenian;
slovxc3xa8ne;
Slowenisch
SEE ALSO locale_get_display_name(3), locale_get_display_script(3), locale_get_display_region(3), locale_get_display_variant(3).
PHP Documentation Group LOCALE_GET_DISPLAY_LANGUAGE(3)