text stringlengths 9 2.4k |
|---|
Symbiosis.
In the Central American bullthorn acacias—"Acacia sphaerocephala", "Acacia cornigera" and "Acacia collinsii" — some of the spiny stipules are large, swollen and hollow. These afford shelter for several species of "Pseudomyrmex" ants, which feed on extrafloral nectaries on the leaf-stalk and small lipid-rich ... |
The predominantly herbivorous spider "Bagheera kiplingi", which is found in Central America and Mexico, feeds on nubs at the tips of the acacia leaves, known as Beltian bodies, which contain high concentrations of protein. These nubs are produced by the acacia as part of a symbiotic relationship with certain species of... |
In Myanmar, Laos, and Thailand, the feathery shoots of "Acacia pennata" (common name "cha-om", ชะอม and "su pout ywet" in Burmese) are used in soups, curries, omelettes, and stir-fries.
Gum.
Various species of acacia yield gum. True gum arabic is the product of "Acacia senegal", abundant in dry tropical West Africa fro... |
An astringent medicine high in tannins, called catechu or cutch, is procured from several species, but more especially from "Senegalia catechu" (syn. "Acacia catechu"), by boiling down the wood and evaporating the solution so as to get an extract. The catechu extract from "A. catechu" figures in the history of chemistr... |
Perfume.
"Acacia farnesiana" is used in the perfume industry due to its strong fragrance. The use of acacia as a fragrance dates back centuries.
Symbolism and ritual.
Egyptian mythology has associated the acacia tree with characteristics of the tree of life, such as in the Myth of Osiris and Isis.
Several parts (mainly... |
Acacia was used for Zulu warriors' iziQu (or isiKu) beads, which passed on through Robert Baden-Powell to the Scout movement's Wood Badge training award.
In Russia, Italy, and other countries, it is customary to present women with yellow mimosas (among other flowers) on International Women's Day (March 8). These "mimos... |
Tannin.
The bark of various Australian species, known as wattles, is very rich in tannin and forms an important article of export; important species include "A. pycnantha" (golden wattle), "A. decurrens" (tan wattle), "A. dealbata" (silver wattle) and "A. mearnsii" (black wattle).
Black wattle is grown in plantations i... |
Pulpwood.
In Indonesia (mainly in Sumatra) and in Malaysia (mainly in Sabah), plantations of "A. mangium" are being established to supply pulpwood to the paper industry.
Acacia wood pulp gives high opacity and below average bulk paper. This is suitable in lightweight offset papers used for Bibles and dictionaries. It i... |
Extensive ecological studies should be performed before further introduction of acacia varieties, as this fast-growing genus, once introduced, spreads quickly and is extremely difficult to eradicate.
Phytochemistry.
Cyanogenic glycosides.
Nineteen different species of "Acacia" in the Americas contain cyanogenic glycosi... |
Acapulco
Acapulco de Juárez (), commonly called Acapulco ( , ; ), is a city and major seaport in the state of Guerrero on the Pacific Coast of Mexico, south of Mexico City. Located on a deep, semicircular bay, Acapulco has been a port since the early colonial period of Mexico's history. It is a port of call for shippin... |
The resort area is divided into three parts: the north end of the bay and beyond is the "traditional" area, which encompasses the area from "Parque Papagayo" through the and onto the beaches of "Caleta" and "Caletilla", the main part of the bay known as " ('golden zone' in Spanish), where the famous in the mid-20th cen... |
History.
Pre-Columbian.
By the 8th century, around the Acapulco Bay area, there was a small culture which would first be dominated by the Olmecs, then by a number of others during the pre-Hispanic period before it ended in the 1520s. At Acapulco Bay itself, there were two Olmec sites, one by Playa Larga and the other o... |
There are two stories about how Acapulco bay was discovered by Europeans. The first states that two years after the Spanish conquest of the Aztec Empire, Hernán Cortés sent explorers west to find gold. The explorers had subdued this area after 1523, and Captain Saavedra Cerón was authorized by Cortés to found a settlem... |
Cortés established Acapulco as a major port by the early 1530s, with the first major road between Mexico City and the port constructed by 1531. The wharf, named Marqués, was constructed by 1533 between Bruja Point and Diamond Point. Soon after, the area was made an "alcadia" (major province or town).
Spanish trade in t... |
The galleon trade made its yearly run from the mid-16th century until the early 19th. The luxury items it brought to New Spain attracted the attention of English and Dutch pirates, such as Francis Drake, Henry Morgan and Thomas Cavendish, who called it "The Black Ship". A Dutch fleet invaded Acapulco in 1615, destroyin... |
In 1911, revolutionary forces took over the main plaza of Acapulco. In 1920, the Prince of Wales (the future King Edward VIII) visited the area. Impressed by what he saw, he recommended the place to his compatriots in Europe, making it popular with the elite there. Much of the original hotel and trading infrastructure ... |
The economy grew and foreign investment increased with it. During the 1950s, Acapulco became the fashionable place for millionaire Hollywood stars such as Elizabeth Taylor, Frank Sinatra, Eddie Fisher and Brigitte Bardot. The 1963 Hollywood movie "Fun in Acapulco", starring Elvis Presley, is set in Acapulco although th... |
In the 1970s, there was a significant expansion of the port.
The Miss Universe 1978 pageant took place in the city. In 1983, singer-songwriter Juan Gabriel wrote the song "Amor eterno", which pays homage to Acapulco. The song was first and most famously recorded by Rocío Dúrcal. Additionally, Acapulco is the hometown o... |
The port continued to grow and in 1996, a new private company, API Acapulco, was created to manage operations. This consolidated operations and now Acapulco is the major port for car exports to the Pacific.
The city was devastated by Hurricane Pauline in 1997. The storm stranded tourists and left more than 100 dead in ... |
Gang violence continued to plague Acapulco through 2010 and into 2011, most notably with at least 15 dying in drug-related violence on March 13, 2010, and another 15 deaths on January 8, 2011. Among the first incident's dead were six members of the city police and the brother of an ex-mayor. In the second incident, the... |
Hurricane Otis.
On October 25, 2023, Hurricane Otis, a Category 5 hurricane with 1-minute sustained winds of , caused widespread devastation throughout the city while making landfall nearby.
Hurricane John.
Hurricane John struck Acapulco and Mexico's Pacific coast in late September 2024 as a Category 3 hurricane, deliv... |
Climate.
Acapulco features a tropical wet and dry climate (Köppen: Aw): hot with distinct wet and dry seasons, with more even temperatures between seasons than resorts farther north in Mexico, but this varies depending on altitude. The warmest areas are next to the sea where the city is. Pacific hurricanes and tropical... |
Government.
As the seat of a municipality, the city of Acapulco is the government authority for over 700 other communities, which together have a territory of 1,880.60 km2. This municipality borders the municipalities of Chilpancingo, Juan R Escudero (Tierra Colorada), San Marcos, Coyuca de Benítez with the Pacific Oce... |
The metropolitan area of Acapulco is made up of six towns in the municipality of Acapulco de Juárez and four in the municipality of Coyuca de Benítez. In agreement with the last count and official delimitation realized in 2010 altogether by the National Institute of Statistics and Geography, the National Council of Pop... |
Tourism.
Acapulco is one of Mexico's oldest coastal tourist destinations, reaching prominence in the 1950s as the place where Hollywood stars and millionaires vacationed on the beach in an exotic locale. In modern times, tourists in Acapulco have been facing problems with corrupt local police who steal money by extorti... |
Acapulco Dorado had its development between the 1950s and the 1970s, and is about 25 minutes from the Acapulco International Airport. It is the area that presents the most tourist influx in the port, runs through much of the Acapulco bay, from Icacos, passing through Costera Miguel Aleman Avenue, which is the main one,... |
Acapulco's reputation of a high-energy party town and the nightlife have long been draws of the city for tourists. From November to April, luxury liners stop here daily and include ships such as the , the , "Crystal Harmony", and all the Princess line ships. Despite Acapulco's international fame, most of its visitors a... |
Another problem is the garbage that has accumulated in the bay. Although 60.65 tons have recently been extracted from the bays of Acapulco and nearby Zihuatanejo, more needs to be done. Most of trash removal during the off seasons is done on the beaches and in the waters closest to them. However, the center of the bay ... |
Attractions.
Acapulco's main attraction is its nightlife, as it has been for many decades. Nightclubs change names and owners frequently.
For example, Baby 'O has been open to the national and international public since 1976 and different celebrities have visited their installations such as Mexican singer Luis Miguel, ... |
Another attraction at Acapulco is the La Quebrada Cliff Divers. The tradition started in the 1930s when young men casually competed against each other to see who could dive from the highest point into the sea below. Eventually, locals began to ask for tips for those coming to see the men dive. Today the divers are prof... |
In addition to sunbathing, the beaches around the bay offer a number of services, such as boat rentals, boat tours, horseback riding, scuba diving and other aquatic sports. One popular cruise is from Caletilla Beach to Roqueta Island, which has places to snorkel, have lunch, and a lighthouse. There is also an underwate... |
The El Rollo Acapulco is a sea-life and aquatic park located on Costera Miguel Aleman. It offers wave pools, water slides and water toboggans. There are also dolphin shows daily and a swim with dolphins program. The center mostly caters to children. Another place that is popular with children is the "Parque Papagayo": ... |
The Botanical Garden of Acapulco is a tropical garden located on lands owned by the Universidad Loyola del Pacífico. Most of the plants here are native to the region, and many, such as the Peltogyne mexicana or purple stick tree, are in danger of extinction.
One cultural event that is held yearly in Acapulco is the "Fe... |
There are a number of golf courses in Acapulco including the Acapulco Princess and the Pierre Marqués course, the latter designed by Robert Trent Jones in 1972 for the World Cup Golf Tournament. The Mayan Palace course was designed by Pedro Guericia and an economical course called the Club de Golf Acapulco is near the ... |
Acapulco also has a bullring, called the Plaza de Toros, near Caletilla Beach. The season runs during the winter and is called the Fiesta Brava.
Spring break.
Before 2010, over 100,000 American teenagers and young adults traveled to resort areas and balnearios throughout Mexico during spring break each year. The main r... |
In February 2009, the US State Department issued a travel alert directed at college students planning spring break trips to Acapulco. The warning—a result of violent activity springing from Mexico's drug cartel débâcle—took college campuses by storm, with some schools going so far as to warn their students about the ri... |
The bus system is highly complex and can be rather confusing to an outsider. As far as transportation goes, it is the cheapest form, other than walking, in Acapulco. The most expensive buses have air conditioning, while the cheaper buses do not. For tourists, the Acapulco city government has established a system of yel... |
UNESCO World Heritage Site nominations.
In 2014, the idea to nominate the Manila-Acapulco Galleon Trade Route was initiated by the Mexican ambassador to UNESCO with the Filipino ambassador to UNESCO.
An Experts' Roundtable Meeting was held at the University of Santo Tomas (UST) on April 23, 2015, as part of the prepara... |
Alan Kay
Alan Curtis Kay (born May 17, 1940) is an American computer scientist who pioneered work on object-oriented programming and windowing graphical user interface (GUI) design. At Xerox PARC he led the design and development of the first modern windowed computer desktop interface. There he also led the development... |
Kay then taught guitar in Denver, Colorado for a year. He was drafted in the United States Army, then qualified for officer training in the United States Air Force, where he became a computer programmer after passing an aptitude test.
After his discharge, he enrolled at the University of Colorado Boulder and earned a B... |
In 1968, he met Seymour Papert and learned of the programming language Logo, a dialect of Lisp optimized for educational purposes. This led him to learn of the work of Jean Piaget, Jerome Bruner, Lev Vygotsky, and of constructionist learning, further influencing his professional orientation. On December 9 of that same ... |
I'm sorry that I long ago coined the term "objects" for this topic because it gets many people to focus on the lesser idea. The big idea is "messaging".
While at PARC, Kay conceived the Dynabook concept, a key progenitor of laptop and tablet computers and the e-book. He is also the architect of the modern overlapping w... |
In 2001, Kay founded Viewpoints Research Institute, a nonprofit organization dedicated to children, learning, and advanced software development. For their first ten years, Kay and his Viewpoints group were based at Applied Minds in Glendale, California, where he and Ferren worked on various projects. Kay served as pres... |
Tweak.
In 2001, it became clear that the Etoy architecture in Squeak had reached its limits in what the Morphic interface infrastructure could do. Andreas Raab, a researcher in Kay's group then at Hewlett-Packard, proposed defining a "script process" and providing a default scheduling mechanism that avoided several mor... |
Reinventing programming.
Kay has lectured extensively on the idea that the computer revolution is very new, and all of the good ideas have not been universally implemented. His lectures at the OOPSLA 1997 conference, and his ACM Turing Award talk, "The Computer Revolution Hasn't Happened Yet", were informed by his expe... |
Personal life.
Kay is a former professional jazz guitarist, composer, and theatrical designer.
He also is an amateur classical pipe organist.
Awards and honors.
Kay has received many awards and honors, including:
His other honors include the J-D Warnier Prix d'Informatique, the ACM Systems Software Award, the NEC Comp... |
APL (programming language)
APL (named after the book "A Programming Language") is a programming language developed in the 1960s by Kenneth E. Iverson. Its central datatype is the multidimensional array. It uses a large range of special graphic symbols to represent most functions and operators, leading to very concise c... |
Iverson also used his notation in a draft of the chapter "A Programming Language", written for a book he was writing with Fred Brooks, "Automatic Data Processing", which would be published in 1963.
In 1979, Iverson received the Turing Award for his work on APL.
Development into a computer programming language.
As early... |
After Lawrence M. Breed and Philip S. Abrams of Stanford University joined the team at IBM Research, they continued their prior work on an implementation programmed in FORTRAN IV for a part of the notation which had been done for the IBM 7090 computer running on the IBSYS operating system. This work was finished in lat... |
Many APL symbols, even with the APL characters on the Selectric typing element, still had to be typed in by over-striking two extant element characters. An example is the "grade up" character, which had to be made from a "delta" (shift-H) and a "Sheffer stroke" (shift-M). This was necessary because the APL character se... |
APL gained its foothold on mainframe timesharing systems from the late 1960s through the early 1980s, in part because it would support multiple users on lower-specification systems that had no dynamic address translation hardware. Additional improvements in performance for selected IBM System/370 mainframe systems incl... |
In 1973, IBM released "APL.SV", which was a continuation of the same product, but which offered shared variables as a means to access facilities outside of the APL system, such as operating system files. In the mid-1970s, the IBM mainframe interpreter was even adapted for use on the IBM 5100 desktop computer, which had... |
"Sharp APL" was available from IP Sharp Associates, first as a timesharing service in the 1960s, and later as a program product starting around 1979. "Sharp APL" was an advanced APL implementation with many language extensions, such as "packages" (the ability to put one or more objects into a single variable), a file s... |
Microcomputers.
On microcomputers, which became available from the mid-1970s onwards, BASIC became the dominant programming language. Nevertheless, some microcomputers provided APL instead – the first being the Intel 8008-based MCM/70 which was released in 1974 and which was primarily used in education. Another machine... |
As other vendors were busy developing APL interpreters for new hardware, notably Unix-based microcomputers, APL2 was almost always the standard chosen for new APL interpreter developments. Even today, most APL vendors or their users cite APL2 compatibility as a selling point for those products. IBM cites its use for pr... |
Language characteristics.
Character set.
APL has been criticized and praised for its choice of a unique character set. In the 1960s and 1970s, few terminal devices or even displays could reproduce the APL character set. The most popular ones employed the IBM Selectric print mechanism used with a special APL type elemen... |
In defense of APL, it requires fewer characters to type, and keyboard mappings become memorized over time. Special APL keyboards are also made and in use today, as are freely downloadable fonts for operating systems such as Microsoft Windows. The reported productivity gains assume that one spends enough time working in... |
The APL environment is called a "workspace". In a workspace the user can define programs and data, i.e., the data values exist also outside the programs, and the user can also manipulate the data without having to define a program. In the examples below, the APL interpreter first types six spaces before awaiting the us... |
Advocates of APL claim that the examples of so-called "write-only code" (badly written and almost incomprehensible code) are almost invariably examples of poor programming practice or novice mistakes, which can occur in any language. Advocates also claim that they are far more productive with APL than with more convent... |
APL also identifies those features built into the language, and represented by a symbol, or a fixed combination of symbols, as "primitives". Most primitives are either functions or operators. Coding APL is largely a process of writing non-primitive functions and (in some versions of APL) operators. However a few primit... |
Exponentiation.
Another example of this theme is that exponentiation in APL is written as , which indicates raising 2 to the power 3 (this would be written as or in some languages, or relegated to a function call such as in others). Many languages use to signify multiplication, as in , but APL chooses to use . However,... |
Naturally, one would define this expression as a function for repeated use rather than rewriting it each time. Further, since assignment is an operator, it can appear within an expression, so the following would place suitable values into T, AV and SD:
"Pick 6" lottery numbers.
This following immediate-mode expression... |
Prime numbers.
The following expression finds all prime numbers from 1 to R. In both time and space, the calculation complexity is formula_1 (in Big O notation).
(~R∊R∘.×R)/R←1↓⍳R
Executed from right to left, this means:
Sorting.
The following expression sorts a word list stored in matrix X according to word length:
X[... |
Naming.
APL derives its name from the initials of Iverson's book "A Programming Language", even though the book describes Iverson's mathematical notation, rather than the implemented programming language described in this article. The name is used only for actual implementations, starting with APL\360.
Adin Falkoff coi... |
Use.
APL is used for many purposes including financial and insurance applications, artificial intelligence,
neural networks
and robotics. It has been argued that APL is a calculation tool and not a programming language; its symbolic nature and array capabilities have made it popular with domain experts and data scienti... |
asset management,
health care,
and DNA profiling.
Notable implementations.
APL\360.
The first implementation of APL using recognizable APL symbols was APL\360 which ran on the IBM System/360, and was completed in November 1966 though at that time remained in use only within IBM. In 1973 its implementors, Larry Breed, D... |
APL\1130.
In 1968, APL\1130 became the first publicly available APL system, created by IBM for the IBM 1130. It became the most popular IBM Type-III Library software that IBM released.
APL*Plus and Sharp APL.
APL*Plus and Sharp APL are versions of APL\360 with added business-oriented extensions such as data formatting ... |
In 1985, Ian Sharp, and Dan Dyer of STSC, jointly received the Kenneth E. Iverson Award for Outstanding Contribution to APL.
APL2.
APL2 was a significant re-implementation of APL by IBM which was developed from 1971 and first released in 1984. It provides many additions to the language, of which the most notable is nes... |
In 1995, two of the development team – John Scholes and Peter Donnelly – were awarded the Iverson Award for their work on the interpreter. Gitte Christensen and Morten Kromberg were joint recipients of the Iverson Award in 2016.
NARS2000.
NARS2000 is an open-source APL interpreter written by Bob Smith, a prominent APL ... |
GNU APL.
GNU APL is a free implementation of Extended APL as specified in ISO/IEC 13751:2001 and is thus an implementation of APL2. It runs on Linux, macOS, several BSD dialects, and on Windows (either using Cygwin for full support of all its system functions or as a native 64-bit Windows binary with some of its system... |
Nevertheless, APL is rarely purely interpreted and compilation or partial compilation techniques that are, or have been, used include the following:
Idiom recognition.
Most APL interpreters support idiom recognition and evaluate common idioms as single operations. For example, by evaluating the idiom codice_48 as a sin... |
Compilation.
Compilation of APL has been the subject of research and experiment since the language first became available; the first compiler is considered to be the Burroughs APL-700 which was released around 1971. In order to be able to compile APL, language limitations have to be imposed. APEX is a research APL comp... |
ALGOL
ALGOL (; short for "Algorithmic Language") is a family of imperative computer programming languages originally developed in 1958. ALGOL heavily influenced many other languages and was the standard method for algorithm description used by the Association for Computing Machinery (ACM) in textbooks and academic sour... |
There were three major specifications, named after the years they were first published:
ALGOL 68 is substantially different from ALGOL 60 and was not well received, so reference to "Algol" is generally understood to mean ALGOL 60 and its dialects.
History.
ALGOL was developed jointly by a committee of European and Amer... |
John Backus developed the "Backus normal form" method of describing programming languages specifically for ALGOL 58. It was revised and expanded by Peter Naur for ALGOL 60, and at Donald Knuth's suggestion renamed Backus–Naur form.
Peter Naur: "As editor of the ALGOL Bulletin I was drawn into the international discussi... |
ALGOL 60 inspired many languages that followed it. Tony Hoare remarked: "Here is a language so far ahead of its time that it was not only an improvement on its predecessors but also on nearly all its successors." The Scheme programming language, a variant of Lisp that adopted the block structure and lexical scope of AL... |
Call-by-name is known by many compiler designers for the interesting "thunks" that are used to implement it. Donald Knuth devised the "man or boy test" to separate compilers that correctly implemented "recursion and non-local references." This test contains an example of call-by-name.
ALGOL 68 was defined using a two-l... |
is copied to y, and the subscripts of this element to i and k;
begin
integer p, q;
y := 0; i := k := 1;
for p := 1 step 1 until n do
for q := 1 step 1 until m do
if abs(a[p, q]) > y then
begin y := abs(a[p, q]);
i := p; k := q
end
end Absmax
Here is an example of how to produce a table using Elliott 803 A... |
for q from 2⌊a to 2⌈a do
if abs a[p, q] > y then
y := abs a[p, q];
i := p; k := q
fi
od
od;
y
end # abs max #
Note: lower (⌊) and upper (⌈) bounds of an array, and array slicing, are directly available to the programmer.
floating point algol68 test:
real a,b,c,d;
# "printf" – sends output to the file "st... |
A simpler program using an inline format:
An even simpler program using the Display statement. Note that its output would end up at the system console ('SPO'):
An alternative example, using Elliott Algol I/O is as follows. Elliott Algol used different characters for "open-string-quote" and "close-string-quote", represe... |
'END'
ALGOL 68.
ALGOL 68 code was published with reserved words typically in lowercase, but bolded or underlined.
begin
printf(($gl$,"Hello, world!"))
end
In the language of the "Algol 68 Report" the input/output facilities were collectively called the "Transput".
Timeline of ALGOL special characters.
The ALGOLs we... |
AWK
AWK () is a domain-specific language designed for text processing and typically used as a data extraction and reporting tool. Like sed and grep, it is a filter, and it is a standard feature of most Unix-like operating systems.
The AWK language is a data-driven scripting language consisting of a set of actions to be... |
History.
According to Brian Kernighan, one of the goals of AWK was to have a tool that would easily manipulate both numbers and strings. AWK was also inspired by Marc Rochkind's programming language that was used to search for patterns in input data, and was implemented using yacc.
As one of the early tools to appear i... |
AWK was preceded by sed (1974). Both were designed for text processing. They share the line-oriented, data-driven paradigm, and are particularly suited to writing one-liner programs, due to the implicit main loop and current line variables. The power and terseness of early AWK programs – notably the powerful regular ex... |
In addition to a simple AWK expression, such as codice_2 or codice_3, the condition can be codice_4 or codice_5 causing the action to be executed before or after all records have been read, or "pattern1, pattern2" which matches the range of records starting with a record that matches "pattern1" up to and including the ... |
The "print" command.
The "print" command is used to output text. The output text is always terminated with a predefined string called the output record separator (ORS) whose default value is a newline. The simplest form of this command is:
Although these fields ("$X") may bear resemblance to variables (the $ symbol ind... |
# Actions to perform in the event the record (line) matches the above regex_pattern
print "expression" | "command"
Built-in variables.
AWK's built-in variables include the field variables: $1, $2, $3, and so on ($0 represents the entire record). They hold the text or values in the individual text-fields in a record.
... |
User-defined functions.
In a format similar to C, function definitions consist of the keyword codice_22, the function name, argument names and the function body. Here is an example of a function.
function add_three(number) {
return number + 3
This statement can be invoked as follows:
(pattern) {
print add_three(36) #... |
words += NF
chars += length + 1 # add one to account for the newline character at the end of each record (line)
As there is no pattern for the first line of the program, every line of input matches by default, so the increment actions are executed for every line. codice_23 is shorthand for codice_24.
Sum last word.
"... |
Match a range of input lines.
The action statement prints each line numbered. The printf function emulates the standard C printf and works similarly to the print command described above. The pattern to match, however, works as follows: "NR" is the number of records, typically lines of input, AWK has so far read, i.e. t... |
Turin
Venice
The previous program prints:
1 Rome
2 Florence
3 Milan
5 Turin
6 Venice
Printing the initial or the final part of a file.
As a special case, when the first part of a range pattern is constantly true, e.g. "1", the range will start at the beginning of the input. Similarly, if the second part is const... |
for (i in words)
creates a loop that goes through the array "words", setting "i" to each "subscript" of the array. This is different from most languages, where such a loop goes through each "value" in the array. The loop thus prints out each word followed by its frequency count. codice_25 was an addition to the One Tr... |
There are alternate ways of writing this. This shell script accesses the environment directly from within awk:
export pattern="$1"
shift
awk '$0 ~ ENVIRON["pattern"] { print FILENAME ":" $0 }' "$@"
This is a shell script that uses codice_30, an array introduced in a newer version of the One True awk after the book was ... |
Or You can use the "-v var=value" command line option (e.g. "awk -v pattern="$pattern" ...").
Finally, this is written in pure awk, without help from a shell or without the need to know too much about the implementation of the awk script (as the variable assignment on command line one does), but is a bit lengthy:
BEGIN... |
awk 'prog'
only works because the fact that there are no filenames is only checked before codice_44 is run! If you explicitly set codice_37 to 1 so that there are no arguments, awk will simply quit because it feels there are no more input files. Therefore, you need to explicitly say to read from standard input with th... |
In 1985 its authors started expanding the language, most significantly by adding user-defined functions. The language is described in the book "The AWK Programming Language", published 1988, and its implementation was made available in releases of UNIX System V. To avoid confusion with the incompatible older version, t... |
Asgard
In Nordic mythology, Asgard (Old Norse: Ásgarðr; "Garden of the Æsir") is a location associated with the gods. It appears in several Old Norse sagas and mythological texts, including the Eddas, however it has also been suggested to be referred to indirectly in some of these sources. It is described as the fortif... |
Attestations.
The Poetic Edda.
Asgard is named twice in Eddic poetry. The first case is in "Hymiskviða", when Thor and Týr journey from Asgard to Hymir's hall to obtain a cauldron large enough to brew beer for a feast for Ægir and the gods. The second instance is in "Þrymskviða" when Loki is attempting to convince Thor... |
Gylfaginning.
In "Gylfaginning", Snorri Sturluson describes how during the creation of the world, the gods made the earth and surrounded it with the sea. They made the sky from the skull of Ymir and settled the on the shores of the earth. They set down the brows of Ymir, forming Midgard, and in the centre of the world ... |
Later, the section describes how an unnamed jötunn came to the gods with his stallion, Svaðilfari and offered help in building a burg for the gods in three winters, asking in return for the sun, moon, and marriage with Freyja. Despite Freyja's opposition, together the gods agree to fulfill his request if he completes h... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.