Wednesday 2 August 2017

Linux Grep No Binary Alternativ


Grep - Unix, Linux Command. Recurse i kataloger hoppa över fil matchande PATTERN. Suppressa felmeddelanden om obefintliga eller oläsliga filer Portabilitetsnota till skillnad från GNU grep överensstämde inte med POSIX 2, eftersom traditionella grep saknade ett - q alternativ och dess - s alternativ Bete sig som GNU grep s - q alternativ Skallskript avsedda att vara bärbara till traditionella grep borde undvika både - q och - s och bör omdirigera utdata till dev null istället. Tryck filen s som binär Som standard, under MS-DOS och MS - Windows, grepp gissar filtypen genom att titta på innehållet i de första 32KB-läsna från filen. Om grep bestämmer att filen är en textfil, stripar den CR-tecknen från det ursprungliga filinnehållet för att göra regelbundna uttryck med och fungerar korrekt. Ange - Du överrullerar detta gissning, vilket gör att alla filer ska läsas och skickas till matchningsmekanismen ordentligt om filen är en textfil med CR LF-par i slutet av varje rad, så kommer det att orsaka att vissa vanliga uttryck misslyckas. On har ingen effekt på andra plattformar än MS-DOS och MS-Windows. Report Byte offsets för Unix-stil. Denna omkopplare gör att grep rapporterar byte-förskjutningar som om filen var Unix-stil textfil, dvs med CR-tecken avstängd. Detta kommer att producera Resultat som är identiska med körgrepp på en Unix-maskin. Detta alternativ har ingen effekt om inte - b-alternativet också används. Det har ingen effekt på andra plattformar än MS-DOS och MS-Windows. Skriv ut versionsnummer grep till standardfel. Detta versionsnummer ska Inkluderas i alla buggrapporter se nedan. Invända känslan av matchning, för att välja icke-matchande linjer. Välj endast de rader som innehåller matchningar som formulerar hela ord Testet är att matchande substring måste antingen vara i början av raden, eller Föregås av en icke-ordbeständig karaktär Likaså måste den vara antingen i slutet av raden eller följd av ett ord som inte innehåller ordet. Ordkomponenter karaktärer är bokstäver, siffror och underskriften. Välj endast de matchningar som exakt matchar Hela linjen. Obsolete synonym för - i. Output en noll byte ASCII NUL-tecken i stället för tecknet som normalt följer ett filnamn. Till exempel, grep - lZ matar ut en noll byte efter varje filnamn istället för den vanliga newline Detta alternativ gör Utmatning otvetydig även i förekomst av filnamn som innehåller ovanliga tecken som newlines Detta alternativ kan användas med kommandon som find - print0 perl -0 sortera - z och xargs -0 för att bearbeta godtyckliga filnamn, även de som innehåller nya karaktärer. To Sök efter den givna strängen i en enda fil. Katt bin bash roligt eko Detta är ett test Avsluta vårt skalskript med framgång meddelande exit 1.from ovan fil grep exit. Grep exit demofile. To Kontrollera för den givna strängen i flera filer i detta fall och. Katt bin bash kul echo Detta är ett test Avsluta vårt skalskript med framgång meddelande exit 1. katt bin bash roligt eko Detta är ett test1 Avsluta vårt skal script med framgång meddelande exit 0.grep exit i båda filerna och. Avsluta 0 exit 1.To fall okänslig sökning med grep - i, lagt till EXIT i. Katt bin bash roligt eko Detta är ett test1 Avsluta vårt skal script med framgång meddelande, EXIT med 0 utgång 0. grep exit exit 0. grep - i avsluta testa. Avsluta vårt skalskript med framgångsbudskap, EXIT med 0 avsluta 0.tv linjer med - i-alternativet, vilket är fallet okänsligt. Linux och Unix grep command. grep som står för globalt regelbundet expressionsutskrift, bearbetar textlinje för rad och skriver ut några rader Som matchar en angiven pattern. grep syntax. Grep är ett kraftfullt verktyg för att matcha ett vanligt uttryck mot text i en fil, flera filer eller en ström av inmatning. Det söker efter PATTERN av text som du anger på kommandoraden och utgångar Resultaten för dig. Exempel på användning. Om du vill, vill du snabbt hitta frasen våra produkter i HTML-filer på din maskin. Låt oss börja med att söka en enda fil. Här är vår PATTERN våra produkter och vår FIL är en enda rad Innehåller vårt mönster och grep matar ut hela matchningslinjen till terminalen. Linjen är längre än vår terminalbredd, så texten vrids runt till följande rader, men den här utgången motsvarar exakt en rad i vår FIL. Notat PATTERNET tolkas b Y grep som ett reguljärt uttryck I ovanstående exempel tolkas alla bokstäver och bokstäver bokstavligen i reguljära uttryck, så endast den exakta frasen kommer att matchas. Andra tecken har speciella betydelser, men vissa skiljetecken, till exempel För mer Information, se vår Regular Expression Quick Reference. Viewing grep-utdata i färg. Om vi ​​använder alternativet - color kommer våra framgångsrika matchningar att markeras för oss. Visning av radnummer av framgångsrika matchningar. Det blir ännu mer användbart om vi vet var Matchningsraden visas i vår fil Om vi ​​anger - n-alternativet, kommer grep att prefixa varje matchande rad med linjenummer. Vår matchande rad är prefixed med 18 vilket berättar att detta motsvarar linje 18 i vår fil. Performing fallinskyddande grep Sökningar. Vad händer om våra produkter visas i början av en mening eller visas i hela bokstaven. Vi kan ange alternativet - i för att utföra en otillräcklig match. Med alternativet - i hittar grep en match på rad 23 Också. Sökande flera filer med ett jokertecken. Om vi ​​har flera filer att söka kan vi söka dem alla med ett jokertecken i vårt FIL-namn I stället för att ange kan vi använda en asterisk och förlängningen När kommandot körs kommer skalet Expandera asterisken till namnet på en fil som den finner i den aktuella katalogen som slutar in. Notice att varje rad börjar med den specifika filen där den matchningen uppträder. Sekretessökning av underkataloger. Vi kan utvidga vår sökning till underkataloger och alla filer de innehåller Alternativet - r, som säger att Grep ska utföra sökningen rekursivt. Låt oss ändra vårt FIL-namn till enbart en asterisk så att den matchar alla filer eller katalognamn och inte bara HTML-filer. Det ger oss ytterligare tre matchningar. Observera att Katalognamn ingår för alla matchande filer som inte finns i den aktuella katalogen. Använda vanliga uttryck för att utföra kraftfullare sökningar. Den verkliga kraften i grep är att den kan användas för att matcha vanligt uttryck Ioner Det är vad re i grep står för Vanliga uttryck använder specialtecken i PATTERN-strängen för att matcha en bredare uppsättning strängar Låt oss titta på ett enkelt exempel. Låt oss säga att du vill hitta varje förekomst av en fras som liknar våra produkter I dina HTML-filer, men frasen bör alltid börja med vårt och sluta med produkter. Vi kan ange detta PATTERN istället våra produkter. I reguljära uttryck tolkas perioden som ett enstaka jokertecken. Det betyder att ett tecken som visas på denna plats kommer att Matcha asterisken betyder föregående tecken, som visas noll eller flera gånger, kommer att matcha Så kombinationen matchar valfritt antal tecken Till exempel kommer våra fantastiska produkter, våra, de allra bästa produkterna och även våra produkter att matcha Och för att vi återkommer Ange alternativet - i, VÅR PRODUKTER och OuRpRoDuCtS kommer också att matcha Låt oss köra kommandot med det här reguljära uttrycket och se vilka ytterligare matcher vi kan få. Här har vi också en match från phras E våra fina produkter. Grep är ett kraftfullt verktyg som kan hjälpa dig att arbeta med textfiler, och det blir ännu kraftfullare när du blir bekväm med regelbundna expressions. Technical Description. grep söker efter de angivna inmatningsfilerna eller standardinmatningen om inga filer finns Namnet, eller om en enda streck - anges som filnamn för linjer som innehåller en matchning till den angivna PATTERNEN. Som standard skriver grep de matchande linjerna. Dessutom finns tre variantprogram, egrepfgrep och rgrep. egrep är detsamma som Running grep - E I det här läget utvärderar grep din PATTERN-sträng som ett utökat regelbundet uttryck ERE Idag sträcker sig ERE inte långt utöver grundläggande reguljära uttryck, men de kan fortfarande vara mycket användbara. Mer information om utvidgade reguljära uttryck finns i Basic vs Utökade regelbundna uttryck nedan. fgrep är detsamma som körgrep - F I det här läget utvärderar grep din PATTERN-sträng som en fast sträng varje tecken i din sträng behandlas bokstavligen. Till exempel om din strin G innehåller en asterisk, kommer grep att försöka matcha den med en verklig asterisk snarare än att tolka detta som ett jokertecken Om din sträng innehåller flera rader om den innehåller nya rader, betraktas varje rad som en fast sträng och någon av dem kan utlösa en matchning. gregre är samma som körgrep - r I det här läget kommer grep att utföra sökningen rekursivt Om den möter en katalog kommer den att gå in i den katalogen och fortsätta söka Symboliska länkar ignoreras om du vill söka kataloger som är symboliskt länkade, Du borde använda alternativet - R istället. I äldre operativsystem var egrep fgrep och rgrep distinkta program med egna exekveringar. I moderna system är dessa speciella kommandonamn helt enkelt genvägar för att greppa med lämpliga flaggor. De är funktionellt likvärdiga. Allmänna alternativ . Skriv ut ett hjälpmeddelande som kortfattat sammanfattar kommandoradsalternativ och avsluta. Om möjligt, använd mmap-systemanropet för att läsa inmatning, istället för standardläsningssamtalet I vissa situationer kan --mmap ge bättre prestanda. --Map kan orsaka odefinierat beteende, inklusive kärnhålor, om en inmatningsfil krymper medan grep fungerar eller om ett IO-fel uppstår. Utför filen s som binär Som standard, under MS - DOS och MS-Windows, grep gissar filtypen genom att titta på innehållet i de första 32KB-läsna från filen. Om grep bestämmer att filen är en textfil, stripar den CR-tecknen från det ursprungliga filinnehållet för att göra regelbundna uttryck med Och fungerar korrekt Specificerar - U överrullar detta gissning, vilket gör att alla filer läses och skickas till matchningsmekanismen ordentligt om filen är en textfil med CR LF-par i slutet av varje rad, så kommer det att orsaka att vissa reguljära uttryck misslyckas Alternativet har ingen effekt på andra plattformar än MS-DOS och MS-Windows. Tryck inmatningen som en uppsättning linjer, vilka varje termineras med en noll byte ASCII NUL-tecken i stället för en ny linje. Liksom - Z eller --null-alternativet, detta Alternativet kan användas med kommandon som sortering - z för att bearbeta godtyckliga filnamn. Regulära uttryck. En regelbunden expression är ett mönster som beskriver en uppsättning strängar Regelbundna uttryck är konstruerade analogt med aritmetiska uttryck, genom att använda olika operatörer för att kombinera mindre uttryck. Grip förstår tre olika versioner av regelbundet uttryckssyntax Grundläggande BRE, utvidgad ERE och perl PRCE I GNU grep finns det ingen skillnad i tillgänglig funktionalitet mellan grundläggande och utökade syntaxer I andra implementeringar är grundläggande reguljära uttryck mindre kraftfulla Följande beskrivning gäller för förlängda reguljära uttrycksskillnader för grundläggande reguljära uttrycken sammanfattas därefter Perl Regelbundna uttryck ger ytterligare funktionalitet. De grundläggande byggstenarna är de reguljära uttryck som matchar ett enda tecken De flesta tecken, inklusive alla bokstäver och siffror, är reguljära uttryck som matchar sig. Varje metakaraktär med särskild betydelse kan citeras genom att föregå det med en backslash. the Period matchar varje enskild karaktär. Karakterklasser och fästeuttryck. Ett fästeuttryck är en lista med tecken som bifogas och Matchar alla enskilda tecken i den listan om den första karaktären i listan är karet så matchar den alla tecken som inte finns i listan Till exempel matchar det reguljära uttrycket 0123456789 någon enskild siffra. Med ett konsoluttryck består ett intervalluttryck av två tecken separerade av en bindestreck. Det matchar alla enskilda tecken som sorterar mellan de två tecknen inklusive, med hjälp av lokalens s samlingsföljd och karaktär Set Till exempel, i standard C-läget, motsvarar annonsen en abcd Många lokala sorterar tecken i ordboksorder och i dessa lokaler är annonsen vanligen inte lika med abcd, den kan motsvara aBbCcDd till exempel För att få den traditionella tolkningen av konsoluttryck , Kan du använda C-läget genom att ställa in LCALL-miljövariabeln till värdet C. Vissa vissa namngivna klasser av tecken a Re fördefinieras inom konsoluttryck, enligt följande Deras namn är självförklarande och de är alnum alfanumeriska cntrl-siffragraf lägre printspetsutrymme övre och xdigit Till exempel betyder alnum teckenklassen för siffror och bokstäver i det aktuella läget i C-läget och ASCII-teckenuppsättningskodning, detta är detsamma som 0-9A-Za-z Observera att parenteserna i dessa klassnamn är en del av de symboliska namnen och måste inkluderas i tillägg till parentesen som avgränsar konsoluttrycket De flesta meta-tecken förlorar Deras speciella innebörd inom konsoluttryck För att inkludera en bokstavlig plats, lägg den först i listan På liknande sätt, inkludera en bokstavlig plats där som helst men först Slutligen, för att inkludera en bokstavlig - placera den sist. Caret och dollartecknet är meta-tecken som respektive Matcha den tomma strängen i början och slutet av en rad. Backslash-tecknet och speciella uttryck. Symbolerna och matcha den tomma strängen i början och slutet av ett ord Symbolen B matchar den tomma strängen i kanten av ett ord och B matchar den tomma strängen förutsatt att den inte ligger i kanten av ett ord Symbolen w är en synonym för alnum och W är en synonym för alnum. Ett regelbundet uttryck kan följas Av en av flera upprepningsoperatörer.12 Praktiska exempel på Linux grep Command. Have du någonsin konfronterats med uppgiften att leta efter en viss sträng eller ett mönster i en fil, ändå har ingen aning om var du ska börja titta. Nå då är det grep att Räddning.12 Grep Command Examples. grep är en kraftfull sökmotor för sökmönster som är utrustad med varje distribution av Linux Om det av någon anledning inte är installerat på ditt system, kan du enkelt installera det via din pakethanterare apt-get on Debian Ubuntu och yum på RHEL CentOS Fedora. Jag har funnit att det enklaste sättet att få dina fötter att våta med grep är att bara dyka in och använda några verkliga exempel.1 Sök och hitta filer. Säg att du just har installerat En ny kopia av den nya Ubuntu på din Mac Hine och att du ska ge Python-skript ett skott. Du har skurat på nätet och letar efter handledning, men du ser att det finns två olika versioner av Python i bruk, och du vet inte vilken som installerades på ditt system av Ubuntu-installationsprogrammet, eller om det installerade några moduler. Hantera bara det här kommandot. Utmatningsutgång. Först körde vi dpkg l som listar installerade paket på ditt system För det andra ledde vi utdata till grep i python, vilka enkla tillstånd går till grep och filter Ut och returnera allt med python i det I-alternativet finns för att ignorera fallet, eftersom grep är skiftlägeskänslig Med hjälp av alternativet i är det en bra vana att komma in, såvida inte du försöker spika ner en mer specifik sökning. 2 Sök och filtrera filer. Grep kan också användas för att söka och filtrera inom enskilda filer eller flera filer. Låt oss ta detta scenario. Du har några problem med din Apache Web Server och du har nått ut till ett av de många fantastiska forumen på Nätet ber om några Hjälp Den snälla själen som svarar på dig har bett dig att lägga in innehållet på dina etc apache2-platser - tillgänglig standard-ssl-fil Skulle det vara lättare för dig, killen hjälper dig och alla läser den om du kunde ta bort allt De kommenterade raderna Bra du kan bara köra this. The v-alternativet säger grep att invertera sin produktion, vilket innebär att istället för att skriva ut matchande linjer, gör motsatsen och skriv ut alla linjer som inte matchar uttrycket, i det här fallet kommenterade Lines.3 Hitta alla filer Only. The grep kan vara mycket användbart för att filtrera från stdout. Låt oss säga att du har en hel mapp full av musikfiler i en massa olika format. Du vill hitta alla filer från Konstnär JayZ men du vill inte ha någon av de remixade spåren Med hjälp av ett find-kommando med ett par grep-rör kommer tricket att utföras. I det här exemplet använder vi finn att skriva ut alla filerna med en förlängningsrör för att greppa jag till Filtrera ut och skriva ut alla filer med namnet JayZ och sedan en annan Rör till grep vi som filtrerar ut och skriver inte ut alla filnamn med strängen i vilket fall som helst remix.4 Visa antal linjer före eller efter söksträngen. Ett annat antal alternativ är A - och B-omkopplarna, som visar matchad linje och nummer Av rader antingen före eller efter söksträngen Medan mansidan ger en mer detaljerad förklaring, tycker jag att det är lättast att komma ihåg alternativen A efter och B before.5 Skriver ut antal linjer runt matchen. Grep s C-alternativet är Liknande men i stället för att skriva ut de linjer som kommer antingen före eller efter strängen, skriver den linjerna i båda riktningarna.6 Count Antal matchningar. Liksom att pipa en grep-sträng till ordräknat wc-program grep s inbyggt alternativ kan utföra Samma för dig.7 Sök filer med given sträng. N-alternativet för grep är mycket användbart när felsökningsfiler under kompileringsfel. Det visar linjenummeret i filen i den givna söksträngen.8 Sök en sträng Rekursivt i alla kataloger. Om du skulle gilla För att söka efter en sträng i den aktuella katalogen tillsammans med alla underkataloger kan du ange r-alternativet för att söka rekursivt.9 Sökningar för hela mönstret. Om du väljer w-alternativet ska du söka efter hela mönstret i strängen För Exempel, använd. Vill skriva ut linjen som innehåller mönstret i citat Om du försöker, annars kommer inget att returneras eftersom vi inte söker efter ett mönster, men ett helt ord.10 Sök en sträng i Gzipped Files. Deserving Några omnämnanden är grep s derivat Den första är zgrep som liknar zcat är för användning på gzipped-filer. Det tar samma alternativ som grep och används på samma sätt. 11 Matcha Regular Expression i Files. The egrep är ett annat derivat som står För Extended Global Regular Expression Det känner igen extra expressionsmeta-tecken som vid and. egrep är mycket användbart för att söka källfiler och andra kodstycken, om behovet uppstår. Det kan åberopas från vanligt grep genom att ange E optio N.12 Sök en fastmönstersträng. Fgrep söker en fil eller en lista med filer för en fast mönstersträng. Det är samma som grep. FA vanliga sätt att använda fgrep är att skicka en fil med mönster till den. Detta är bara ett start Peka med grep men som du säkert kan se är det ovärderligt för en rad olika ändamål Förutom de enkla linjekommandon som vi har implementerat kan grep användas för att skriva kraftfulla cronjobb och robusta skalskript för en start. Kreativ, experimentera med alternativen på mansidan och komma med grep-uttryck som tjänar dina egna ändamål.7 Linux Grep ELLER Grep OCH Grep NOT Operator Examples. Question Kan du förklara hur du använder OR, OCH och INTE operatörer i Unix Grep-kommandot med några exempel. Svar i grep har vi alternativ som motsvarar OR och inte operatörer Det finns inget grep och opearator Men du kan simulera och använda mönster De exempel som nämns nedan hjälper dig att förstå hur du använder OR, OCH och NOT I Linux grep command. The följande fil är Används i följande exempel. Du visste redan att grep är extremt kraftfull baserat på dessa grep-kommando exempel. Grep OR Operator. Use någon av följande 4 metoder för grep ELLER föredrar jag metod nummer 3 som nämns nedan för grep OR-operatör.1 Grep ELLER Användning. Om du använder grep-kommandot utan något alternativ, måste du använda för att skilja flera mönster för eller villkoret. Till exempel, greppa antingen Tech eller Försäljning från filen Utan bakre snedstrecket framför röret, kommer följande Inte fungera.2 Grep ELLER Använda - E. grep - E alternativet är för förlängt regexp Om du använder grep-kommandot med - E-alternativet behöver du bara använda för att skilja flera mönster för eller villkoret. Till exempel, grep antingen Tech eller Försäljning från filen Använd bara för att skilja flera OR-mönster.3 Grep ELLER Använd egrep. egrep är exakt samma som grep - E Så använd egrep utan något alternativ och separera flera mönster för eller villkoret. Till exempel, grep antingen Tech eller Försäljning från filen Använd bara för att skilja flera Ple OR mönster.4 Grep ELLER Använd grep - e. Using grep - e alternativet kan du bara skicka en parameter Använd flera - e alternativ i ett enda kommando för att använda flera mönster för eller villkoret. Till exempel, greppa antingen Tech eller Försäljning från Filen Använd flera - e alternativ med grep för multipel OR-mönster.5 Grep OCH använder - E pattern1 pattern2.There är ingen AND-operatör i grep Men du kan simulera och använda grep - E alternativet. Följande exempel kommer att greppa alla Linjer som innehåller både Dev och Tech i det i samma ordning. Följande exempel kommer att greppa alla linjer som innehåller både Manager och Sales i det i vilken ordning som helst. Notera Att använda regelbundna uttryck i grep är mycket kraftfullt om du vet hur du använder det Effektivt.6 Grep och använder Multiple grep command. You kan också använda flera grep kommando separerade av rör för att simulera OCH scenario. Följande exempel kommer att greppa alla linjer som innehåller både Manager och Försäljning i samma linje.7 Grep INTE använder grep - V. Utta grep - v du kan simulera INTE condi - v alternativet är för inverterad match dvs det matchar alla rader utom det angivna mönstret. For exempel visar alla rader utom de som innehåller sökordet Sales. You kan också kombinera INTE med andra operatörer för att få några kraftfulla kombinationer. Till exempel , Kommer följande att visa antingen Manager eller Developer bot ignorera Sales. kkkk 5 mars 2013, 11 35 pm. Thnx hjälpte mycket men finns det något sätt att grep och endast om två mönster om de är i följd rader, dvs mönster1 bla blah blah Pattern2 blan blan blan pattern3 etc etc etc pattern1 blah blah mönster3 etc etc etc mönster2 blan blan blan. i vill att utmatningen bara är första och andra rader där mönster 1 och mönster 2 är i följd till varandra. Nasdfi 14 april 2013, 1 09 pm. Fungerar också i kombination med andra kommandon, till exempel ps - A egrep - i gnome kde mate kanel om att skrivbordsmiljön du använder är GNOME, KDE, MATE eller Cinnamon. Hi kkkk grep - B 1 pattern2 file1 grep - Ett 1 mönster1 Detta kommer att göra om jag har det Högerfilter först alla linjer med mönster2 plus dess föregående linje Sedan rör för att filtrera för allt mönster1 med vad som helst följer i detta fall mönstret2 Annars kan du gå över till awk gawk En liten sent men ändå Hälsningar. Mike 14 maj 2013, 3 17:00.Jag har output från du kommandot du - ch du och använder detta mönster grep - PG t du. To bara visa poster med GB Jag kan använda grep - PT t du. To visa Terabytes Jag försöker se om jag kan få Båda använder grep - PT t G t du. No output Använda grep - eP T t G t du. Giver ton utdata, inklusive linjer som inte borde matchas. Ashurax 24 juni 2013, 1 17 pm. Grep för unikt mönster över Flera filer egrep pattern1 pattern2 file1 file2 sort - u. Grep för TB och GB kataloger i du output om du använder bash du - h egrep T t G t. if med zsh Tryck Control-V och sedan TAB du - h egrep T G. Aale 10 juli 2013, 10 48 am. Jon Neville 10 februari 2016, 11 12 am. Om ett mönster innehåller mellanslag, borde det mönstret vara i dubbla citat inuti de enkla citat som di D fungerar inte för mig Skulle det andra mönstret läggas i dubbla citat, även om det är ett enda ord. grep - H - r - E till exempel sample2 sample2 till exempel. tot-till 12 februari 2016, 11 28 am. egrep Manager Utvecklare grep - v Sales. This är kombinationen av NOT och AND Hur man gör en kombination av INTE OCH ELLER jag e Jag vill utesluta från den ursprungliga listan bara personer som heter John och som inte är chefer Johns som är chefer och människor Med andra namn borde vara kvar i greppet list. grep skriver linjer som innehåller en match för ett mönster. Denna manual är för version 3 0 av GNU Grep. Den här handboken är för grep en mönster matchande motor. Copyright 1999-2002, 2005, 2008 -2017 Free Software Foundation, Inc. Tillstånd beviljas att kopiera, distribuera och eller ändra detta dokument enligt villkoren i GNU Free Documentation License, Version 1 3 eller någon senare version publicerad av Free Software Foundation utan Invariant Sections, utan Front-Cover Texts, och utan Back-Cover Texts En kopia av licensen Ingår i avsnittet GNU Free Documentation License.1 Inledning. grep-sökningar matar in filer för linjer som innehåller en matchning till en viss mallista När den hittar en matchning i en linje kopierar den linjen till standardutmatningen som standard eller producerar vad som helst Annan typ av utmatning du har begärt med alternativ. Även om grep förväntar sig att göra matchningen på text har den inga gränser för inmatningslinjelängden annat än tillgängligt minne och det kan matcha godtyckliga tecken inom en rad. Om den sista byten för en inmatningsfil Är inte en newline, grep tyst levererar en Eftersom newline också är en separator för listan över mönster, finns det inget sätt att matcha newline-tecken i en text.2 Tillkalla grep. The allmänna synopsis av grep-kommandoraden är. Det kan vara Noll eller flera alternativmönster ses endast som sådant och inte som ett inmatningsfilnamn om det inte redan anges inom alternativ med hjälp av - e-mönstret eller - f-alternativen. Det kan vara noll eller flera inmatningsfilnamn. Korta och långa namn, groupe D enligt kategori.3 1 Grundläggande struktur. De grundläggande byggstenarna är de reguljära uttryck som matchar ett enskilt tecken De flesta tecken, inklusive alla bokstäver och siffror, är reguljära uttryck som matchar sig. Varje meta-tecken med särskild betydelse kan citeras genom att föregå det Med ett backslash. Ett regelbundet uttryck kan följas av en av flera upprepningsoperatörer. Perioden matchar alla enskilda tecken. Föregående föremål är valfritt och matchas högst en gång. Föregående föremål kommer att matchas noll eller flera gånger. Objektet matchas en eller flera gånger. Föregående föremål matchas exakt n gånger. Föregående föremål matchas n eller flera gånger. Föregående föremål matchas högst m gånger Det här är en GNU-förlängning. Föregående föremål matchas åtminstone N gånger men inte mer än m gånger. Det tomma reguljära uttrycket matchar den tomma strängen Två reguljära uttryck kan vara sammanfogade det resulterande reguljära uttrycket matchar varje sträng som bildas av con Catenating två substrängar som respektive matchar de sammanlänkade expressions. Two reguljära uttryck kan anslutas av infix-operatören det resulterande reguljära uttrycket matchar vilken sträng som helst som matchar antingen alternativt expression. Repetition har företräde framför sammanlänkning, som i sin tur har företräde framför växling Ett helt uttryck kan vara Bifogas inom parentes för att åsidosätta dessa prioritetsregler och bilda en subexpression. En oöverträffad matchning bara sig själv.3 2 Teckenklasser och fästeuttryck. Ett fästeuttryck är en lista med tecken som bifogas och Matchar alla enskilda tecken i den listan om den första tecknet Listan är caret, så matchar den alla tecken som inte finns i listan. Exempelvis matchar det reguljära uttrycket 0123456789 en viss siffra. Med ett konsoluttryck består ett intervalluttryck av två tecken åtskilda av en bindestreck. Det matchar alla enskilda tecken som sorterar Mellan de två bokstäverna, inklusive i standard C-läget, sorti Ng-sekvensen är den ursprungliga karaktärsordningen, till exempel, ad motsvarar abcd. I andra ställen är sorteringssekvensen inte specificerad, och annonsen kan vara likvärdig med abcd eller aBbCcDd, eller det kan misslyckas att matcha alla tecken eller uppsättningen av Tecken som den matchar kan till och med vara oregelbundna För att få den traditionella tolkningen av konsoluttryck, kan du använda C-läget genom att ställa in LCALL-miljövariabeln till värdet C. Finellt är vissa namngivna klasser av tecken fördefinierade inom konsoluttryck enligt deras Tolkning beror på LCCTYPE-platsen, till exempel alnum betyder teckenklassen av siffror och bokstäver i den aktuella localen. Alfanumeriska tecken alf och siffra i C-lokal och ASCII-teckenkodning, detta är samma som 0-9A-Za-z. Alfabetiska tecken lägre och övre i C-lokal - och ASCII-teckenkodning, detta är detsamma som A-Za-z. Blank tecken utrymme och flik. Control-tecken I ASCII har dessa tecken octal co Des 000 till 037 och 177 DEL I andra teckenuppsättningar är dessa likvärdiga tecken, om några. Digits 0 1 2 3 4 5 6 7 8 9.Grafiska tecken alnum och punct. Lång bokstäver i C-läget och ASCII Teckenkodning, detta är abcdefghijklmnopqrstu vwxy z. Printable tecken alnum, punct och space. Punctuation karaktärer i C locale och ASCII teckenkodning, detta är -.Space tecken i C-läget, detta är fliken, newline, vertikal flik, form Matning, vagnretur och utrymme Se Användning för mer diskussion av matchande nya linjer. Högsta bokstäver i C-lokal och ASCII-teckenkodning, detta är ABCDEFGHIJKLMNOPQRSTU VWXY Z. Hexadecimala siffror 0 1 2 3 4 5 6 7 8 9 ABCDEF abcde f . Notera att parenteserna i dessa klassnamn är en del av de symboliska namnen och måste inkluderas i tillägg till parentesen som avgränsar konsoluttrycket. Om du felaktigt släpper bort de yttre parenteserna och letar efter säga, övre, GNU Grep skriver ut en diagnostik och utgångar med status 2, under antagandet att du inte tänkte söka efter den nominellt likvärdiga reguljära uttrycksperioden. Ange inställningen POSIXLYCORRECT miljövariabel för att inaktivera den här funktionen. De flesta meta-tecken förlorar sin speciella betydelse inom konsol expressions. ends Konsoluttrycket om det inte är det första listobjektet. Om du vill göra tecknet ett listobjekt måste du först säga det. Förespråkar den öppna samlingssymbolen. förklarar den nära sammanslagna symbolen. Representerar den öppna likvärdighetsklassen. Close equivalence class. represents den öppna karaktärklassymbolen och ska följas av ett giltigt tecken klassnamn. Representerar symbolen för nära tecken klass. Representerar intervallet om det inte är första eller sista i en lista eller slutpunkten för ett intervall. Representerar tecknen som inte finns i listan Om du vill göra tecknet ett listobjekt placerar du det var som helst men först.3 3 Bakstegs tecken och speciella uttryck. Tecknet wh En följd av vissa vanliga tecken, tar en särskild betydelse. Matcha den tomma strängen i kanten av ett ord. Matcha den tomma strängen förutsatt att den inte ligger i kanten av ett ord. Matcha den tomma strängen i början av ordet. Matcha Tom sträng i slutet av ordet. Match ordbeståndsdel, det är en synonym för alnum. Match icke-ordbeståndsdel, det är en synonym för alnum. Match whitespace, det är en synonym för space. Match non-whitespace, det är en Synonym för rymden. Till exempel matchar brat b det separata ordet råttan, Brat B-matchen crate men inte furry rat.3 4 Anchoring. The caret och dollarn tecknet är meta-tecken som respektive matchar den tomma strängen i början och slutet av a line They are termed anchors since they force the match to be anchored to beginning or end of a line, respectively.3 5 Back-references and Subexpressions. The back-reference n , where n is a single digit, matches the substring previously matched by the n th parenthesized subexpression of the regular expression For example, a 1 matches aa When used with alternation, if the group does not participate in the match then the back-reference makes the whole match fail For example, a b 1 will not match ba When multiple regular expressions are given with - e or from a file - f file , back-references are local to each expression.3 6 Basic vs Extended Regular Expressions. In basic regular expressions the meta-characters. Traditional egrep did not support the. GNU grep - E attempts to support traditional usage by assuming that. Here is an example command that invokes GNU grep. This lists all lines in the files menu h and main c that contain the string hello followed by the string world this is because matches zero or more characters within a line See Regular Expressions The - i option causes grep to ignore case, causing it to match the line Hello, world , which it would not otherwise match See Invoking for more details about how to invoke grep. Here are some common questions and answers about grep usage. How can I list just the names of matching files. lists the names of all C files in the current directory whose contents mention main. How do I search directories recursively. searches for hello in all files under the home gigi directory For more control over which files are searched, use find grep and xargs For example, the following command searches only C files. This differs from the command. which merely looks for hello in all files in the current directory whose names end in c The find command line above is more similar to the command. What if a pattern has a leading. searches for all lines matching --cut here-- Without - e grep would attempt to parse --cut here-- as a list of options. Suppose I want to search for a whole word, not a part of a word. searches only for instances of hello that are entire words it does not match Othello For more control, use and to match the start and end of words For example. searches only for words ending in hello , so it matches the word Othello. How do I output conte xt around the matching lines. prints two lines of context around each matching line. How do I force grep to print the name of the file. Alternatively, use - H which is a GNU extension. Why do people use strange regular expressions on ps output. If the pattern had been written without the square brackets, it would have matched not only the ps output line for cron but also the ps output line for grep Note that on some platforms, ps limits the output to the width of the screen grep does not have any limit on the length of a line except the available memory. Why does grep report Binary file matches. If grep listed all matching lines from a binary file, it would probably generate output that is not useful, and it might even muck up your display So GNU grep suppresses output from files that appear to be binary files To force GNU grep to output lines even from files that appear to be binary, use the - a or --binary-files text option To eliminate the Binary file matches messages, use the - I or --binary - files without-match option. Why doesn t grep - lv print non-matching file names. grep - lv lists the names of all files containing one or more lines that do not match To list the names of all files that contain no matching lines, use the - L or --files-without-match option. I can do OR with , but what about AND. finds all lines that contain both paul and franc, ois. Why does the empty pattern match every input line. The grep command searches for lines that contain strings that match a pattern Every line contains the empty string, so an empty pattern causes grep to find a match on each line It is not the only such pattern , , , and many other patterns cause grep to match every line. To match empty lines, use the pattern To match blank lines, use the pattern blank To match no lines at all, use the command grep - f dev null. How can I search in both standard input and in files. Use the special file name. How to express palindromes in a regular expression. It can be done by using back-references for exam ple, a palindrome of 4 characters can be written with a BRE. It matches the word radar or civic. Guglielmo Bondioni proposed a single RE that finds all palindromes up to 19 characters long using 9 subexpressions and 9 back-references. Note this is done by using GNU ERE extensions it might not be portable to other implementations of grep. Why is this back-reference failing. This gives no output, because the first alternate a 1 does not match, as there is no aa in the input, so the 1 in the second alternate has nothing to refer back to, meaning it will never match anything The second alternate in this example can only match if the first alternate has matched making the second one superfluous. How can I match across lines. Standard grep cannot do this, as it is fundamentally line-based Therefore, merely using the space character class does not match newlines in the way you might expect. With the GNU grep option - z --null-data , each input and output line is null-terminated see Other Options Thus, you can match newlines in the input, but typically if there is a match the entire input is output, so this usage is often combined with output-suppressing options like - q e g. If this does not suffice, you can transform the input before giving it to grep or turn to awk sed perl or many other utilities that are designed to operate across lines. What do grep fgrep and egrep stand for. The name grep comes from the way line editing was done on Unix For example, ed uses the following syntax to print a list of matching lines on the screen. fgrep stands for Fixed grep egrep stands for Extended grep.5 Reporting bugs. Bug reports can be found at the GNU bug report logs for grep If you find a bug not listed there, please email it to to create a new bug report.5 1 Known Bugs. Large repetition counts in the construct may cause grep to use lots of memory In addition, certain other obscure regular expressions require exponential time and space, and may cause grep to run out of memory. Back-references are very slow, and may require exponential time. GNU grep is licensed under the GNU GPL, which makes it free software. The free in free software refers to liberty, not price As some GNU project advocates like to point out, think of free speech rather than free beer In short, you have the right freedom to run and change grep and distribute it to other people, and if you want charge money for doing either The important restriction is that you have to grant your recipients the same rights and impose the same restrictions. This general method of licensing software is sometimes called open source The GNU project prefers the term free software for reasons outlined at. This manual is free documentation in the same sense The documentation license is included below The license for the program is available with the source code, or at.6 1 GNU Free Documentation License. Version 1 3, 3 November 2008.The purpose of this License is to make a manual, textbook, or other functional and useful document free in the sense of freedom to assure everyone the effective freedom to copy and redistribute it, with or without modifying it, either commercially or noncommercially Secondarily, this License preserves for the author and publisher a way to get credit for their work, while not being considered responsible for modifications made by others. This License is a kind of copyleft , which means that derivative works of the document must themselves be free in the same sense It complements the GNU General Public License, which is a copyleft license designed for free software. We have designed this License in order to use it for manuals for free software, because free software needs free documentation a free program should come with manuals providing the same freedoms that the software does But this License is not limited to software manuals it can be used for any textual work, regardless of subject matter or whether it is published as a printed book We recommend this License principally for works whose p urpose is instruction or reference. APPLICABILITY AND DEFINITIONS. This License applies to any manual or other work, in any medium, that contains a notice placed by the copyright holder saying it can be distributed under the terms of this License Such a notice grants a world-wide, royalty-free license, unlimited in duration, to use that work under the conditions stated herein The Document , below, refers to any such manual or work Any member of the public is a licensee, and is addressed as you You accept the license if you copy, modify or distribute the work in a way requiring permission under copyright law. A Modified Version of the Document means any work containing the Document or a portion of it, either copied verbatim, or with modifications and or translated into another language. A Secondary Section is a named appendix or a front-matter section of the Document that deals exclusively with the relationship of the publishers or authors of the Document to the Document s overall subject o r to related matters and contains nothing that could fall directly within that overall subject Thus, if the Document is in part a textbook of mathematics, a Secondary Section may not explain any mathematics The relationship could be a matter of historical connection with the subject or with related matters, or of legal, commercial, philosophical, ethical or political position regarding them. The Invariant Sections are certain Secondary Sections whose titles are designated, as being those of Invariant Sections, in the notice that says that the Document is released under this License If a section does not fit the above definition of Secondary then it is not allowed to be designated as Invariant The Document may contain zero Invariant Sections If the Document does not identify any Invariant Sections then there are none. The Cover Texts are certain short passages of text that are listed, as Front-Cover Texts or Back-Cover Texts, in the notice that says that the Document is released under thi s License A Front-Cover Text may be at most 5 words, and a Back-Cover Text may be at most 25 words. A Transparent copy of the Document means a machine-readable copy, represented in a format whose specification is available to the general public, that is suitable for revising the document straightforwardly with generic text editors or for images composed of pixels generic paint programs or for drawings some widely available drawing editor, and that is suitable for input to text formatters or for automatic translation to a variety of formats suitable for input to text formatters A copy made in an otherwise Transparent file format whose markup, or absence of markup, has been arranged to thwart or discourage subsequent modification by readers is not Transparent An image format is not Transparent if used for any substantial amount of text A copy that is not Transparent is called Opaque. Examples of suitable formats for Transparent copies include plain ASCII without markup, Texinfo input forma t, LaTeX input format, SGML or XML using a publicly available DTD, and standard-conforming simple HTML, PostScript or PDF designed for human modification Examples of transparent image formats include PNG, XCF and JPG Opaque formats include proprietary formats that can be read and edited only by proprietary word processors, SGML or XML for which the DTD and or processing tools are not generally available, and the machine-generated HTML, PostScript or PDF produced by some word processors for output purposes only. The Title Page means, for a printed book, the title page itself, plus such following pages as are needed to hold, legibly, the material this License requires to appear in the title page For works in formats which do not have any title page as such, Title Page means the text near the most prominent appearance of the work s title, preceding the beginning of the body of the text. The publisher means any person or entity that distributes copies of the Document to the public. A section Entitled XYZ means a named subunit of the Document whose title either is precisely XYZ or contains XYZ in parentheses following text that translates XYZ in another language Here XYZ stands for a specific section name mentioned below, such as Acknowledgements , Dedications , Endorsements , or History To Preserve the Title of such a section when you modify the Document means that it remains a section Entitled XYZ according to this definition. The Document may include Warranty Disclaimers next to the notice which states that this License applies to the Document These Warranty Disclaimers are considered to be included by reference in this License, but only as regards disclaiming warranties any other implication that these Warranty Disclaimers may have is void and has no effect on the meaning of this License. You may copy and distribute the Document in any medium, either commercially or noncommercially, provided that this License, the copyright notices, and the license notice saying this Lice nse applies to the Document are reproduced in all copies, and that you add no other conditions whatsoever to those of this License You may not use technical measures to obstruct or control the reading or further copying of the copies you make or distribute However, you may accept compensation in exchange for copies If you distribute a large enough number of copies you must also follow the conditions in section 3.You may also lend copies, under the same conditions stated above, and you may publicly display copies. COPYING IN QUANTITY. If you publish printed copies or copies in media that commonly have printed covers of the Document, numbering more than 100, and the Document s license notice requires Cover Texts, you must enclose the copies in covers that carry, clearly and legibly, all these Cover Texts Front-Cover Texts on the front cover, and Back-Cover Texts on the back cover Both covers must also clearly and legibly identify you as the publisher of these copies The front cover must pr esent the full title with all words of the title equally prominent and visible You may add other material on the covers in addition Copying with changes limited to the covers, as long as they preserve the title of the Document and satisfy these conditions, can be treated as verbatim copying in other respects. If the required texts for either cover are too voluminous to fit legibly, you should put the first ones listed as many as fit reasonably on the actual cover, and continue the rest onto adjacent pages. If you publish or distribute Opaque copies of the Document numbering more than 100, you must either include a machine-readable Transparent copy along with each Opaque copy, or state in or with each Opaque copy a computer-network location from which the general network-using public has access to download using public-standard network protocols a complete Transparent copy of the Document, free of added material If you use the latter option, you must take reasonably prudent steps, when yo u begin distribution of Opaque copies in quantity, to ensure that this Transparent copy will remain thus accessible at the stated location until at least one year after the last time you distribute an Opaque copy directly or through your agents or retailers of that edition to the public. It is requested, but not required, that you contact the authors of the Document well before redistributing any large number of copies, to give them a chance to provide you with an updated version of the Document. You may copy and distribute a Modified Version of the Document under the conditions of sections 2 and 3 above, provided that you release the Modified Version under precisely this License, with the Modified Version filling the role of the Document, thus licensing distribution and modification of the Modified Version to whoever possesses a copy of it In addition, you must do these things in the Modified Version. Use in the Title Page and on the covers, if any a title distinct from that of the Docum ent, and from those of previous versions which should, if there were any, be listed in the History section of the Document You may use the same title as a previous version if the original publisher of that version gives permission. List on the Title Page, as authors, one or more persons or entities responsible for authorship of the modifications in the Modified Version, together with at least five of the principal authors of the Document all of its principal authors, if it has fewer than five , unless they release you from this requirement. State on the Title page the name of the publisher of the Modified Version, as the publisher. Preserve all the copyright notices of the Document. Add an appropriate copyright notice for your modifications adjacent to the other copyright notices. Include, immediately after the copyright notices, a license notice giving the public permission to use the Modified Version under the terms of this License, in the form shown in the Addendum below. Preserve in that license notice the full lists of Invariant Sections and required Cover Texts given in the Document s license notice. Include an unaltered copy of this License. Preserve the section Entitled History , Preserve its Title, and add to it an item stating at least the title, year, new authors, and publisher of the Modified Version as given on the Title Page If there is no section Entitled History in the Document, create one stating the title, year, authors, and publisher of the Document as given on its Title Page, then add an item describing the Modified Version as stated in the previous sentence. Preserve the network location, if any, given in the Document for public access to a Transparent copy of the Document, and likewise the network locations given in the Document for previous versions it was based on These may be placed in the History section You may omit a network location for a work that was published at least four years before the Document itself, or if the original publisher of the v ersion it refers to gives permission. For any section Entitled Acknowledgements or Dedications , Preserve the Title of the section, and preserve in the section all the substance and tone of each of the contributor acknowledgements and or dedications given therein. Preserve all the Invariant Sections of the Document, unaltered in their text and in their titles Section numbers or the equivalent are not considered part of the section titles. Delete any section Entitled Endorsements Such a section may not be included in the Modified Version. Do not retitle any existing section to be Entitled Endorsements or to conflict in title with any Invariant Section. Preserve any Warranty Disclaimers. If the Modified Version includes new front-matter sections or appendices that qualify as Secondary Sections and contain no material copied from the Document, you may at your option designate some or all of these sections as invariant To do this, add their titles to the list of Invariant Sections in the Modifie d Version s license notice These titles must be distinct from any other section titles. You may add a section Entitled Endorsements , provided it contains nothing but endorsements of your Modified Version by various parties for example, statements of peer review or that the text has been approved by an organization as the authoritative definition of a standard. You may add a passage of up to five words as a Front-Cover Text, and a passage of up to 25 words as a Back-Cover Text, to the end of the list of Cover Texts in the Modified Version Only one passage of Front-Cover Text and one of Back-Cover Text may be added by or through arrangements made by any one entity If the Document already includes a cover text for the same cover, previously added by you or by arrangement made by the same entity you are acting on behalf of, you may not add another but you may replace the old one, on explicit permission from the previous publisher that added the old one. The author s and publisher s of the Do cument do not by this License give permission to use their names for publicity for or to assert or imply endorsement of any Modified Version. You may combine the Document with other documents released under this License, under the terms defined in section 4 above for modified versions, provided that you include in the combination all of the Invariant Sections of all of the original documents, unmodified, and list them all as Invariant Sections of your combined work in its license notice, and that you preserve all their Warranty Disclaimers. The combined work need only contain one copy of this License, and multiple identical Invariant Sections may be replaced with a single copy If there are multiple Invariant Sections with the same name but different contents, make the title of each such section unique by adding at the end of it, in parentheses, the name of the original author or publisher of that section if known, or else a unique number Make the same adjustment to the section titles in the list of Invariant Sections in the license notice of the combined work. In the combination, you must combine any sections Entitled History in the various original documents, forming one section Entitled History likewise combine any sections Entitled Acknowledgements , and any sections Entitled Dedications You must delete all sections Entitled Endorsements. COLLECTIONS OF DOCUMENTS. You may make a collection consisting of the Document and other documents released under this License, and replace the individual copies of this License in the various documents with a single copy that is included in the collection, provided that you follow the rules of this License for verbatim copying of each of the documents in all other respects. You may extract a single document from such a collection, and distribute it individually under this License, provided you insert a copy of this License into the extracted document, and follow this License in all other respects regarding verbatim copying of that d ocument. AGGREGATION WITH INDEPENDENT WORKS. A compilation of the Document or its derivatives with other separate and independent documents or works, in or on a volume of a storage or distribution medium, is called an aggregate if the copyright resulting from the compilation is not used to limit the legal rights of the compilation s users beyond what the individual works permit When the Document is included in an aggregate, this License does not apply to the other works in the aggregate which are not themselves derivative works of the Document. If the Cover Text requirement of section 3 is applicable to these copies of the Document, then if the Document is less than one half of the entire aggregate, the Document s Cover Texts may be placed on covers that bracket the Document within the aggregate, or the electronic equivalent of covers if the Document is in electronic form Otherwise they must appear on printed covers that bracket the whole aggregate. Translation is considered a kind of modi fication, so you may distribute translations of the Document under the terms of section 4 Replacing Invariant Sections with translations requires special permission from their copyright holders, but you may include translations of some or all Invariant Sections in addition to the original versions of these Invariant Sections You may include a translation of this License, and all the license notices in the Document, and any Warranty Disclaimers, provided that you also include the original English version of this License and the original versions of those notices and disclaimers In case of a disagreement between the translation and the original version of this License or a notice or disclaimer, the original version will prevail. If a section in the Document is Entitled Acknowledgements , Dedications , or History , the requirement section 4 to Preserve its Title section 1 will typically require changing the actual title. You may not copy, modify, sublicense, or distribute the Document excep t as expressly provided under this License Any attempt otherwise to copy, modify, sublicense, or distribute it is void, and will automatically terminate your rights under this License. However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated a provisionally, unless and until the copyright holder explicitly and finally terminates your license, and b permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License for any work from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License If your rights have been terminated and not permanently reinstated, receipt of a copy of some or all of the same material does not give you any rights to use it. FUTURE REVISIONS OF THIS LICENSE. The Free Software Foundation may publish new, revised versions of the GNU Free Documentation License from time to time Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns See. Each version of the License is given a distinguishing version number If the Document specifies that a particular numbered version of this License or any later version applies to it, you have the option of following the terms and conditions either of that specified version or of any later version that has been published not as a draft by the Free Software Foundation If the Document does not specify a version number of this License, you may choose any version ever published not as a draft by the Free Software Foundation If the Document specifies that a proxy can decide which future versions of this License can be used, that proxy s public statement of acceptance of a version permanently authorizes you to choose that version for the Document. Massive Multiauthor Collaboration Site or MMC Site means any World Wide Web server that publishes copyrightable works and also provides prominent facilities for anybody to edit those works A public wiki that anybody can edit is an example of such a server A Massive Multiauthor Collaboration or MMC contained in the site means any set of copyrightable works thus published on the MMC site. CC-BY-SA means the Creative Commons Attribution-Share Alike 3 0 license published by Creative Commons Corporation, a not-for-profit corporation with a principal place of business in San Francisco, California, as well as future copyleft versions of that license published by that same organization. Incorporate means to publish or republish a Document, in wh ole or in part, as part of another Document. An MMC is eligible for relicensing if it is licensed under this License, and if all works that were first published under this License somewhere other than this MMC, and subsequently incorporated in whole or in part into the MMC, 1 had no cover texts or invariant sections, and 2 were thus incorporated prior to November 1, 2008.The operator of an MMC Site may republish an MMC contained in the site under CC-BY-SA on the same site at any time before August 1, 2009, provided the MMC is eligible for relicensing. ADDENDUM How to use this License for your documents. To use this License in a document you have written, include a copy of the License in the document and put the following copyright and license notices just after the title page. If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, replace the with Texts line with this. If you have Invariant Sections without Cover Texts, or some other combination of the three, merge those tw o alternatives to suit the situation. If your document contains nontrivial examples of program code, we recommend releasing these examples in parallel under your choice of free software license, such as the GNU General Public License, to permit their use in free software.

No comments:

Post a Comment