Hi all,
I am trying to select some columns from a file, based on the list of values.
Would like to know how best I can achive this.
If coulmn 1 has a value of 57 then print the ist column (This works)
awk -F' ' '{if ( $1 == 57 ) {print $1}}' file.txt
Now my requirement is that I have to... (14 Replies)
Dear list
its my first post and i would like to greet everyone
What i would like to do is select records 7 and 11 from each files in a folder then run an executable inside the script for the selected parameters.
The file format is something like this
7 100 200
7 100 250
7 100 300 ... (1 Reply)
Hi!
My data file contains a two columns list. It looks like:
1 3.789
2 6.789
3 7.890
4 8.900
5 6.789
6 1.987
7 10.987
8 2.987
9 0.987
I would like to create a new list using the awk command, just selecting data from the second column but also printing the first column.
Let say I select... (3 Replies)
Hi,
(Oracle, AIX)
I have googled this and searched this forum, however I haven't had much luck with an answer and have tried several different things.
Basically I have a SQL select statement which generates a whole load of UPDATE statements, I want to run the select statement via... (13 Replies)
Hello all!! I am new here and new in scripting!
I want to write a ksh script to select the most recent file from a dir and use it in a variable.
I have a directory with files named like: YYYMMDD
A basic idea of the script I want to write is
#!/usr/bin/ksh
latest= latest_dated_file at... (2 Replies)
Hi All,
I need to develop a bash script list “list of files” and able to select if any and set as globe variable in script and use for other function.
I would like to see in menu format.
Example out put
Below are the listed files for database clone
1. Sys.txt
2. abc.txt
3. Ddd.txt... (1 Reply)
Hi,
I've a list of files
ac_info.tps, subscription_array.tps, .......and many other files
one of the file, bin_range_list.tps has the following content
CREATE OR REPLACE TYPE "BIN_RANGE_LIST" AS TABLE OF BIN_RANGE_ELEM;
/
grant execute on... (4 Replies)
Hi Folks,
I have the below feed file named abc1.txt in which you can see there is a title and below is the respective values in the rows and it is completely pipe delimited file ,.
... (3 Replies)
Hello
I have a large file1 which has many events like "2014010420" and following lines under each event that start with text . It has this form:
2014010420 num --- --- num ....
NTE num num --- num...
EFA num num --- num ...
LASW num num --- num... (9 Replies)
Hi
How can I extract sequences from a fasta file with respect a certain criteria? The beginning of my file (containing in total more than 1000 sequences) looks like this:
>H8V34IS02I59VP
SDACNDLTIALLQIAREVRVCNPTFSFRWHPQVKDEVMRECFDCIRQGLG
YPSMRNDPILIANCMNWHGHPLEEARQWVHQACMSPCPSTKHGFQPFRMA... (6 Replies)
Discussion started by: Marion MPI
6 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)