CINXE.COM

Awk - Wikipedia

<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available" lang="it" dir="ltr"> <head> <meta charset="UTF-8"> <title>Awk - Wikipedia</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )itwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":[",\t."," \t,"],"wgDigitTransformTable":["",""], "wgDefaultDateFormat":"dmy","wgMonthNames":["","gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],"wgRequestId":"6100433e-6d09-4ed4-a0ce-6d716bac7cbf","wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"Awk","wgTitle":"Awk","wgCurRevisionId":141913324,"wgRevisionId":141913324,"wgArticleId":20789,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["P3847 letta da Wikidata","Voci con template Collegamenti esterni e qualificatori sconosciuti","P1324 letta da Wikidata","Voci con codice LCCN","Voci con codice GND","Voci con codice BNF","Voci con codice J9U","Voci non biografiche con codici di controllo di autorità","Linguaggi di programmazione"],"wgPageViewLanguage":"it","wgPageContentLanguage":"it","wgPageContentModel":"wikitext","wgRelevantPageName":"Awk","wgRelevantArticleId":20789,"wgIsProbablyEditable":true, "wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikipedia","wgCiteReferencePreviewsActive":false,"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"it","pageLanguageDir":"ltr","pageVariantFallbacks":"it"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":true,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":9000,"wgRelatedArticlesCompat":[],"wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q213970","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"],"GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false, "wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false};RLSTATE={"ext.gadget.coloriDarkMode-default":"ready","ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.cite.styles":"ready","ext.pygments":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","jquery.makeCollapsible.styles":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.cite.ux-enhancements","ext.pygments.view","mediawiki.page.media","site","mediawiki.page.ready","jquery.makeCollapsible","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.gadget.MainPageWikiList","ext.gadget.stru-commonsupload","ext.gadget.HiddenCat", "ext.gadget.ReferenceTooltips","ext.gadget.TitoloErrato","ext.gadget.NewSection","ext.gadget.RichiediRevisioneBozza","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.popups","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","ext.cx.eventlogging.campaigns","ext.cx.uls.quick.actions","wikibase.client.vector-2022","ext.checkUser.clientHints","ext.growthExperiments.SuggestedEditSession","wikibase.sidebar.tracking"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=it&amp;modules=ext.cite.styles%7Cext.pygments%2CwikimediaBadges%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cjquery.makeCollapsible.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&amp;only=styles&amp;skin=vector-2022"> <script async="" src="/w/load.php?lang=it&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=it&amp;modules=ext.gadget.coloriDarkMode-default&amp;only=styles&amp;skin=vector-2022"> <link rel="stylesheet" href="/w/load.php?lang=it&amp;modules=site.styles&amp;only=styles&amp;skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.4"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta property="og:image" content="https://upload.wikimedia.org/wikipedia/commons/thumb/d/d5/The-AWK-Programming-Language.svg/1200px-The-AWK-Programming-Language.svg.png"> <meta property="og:image:width" content="1200"> <meta property="og:image:height" content="600"> <meta property="og:image" content="https://upload.wikimedia.org/wikipedia/commons/thumb/d/d5/The-AWK-Programming-Language.svg/800px-The-AWK-Programming-Language.svg.png"> <meta property="og:image:width" content="800"> <meta property="og:image:height" content="400"> <meta property="og:image" content="https://upload.wikimedia.org/wikipedia/commons/thumb/d/d5/The-AWK-Programming-Language.svg/640px-The-AWK-Programming-Language.svg.png"> <meta property="og:image:width" content="640"> <meta property="og:image:height" content="320"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="Awk - Wikipedia"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//it.m.wikipedia.org/wiki/Awk"> <link rel="alternate" type="application/x-wiki" title="Modifica" href="/w/index.php?title=Awk&amp;action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikipedia (it)"> <link rel="EditURI" type="application/rsd+xml" href="//it.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://it.wikipedia.org/wiki/Awk"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.it"> <link rel="alternate" type="application/atom+xml" title="Feed Atom di Wikipedia" href="/w/index.php?title=Speciale:UltimeModifiche&amp;feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject mw-editable page-Awk rootpage-Awk skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Vai al contenuto</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Sito"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Menu principale" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Menu principale</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Menu principale</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">sposta nella barra laterale</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">nascondi</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigazione </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Pagina_principale" title="Visita la pagina principale [z]" accesskey="z"><span>Pagina principale</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Speciale:UltimeModifiche" title="Elenco delle ultime modifiche del sito [r]" accesskey="r"><span>Ultime modifiche</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Speciale:PaginaCasuale" title="Mostra una pagina a caso [x]" accesskey="x"><span>Una voce a caso</span></a></li><li id="n-nearby-pages-title" class="mw-list-item"><a href="/wiki/Speciale:NelleVicinanze"><span>Nelle vicinanze</span></a></li><li id="n-vetrina" class="mw-list-item"><a href="/wiki/Wikipedia:Vetrina"><span>Vetrina</span></a></li><li id="n-help" class="mw-list-item"><a href="/wiki/Aiuto:Aiuto" title="Pagine di aiuto"><span>Aiuto</span></a></li><li id="n-Sportello-informazioni" class="mw-list-item"><a href="/wiki/Aiuto:Sportello_informazioni"><span>Sportello informazioni</span></a></li> </ul> </div> </div> <div id="p-Comunità" class="vector-menu mw-portlet mw-portlet-Comunità" > <div class="vector-menu-heading"> Comunità </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-portal" class="mw-list-item"><a href="/wiki/Portale:Comunit%C3%A0" title="Descrizione del progetto, cosa puoi fare, dove trovare le cose"><span>Portale Comunità</span></a></li><li id="n-villagepump" class="mw-list-item"><a href="/wiki/Wikipedia:Bar"><span>Bar</span></a></li><li id="n-wikipediano" class="mw-list-item"><a href="/wiki/Wikipedia:Wikipediano"><span>Il Wikipediano</span></a></li><li id="n-contactpage" class="mw-list-item"><a href="/wiki/Wikipedia:Contatti"><span>Contatti</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Pagina_principale" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikipedia.png" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikipedia" src="/static/images/mobile/copyright/wikipedia-wordmark-en.svg" style="width: 7.5em; height: 1.125em;"> <img class="mw-logo-tagline" alt="L&#039;enciclopedia libera" src="/static/images/mobile/copyright/wikipedia-tagline-it.svg" width="120" height="13" style="width: 7.5em; height: 0.8125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Speciale:Ricerca" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Cerca in Wikipedia [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Ricerca</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Cerca in Wikipedia" aria-label="Cerca in Wikipedia" autocapitalize="sentences" title="Cerca in Wikipedia [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Speciale:Ricerca"> </div> <button class="cdx-button cdx-search-input__end-button">Ricerca</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Strumenti personali"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Aspetto"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Modifica la dimensione, la larghezza e il colore del testo" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Aspetto" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Aspetto</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_it.wikipedia.org&amp;uselang=it" class=""><span>Fai una donazione</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Speciale:CreaUtenza&amp;returnto=Awk" title="Si consiglia di registrarsi e di effettuare l&#039;accesso, anche se non è obbligatorio" class=""><span>registrati</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Speciale:Entra&amp;returnto=Awk" title="Si consiglia di effettuare l&#039;accesso, anche se non è obbligatorio [o]" accesskey="o" class=""><span>entra</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="Altre opzioni" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Strumenti personali" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Strumenti personali</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="Menu utente" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_it.wikipedia.org&amp;uselang=it"><span>Fai una donazione</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Speciale:CreaUtenza&amp;returnto=Awk" title="Si consiglia di registrarsi e di effettuare l&#039;accesso, anche se non è obbligatorio"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>registrati</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Speciale:Entra&amp;returnto=Awk" title="Si consiglia di effettuare l&#039;accesso, anche se non è obbligatorio [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>entra</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Pagine per utenti anonimi <a href="/wiki/Aiuto:Benvenuto" aria-label="Ulteriori informazioni sulla contribuzione"><span>ulteriori informazioni</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Speciale:MieiContributi" title="Un elenco delle modifiche fatte da questo indirizzo IP [y]" accesskey="y"><span>contributi</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Speciale:MieDiscussioni" title="Discussioni sulle modifiche fatte da questo indirizzo IP [n]" accesskey="n"><span>discussioni</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Sito"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Indice" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Indice</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">sposta nella barra laterale</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">nascondi</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">Inizio</div> </a> </li> <li id="toc-Tipi_di_variabile" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Tipi_di_variabile"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Tipi di variabile</span> </div> </a> <ul id="toc-Tipi_di_variabile-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Struttura_di_un_programma" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Struttura_di_un_programma"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Struttura di un programma</span> </div> </a> <button aria-controls="toc-Struttura_di_un_programma-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Attiva/disattiva la sottosezione Struttura di un programma</span> </button> <ul id="toc-Struttura_di_un_programma-sublist" class="vector-toc-list"> <li id="toc-Condizioni_speciali" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Condizioni_speciali"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1</span> <span>Condizioni speciali</span> </div> </a> <ul id="toc-Condizioni_speciali-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Utilizzi" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Utilizzi"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>Utilizzi</span> </div> </a> <ul id="toc-Utilizzi-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Esempi" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Esempi"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>Esempi</span> </div> </a> <button aria-controls="toc-Esempi-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Attiva/disattiva la sottosezione Esempi</span> </button> <ul id="toc-Esempi-sublist" class="vector-toc-list"> <li id="toc-Hello,_world!" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Hello,_world!"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.1</span> <span>Hello, world!</span> </div> </a> <ul id="toc-Hello,_world!-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Conteggio_delle_parole" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Conteggio_delle_parole"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.2</span> <span>Conteggio delle parole</span> </div> </a> <ul id="toc-Conteggio_delle_parole-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Note" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Note"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>Note</span> </div> </a> <ul id="toc-Note-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Altri_progetti" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Altri_progetti"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</span> <span>Altri progetti</span> </div> </a> <ul id="toc-Altri_progetti-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Collegamenti_esterni" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Collegamenti_esterni"> <div class="vector-toc-text"> <span class="vector-toc-numb">7</span> <span>Collegamenti esterni</span> </div> </a> <ul id="toc-Collegamenti_esterni-sublist" class="vector-toc-list"> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Indice" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Mostra/Nascondi l&#039;indice" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Mostra/Nascondi l&#039;indice</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">Awk</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="Vai a una voce in un&#039;altra lingua. Disponibile in 43 lingue" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-43" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">43 lingue</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="interlanguage-link interwiki-an mw-list-item"><a href="https://an.wikipedia.org/wiki/AWK" title="AWK - aragonese" lang="an" hreflang="an" data-title="AWK" data-language-autonym="Aragonés" data-language-local-name="aragonese" class="interlanguage-link-target"><span>Aragonés</span></a></li><li class="interlanguage-link interwiki-ar mw-list-item"><a href="https://ar.wikipedia.org/wiki/%D8%A3%D9%88%D9%83_(%D9%84%D8%BA%D8%A9_%D8%A8%D8%B1%D9%85%D8%AC%D8%A9)" title="أوك (لغة برمجة) - arabo" lang="ar" hreflang="ar" data-title="أوك (لغة برمجة)" data-language-autonym="العربية" data-language-local-name="arabo" class="interlanguage-link-target"><span>العربية</span></a></li><li class="interlanguage-link interwiki-ast mw-list-item"><a href="https://ast.wikipedia.org/wiki/AWK" title="AWK - asturiano" lang="ast" hreflang="ast" data-title="AWK" data-language-autonym="Asturianu" data-language-local-name="asturiano" class="interlanguage-link-target"><span>Asturianu</span></a></li><li class="interlanguage-link interwiki-bg mw-list-item"><a href="https://bg.wikipedia.org/wiki/AWK" title="AWK - bulgaro" lang="bg" hreflang="bg" data-title="AWK" data-language-autonym="Български" data-language-local-name="bulgaro" class="interlanguage-link-target"><span>Български</span></a></li><li class="interlanguage-link interwiki-bs mw-list-item"><a href="https://bs.wikipedia.org/wiki/Awk" title="Awk - bosniaco" lang="bs" hreflang="bs" data-title="Awk" data-language-autonym="Bosanski" data-language-local-name="bosniaco" class="interlanguage-link-target"><span>Bosanski</span></a></li><li class="interlanguage-link interwiki-ca mw-list-item"><a href="https://ca.wikipedia.org/wiki/Awk" title="Awk - catalano" lang="ca" hreflang="ca" data-title="Awk" data-language-autonym="Català" data-language-local-name="catalano" class="interlanguage-link-target"><span>Català</span></a></li><li class="interlanguage-link interwiki-cs mw-list-item"><a href="https://cs.wikipedia.org/wiki/AWK" title="AWK - ceco" lang="cs" hreflang="cs" data-title="AWK" data-language-autonym="Čeština" data-language-local-name="ceco" class="interlanguage-link-target"><span>Čeština</span></a></li><li class="interlanguage-link interwiki-da mw-list-item"><a href="https://da.wikipedia.org/wiki/AWK_(programmeringssprog)" title="AWK (programmeringssprog) - danese" lang="da" hreflang="da" data-title="AWK (programmeringssprog)" data-language-autonym="Dansk" data-language-local-name="danese" class="interlanguage-link-target"><span>Dansk</span></a></li><li class="interlanguage-link interwiki-de mw-list-item"><a href="https://de.wikipedia.org/wiki/Awk" title="Awk - tedesco" lang="de" hreflang="de" data-title="Awk" data-language-autonym="Deutsch" data-language-local-name="tedesco" class="interlanguage-link-target"><span>Deutsch</span></a></li><li class="interlanguage-link interwiki-el mw-list-item"><a href="https://el.wikipedia.org/wiki/AWK" title="AWK - greco" lang="el" hreflang="el" data-title="AWK" data-language-autonym="Ελληνικά" data-language-local-name="greco" class="interlanguage-link-target"><span>Ελληνικά</span></a></li><li class="interlanguage-link interwiki-en mw-list-item"><a href="https://en.wikipedia.org/wiki/AWK" title="AWK - inglese" lang="en" hreflang="en" data-title="AWK" data-language-autonym="English" data-language-local-name="inglese" class="interlanguage-link-target"><span>English</span></a></li><li class="interlanguage-link interwiki-es mw-list-item"><a href="https://es.wikipedia.org/wiki/AWK" title="AWK - spagnolo" lang="es" hreflang="es" data-title="AWK" data-language-autonym="Español" data-language-local-name="spagnolo" class="interlanguage-link-target"><span>Español</span></a></li><li class="interlanguage-link interwiki-et mw-list-item"><a href="https://et.wikipedia.org/wiki/AWK" title="AWK - estone" lang="et" hreflang="et" data-title="AWK" data-language-autonym="Eesti" data-language-local-name="estone" class="interlanguage-link-target"><span>Eesti</span></a></li><li class="interlanguage-link interwiki-fa mw-list-item"><a href="https://fa.wikipedia.org/wiki/AWK" title="AWK - persiano" lang="fa" hreflang="fa" data-title="AWK" data-language-autonym="فارسی" data-language-local-name="persiano" class="interlanguage-link-target"><span>فارسی</span></a></li><li class="interlanguage-link interwiki-fi mw-list-item"><a href="https://fi.wikipedia.org/wiki/AWK" title="AWK - finlandese" lang="fi" hreflang="fi" data-title="AWK" data-language-autonym="Suomi" data-language-local-name="finlandese" class="interlanguage-link-target"><span>Suomi</span></a></li><li class="interlanguage-link interwiki-fr mw-list-item"><a href="https://fr.wikipedia.org/wiki/Awk" title="Awk - francese" lang="fr" hreflang="fr" data-title="Awk" data-language-autonym="Français" data-language-local-name="francese" class="interlanguage-link-target"><span>Français</span></a></li><li class="interlanguage-link interwiki-gl mw-list-item"><a href="https://gl.wikipedia.org/wiki/AWK" title="AWK - galiziano" lang="gl" hreflang="gl" data-title="AWK" data-language-autonym="Galego" data-language-local-name="galiziano" class="interlanguage-link-target"><span>Galego</span></a></li><li class="interlanguage-link interwiki-he mw-list-item"><a href="https://he.wikipedia.org/wiki/AWK" title="AWK - ebraico" lang="he" hreflang="he" data-title="AWK" data-language-autonym="עברית" data-language-local-name="ebraico" class="interlanguage-link-target"><span>עברית</span></a></li><li class="interlanguage-link interwiki-hr mw-list-item"><a href="https://hr.wikipedia.org/wiki/AWK" title="AWK - croato" lang="hr" hreflang="hr" data-title="AWK" data-language-autonym="Hrvatski" data-language-local-name="croato" class="interlanguage-link-target"><span>Hrvatski</span></a></li><li class="interlanguage-link interwiki-hu mw-list-item"><a href="https://hu.wikipedia.org/wiki/Awk" title="Awk - ungherese" lang="hu" hreflang="hu" data-title="Awk" data-language-autonym="Magyar" data-language-local-name="ungherese" class="interlanguage-link-target"><span>Magyar</span></a></li><li class="interlanguage-link interwiki-hy mw-list-item"><a href="https://hy.wikipedia.org/wiki/AWK" title="AWK - armeno" lang="hy" hreflang="hy" data-title="AWK" data-language-autonym="Հայերեն" data-language-local-name="armeno" class="interlanguage-link-target"><span>Հայերեն</span></a></li><li class="interlanguage-link interwiki-ja mw-list-item"><a href="https://ja.wikipedia.org/wiki/AWK" title="AWK - giapponese" lang="ja" hreflang="ja" data-title="AWK" data-language-autonym="日本語" data-language-local-name="giapponese" class="interlanguage-link-target"><span>日本語</span></a></li><li class="interlanguage-link interwiki-ko mw-list-item"><a href="https://ko.wikipedia.org/wiki/AWK" title="AWK - coreano" lang="ko" hreflang="ko" data-title="AWK" data-language-autonym="한국어" data-language-local-name="coreano" class="interlanguage-link-target"><span>한국어</span></a></li><li class="interlanguage-link interwiki-lv mw-list-item"><a href="https://lv.wikipedia.org/wiki/AWK" title="AWK - lettone" lang="lv" hreflang="lv" data-title="AWK" data-language-autonym="Latviešu" data-language-local-name="lettone" class="interlanguage-link-target"><span>Latviešu</span></a></li><li class="interlanguage-link interwiki-ms mw-list-item"><a href="https://ms.wikipedia.org/wiki/AWK" title="AWK - malese" lang="ms" hreflang="ms" data-title="AWK" data-language-autonym="Bahasa Melayu" data-language-local-name="malese" class="interlanguage-link-target"><span>Bahasa Melayu</span></a></li><li class="interlanguage-link interwiki-nl mw-list-item"><a href="https://nl.wikipedia.org/wiki/AWK" title="AWK - olandese" lang="nl" hreflang="nl" data-title="AWK" data-language-autonym="Nederlands" data-language-local-name="olandese" class="interlanguage-link-target"><span>Nederlands</span></a></li><li class="interlanguage-link interwiki-nn mw-list-item"><a href="https://nn.wikipedia.org/wiki/Awk" title="Awk - norvegese nynorsk" lang="nn" hreflang="nn" data-title="Awk" data-language-autonym="Norsk nynorsk" data-language-local-name="norvegese nynorsk" class="interlanguage-link-target"><span>Norsk nynorsk</span></a></li><li class="interlanguage-link interwiki-no mw-list-item"><a href="https://no.wikipedia.org/wiki/Awk" title="Awk - norvegese bokmål" lang="nb" hreflang="nb" data-title="Awk" data-language-autonym="Norsk bokmål" data-language-local-name="norvegese bokmål" class="interlanguage-link-target"><span>Norsk bokmål</span></a></li><li class="interlanguage-link interwiki-pl mw-list-item"><a href="https://pl.wikipedia.org/wiki/AWK" title="AWK - polacco" lang="pl" hreflang="pl" data-title="AWK" data-language-autonym="Polski" data-language-local-name="polacco" class="interlanguage-link-target"><span>Polski</span></a></li><li class="interlanguage-link interwiki-pt mw-list-item"><a href="https://pt.wikipedia.org/wiki/AWK" title="AWK - portoghese" lang="pt" hreflang="pt" data-title="AWK" data-language-autonym="Português" data-language-local-name="portoghese" class="interlanguage-link-target"><span>Português</span></a></li><li class="interlanguage-link interwiki-ro mw-list-item"><a href="https://ro.wikipedia.org/wiki/AWK" title="AWK - rumeno" lang="ro" hreflang="ro" data-title="AWK" data-language-autonym="Română" data-language-local-name="rumeno" class="interlanguage-link-target"><span>Română</span></a></li><li class="interlanguage-link interwiki-ru mw-list-item"><a href="https://ru.wikipedia.org/wiki/AWK" title="AWK - russo" lang="ru" hreflang="ru" data-title="AWK" data-language-autonym="Русский" data-language-local-name="russo" class="interlanguage-link-target"><span>Русский</span></a></li><li class="interlanguage-link interwiki-sh mw-list-item"><a href="https://sh.wikipedia.org/wiki/AWK" title="AWK - serbo-croato" lang="sh" hreflang="sh" data-title="AWK" data-language-autonym="Srpskohrvatski / српскохрватски" data-language-local-name="serbo-croato" class="interlanguage-link-target"><span>Srpskohrvatski / српскохрватски</span></a></li><li class="interlanguage-link interwiki-simple mw-list-item"><a href="https://simple.wikipedia.org/wiki/Awk" title="Awk - Simple English" lang="en-simple" hreflang="en-simple" data-title="Awk" data-language-autonym="Simple English" data-language-local-name="Simple English" class="interlanguage-link-target"><span>Simple English</span></a></li><li class="interlanguage-link interwiki-sk mw-list-item"><a href="https://sk.wikipedia.org/wiki/AWK" title="AWK - slovacco" lang="sk" hreflang="sk" data-title="AWK" data-language-autonym="Slovenčina" data-language-local-name="slovacco" class="interlanguage-link-target"><span>Slovenčina</span></a></li><li class="interlanguage-link interwiki-sr mw-list-item"><a href="https://sr.wikipedia.org/wiki/AWK" title="AWK - serbo" lang="sr" hreflang="sr" data-title="AWK" data-language-autonym="Српски / srpski" data-language-local-name="serbo" class="interlanguage-link-target"><span>Српски / srpski</span></a></li><li class="interlanguage-link interwiki-sv mw-list-item"><a href="https://sv.wikipedia.org/wiki/Awk" title="Awk - svedese" lang="sv" hreflang="sv" data-title="Awk" data-language-autonym="Svenska" data-language-local-name="svedese" class="interlanguage-link-target"><span>Svenska</span></a></li><li class="interlanguage-link interwiki-th mw-list-item"><a href="https://th.wikipedia.org/wiki/%E0%B8%A0%E0%B8%B2%E0%B8%A9%E0%B8%B2%E0%B8%AD%E0%B8%AD%E0%B8%A7%E0%B9%8C%E0%B8%81" title="ภาษาออว์ก - thailandese" lang="th" hreflang="th" data-title="ภาษาออว์ก" data-language-autonym="ไทย" data-language-local-name="thailandese" class="interlanguage-link-target"><span>ไทย</span></a></li><li class="interlanguage-link interwiki-tr mw-list-item"><a href="https://tr.wikipedia.org/wiki/AWK" title="AWK - turco" lang="tr" hreflang="tr" data-title="AWK" data-language-autonym="Türkçe" data-language-local-name="turco" class="interlanguage-link-target"><span>Türkçe</span></a></li><li class="interlanguage-link interwiki-uk mw-list-item"><a href="https://uk.wikipedia.org/wiki/AWK" title="AWK - ucraino" lang="uk" hreflang="uk" data-title="AWK" data-language-autonym="Українська" data-language-local-name="ucraino" class="interlanguage-link-target"><span>Українська</span></a></li><li class="interlanguage-link interwiki-vi mw-list-item"><a href="https://vi.wikipedia.org/wiki/AWK" title="AWK - vietnamita" lang="vi" hreflang="vi" data-title="AWK" data-language-autonym="Tiếng Việt" data-language-local-name="vietnamita" class="interlanguage-link-target"><span>Tiếng Việt</span></a></li><li class="interlanguage-link interwiki-zh mw-list-item"><a href="https://zh.wikipedia.org/wiki/AWK" title="AWK - cinese" lang="zh" hreflang="zh" data-title="AWK" data-language-autonym="中文" data-language-local-name="cinese" class="interlanguage-link-target"><span>中文</span></a></li><li class="interlanguage-link interwiki-zh-yue mw-list-item"><a href="https://zh-yue.wikipedia.org/wiki/Awk" title="Awk - cantonese" lang="yue" hreflang="yue" data-title="Awk" data-language-autonym="粵語" data-language-local-name="cantonese" class="interlanguage-link-target"><span>粵語</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-edit wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q213970#sitelinks-wikipedia" title="Modifica collegamenti interlinguistici" class="wbc-editpage">Modifica collegamenti</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namespace"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-main" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Awk" title="Vedi la voce [c]" accesskey="c"><span>Voce</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Discussione:Awk" rel="discussion" title="Vedi le discussioni relative a questa pagina [t]" accesskey="t"><span>Discussione</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Cambia versione linguistica" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">italiano</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Visite"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Awk"><span>Leggi</span></a></li><li id="ca-ve-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Awk&amp;veaction=edit" title="Modifica questa pagina [v]" accesskey="v"><span>Modifica</span></a></li><li id="ca-edit" class="collapsible vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Awk&amp;action=edit" title="Modifica il wikitesto di questa pagina [e]" accesskey="e"><span>Modifica wikitesto</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Awk&amp;action=history" title="Versioni precedenti di questa pagina [h]" accesskey="h"><span>Cronologia</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Strumenti pagine"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Strumenti" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Strumenti</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Strumenti</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">sposta nella barra laterale</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">nascondi</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="Altre opzioni" > <div class="vector-menu-heading"> Azioni </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/Awk"><span>Leggi</span></a></li><li id="ca-more-ve-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Awk&amp;veaction=edit" title="Modifica questa pagina [v]" accesskey="v"><span>Modifica</span></a></li><li id="ca-more-edit" class="collapsible vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Awk&amp;action=edit" title="Modifica il wikitesto di questa pagina [e]" accesskey="e"><span>Modifica wikitesto</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Awk&amp;action=history"><span>Cronologia</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> Generale </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Speciale:PuntanoQui/Awk" title="Elenco di tutte le pagine che sono collegate a questa [j]" accesskey="j"><span>Puntano qui</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Speciale:ModificheCorrelate/Awk" rel="nofollow" title="Elenco delle ultime modifiche alle pagine collegate a questa [k]" accesskey="k"><span>Modifiche correlate</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Speciale:PagineSpeciali" title="Elenco di tutte le pagine speciali [q]" accesskey="q"><span>Pagine speciali</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Awk&amp;oldid=141913324" title="Collegamento permanente a questa versione di questa pagina"><span>Link permanente</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Awk&amp;action=info" title="Ulteriori informazioni su questa pagina"><span>Informazioni pagina</span></a></li><li id="t-cite" class="mw-list-item"><a href="/w/index.php?title=Speciale:Cita&amp;page=Awk&amp;id=141913324&amp;wpFormIdentifier=titleform" title="Informazioni su come citare questa pagina"><span>Cita questa voce</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Speciale:UrlShortener&amp;url=https%3A%2F%2Fit.wikipedia.org%2Fwiki%2FAwk"><span>Ottieni URL breve</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Speciale:QrCode&amp;url=https%3A%2F%2Fit.wikipedia.org%2Fwiki%2FAwk"><span>Scarica codice QR</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Stampa/esporta </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-create_a_book" class="mw-list-item"><a href="/w/index.php?title=Speciale:Libro&amp;bookcmd=book_creator&amp;referer=Awk"><span>Crea un libro</span></a></li><li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Speciale:DownloadAsPdf&amp;page=Awk&amp;action=show-download-screen"><span>Scarica come PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=Awk&amp;printable=yes" title="Versione stampabile di questa pagina [p]" accesskey="p"><span>Versione stampabile</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> In altri progetti </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="wb-otherproject-link wb-otherproject-commons mw-list-item"><a href="https://commons.wikimedia.org/wiki/Category:AWK" hreflang="en"><span>Wikimedia Commons</span></a></li><li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q213970" title="Collegamento all&#039;elemento connesso dell&#039;archivio dati [g]" accesskey="g"><span>Elemento Wikidata</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Strumenti pagine"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Aspetto"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Aspetto</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">sposta nella barra laterale</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">nascondi</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> </div> <div id="siteSub" class="noprint">Da Wikipedia, l&#039;enciclopedia libera.</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="it" dir="ltr"><style data-mw-deduplicate="TemplateStyles:r130658281">body:not(.skin-minerva) .mw-parser-output .hatnote.nota-disambigua{clear:both;margin-top:0;padding:.05em .5em}</style> <style data-mw-deduplicate="TemplateStyles:r139142988">.mw-parser-output .hatnote-content{align-items:center;display:flex}.mw-parser-output .hatnote-icon{flex-shrink:0}.mw-parser-output .hatnote-icon img{display:flex}.mw-parser-output .hatnote-text{font-style:italic}body:not(.skin-minerva) .mw-parser-output .hatnote{border:1px solid #CCC;display:flex;margin:.5em 0;padding:.2em .5em}body:not(.skin-minerva) .mw-parser-output .hatnote-text{padding-left:.5em}body.skin-minerva .mw-parser-output .hatnote-icon{padding-right:8px}body.skin-minerva .mw-parser-output .hatnote-icon img{height:auto;width:16px}body.skin--responsive .mw-parser-output .hatnote a.new{color:#d73333}body.skin--responsive .mw-parser-output .hatnote a.new:visited{color:#a55858}</style> <div class="hatnote noprint nota-disambigua"> <div class="hatnote-content"><span class="noviewer hatnote-icon" typeof="mw:File"><span><img src="//upload.wikimedia.org/wikipedia/commons/thumb/b/bc/Nota_disambigua.svg/18px-Nota_disambigua.svg.png" decoding="async" width="18" height="18" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/b/bc/Nota_disambigua.svg/27px-Nota_disambigua.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/b/bc/Nota_disambigua.svg/36px-Nota_disambigua.svg.png 2x" data-file-width="200" data-file-height="200" /></span></span> <span class="hatnote-text"><a href="/wiki/Aiuto:Disambiguazione" title="Aiuto:Disambiguazione">Disambiguazione</a> – Se stai cercando altri significati, vedi <b><a href="/wiki/Awk_(disambigua)" class="mw-disambig" title="Awk (disambigua)">Awk (disambigua)</a></b>.</span></div> </div> <table class="infobox sinottico" summary="Tabella sinottica che riassume i principali dati del soggetto"><tbody><tr class="sinottico_testata"><th colspan="2">AWK<br /><span class="sinottico_sottotitolo"><a href="/wiki/Linguaggio_di_programmazione" title="Linguaggio di programmazione">linguaggio di programmazione</a></span></th></tr><tr><td class="sinottico_testo_centrale" colspan="2"><figure class="mw-halign-center" typeof="mw:File/Frameless"><a href="/wiki/File:The-AWK-Programming-Language.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/d/d5/The-AWK-Programming-Language.svg/260px-The-AWK-Programming-Language.svg.png" decoding="async" width="260" height="130" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/d/d5/The-AWK-Programming-Language.svg/390px-The-AWK-Programming-Language.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/d/d5/The-AWK-Programming-Language.svg/520px-The-AWK-Programming-Language.svg.png 2x" data-file-width="638" data-file-height="319" /></a><figcaption></figcaption></figure></td></tr><tr><th>Autore</th><td><a href="/wiki/Alfred_Aho" title="Alfred Aho">Alfred Aho</a>, <a href="/wiki/Peter_J._Weinberger" class="mw-redirect" title="Peter J. Weinberger">Peter Weinberger</a>, e <a href="/wiki/Brian_Kernighan" title="Brian Kernighan">Brian Kernighan</a> </td></tr><tr><th>Data di origine</th><td>1977 </td></tr><tr><th>Ultima versione</th><td><a rel="nofollow" class="external text" href="http://pubs.opengroup.org/onlinepubs/9699919799/utilities/awk.html">IEEE Std 1003.1-2008</a> (POSIX) / 1985 </td></tr><tr><th>Utilizzo</th><td>può manipolare stringhe, interi e decimali, espressioni regolari </td></tr><tr><th><a href="/wiki/Paradigma_di_programmazione" title="Paradigma di programmazione">Paradigmi</a></th><td><a href="/wiki/Linguaggio_di_scripting" title="Linguaggio di scripting">scripting</a>, <a href="/wiki/Programmazione_procedurale" title="Programmazione procedurale">procedurale</a>, <a href="/w/index.php?title=Programmazione_orientata_ai_dati&amp;action=edit&amp;redlink=1" class="new" title="Programmazione orientata ai dati (la pagina non esiste)">data-driven</a><sup id="cite_ref-developerworks_1-0" class="reference"><a href="#cite_note-developerworks-1"><span class="cite-bracket">&#91;</span>1<span class="cite-bracket">&#93;</span></a></sup> </td></tr><tr><th><a href="/wiki/Sistema_dei_tipi" title="Sistema dei tipi">Tipizzazione</a></th><td>Debole </td></tr><tr><th>Influenzato da</th><td><a href="/wiki/C_(linguaggio)" class="mw-redirect" title="C (linguaggio)">C</a>, <a href="/wiki/SNOBOL" title="SNOBOL">SNOBOL</a> 4, <a href="/wiki/Bourne_shell" title="Bourne shell">Bourne shell</a> </td></tr><tr><th>Ha influenzato</th><td><a href="/wiki/Tcl" title="Tcl">Tcl</a>, <a href="/wiki/AMPL" title="AMPL">AMPL</a>, <a href="/wiki/Perl" title="Perl">Perl</a>, <a href="/wiki/Korn_shell" title="Korn shell">Korn shell</a> (<i>ksh93</i>, <i>dtksh</i>, <i>tksh</i>), <a href="/wiki/Lua" title="Lua">Lua</a> </td></tr><tr class="sinottico_divisione"><th colspan="2"><a href="/wiki/Implementazione_di_riferimento" title="Implementazione di riferimento">Implementazione di riferimento</a></th></tr><tr><th>Implementazione</th><td>awk, GNU Awk, mawk, nawk, MKS AWK, Thompson AWK (compilatore), Awka (compilatore) </td></tr><tr><th><a href="/wiki/Sistema_operativo" title="Sistema operativo">Sistema operativo</a></th><td><a href="/wiki/Multipiattaforma" title="Multipiattaforma">Multipiattaforma</a> </td></tr><tr><td class="sinottico_piede2 noprint nomobile metadata" colspan="2"><a href="https://www.wikidata.org/wiki/Q213970" class="extiw" title="d:Q213970"><span title="Modifica i dati della voce Awk su Wikidata">Modifica dati su Wikidata</span></a><b>&#160;·</b> <a href="/wiki/Template:Linguaggio_di_programmazione/man" title="Template:Linguaggio di programmazione/man"><span title="Manuale del template Linguaggio di programmazione">Manuale</span></a></td></tr></tbody></table> <p><b>AWK</b> (dalle iniziali dei cognomi dei suoi autori, <a href="/wiki/Alfred_Aho" title="Alfred Aho">Alfred Aho</a>, <a href="/wiki/Peter_Weinberger" title="Peter Weinberger">Peter Weinberger</a> e <a href="/wiki/Brian_Kernighan" title="Brian Kernighan">Brian Kernighan</a>) è un <a href="/wiki/Linguaggio_di_programmazione" title="Linguaggio di programmazione">linguaggio di programmazione</a> <a href="/wiki/Linguaggio_interpretato" class="mw-redirect" title="Linguaggio interpretato">interpretato</a> orientato alla manipolazione di <a href="/wiki/Dato" title="Dato">dati</a> di tipo <a href="/wiki/Testo" title="Testo">testuale</a>, sia in forma di <a href="/wiki/File" title="File">file</a> che di flusso di dati provenienti dallo <i><a href="/wiki/Standard_input" class="mw-redirect" title="Standard input">standard input</a></i>. </p> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="Tipi_di_variabile">Tipi di variabile</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Awk&amp;veaction=edit&amp;section=1" title="Modifica la sezione Tipi di variabile" class="mw-editsection-visualeditor"><span>modifica</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Awk&amp;action=edit&amp;section=1" title="Edit section&#039;s source code: Tipi di variabile"><span>modifica wikitesto</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>AWK è un linguaggio debolmente <a href="/wiki/Tipo_(informatica)" class="mw-redirect" title="Tipo (informatica)">tipizzato</a>, e qualunque variabile può essere considerata alla stregua di una <a href="/wiki/Stringa_(informatica)" title="Stringa (informatica)">stringa</a> (può essere <a href="/wiki/Concatenamento" title="Concatenamento">concatenata</a>, è possibile contarne il numero di caratteri, eccetera), anche se le variabili numeriche vengono <a href="/wiki/Conversione_di_tipo" title="Conversione di tipo">convertite</a> a numeri interi o a <a href="/wiki/Numero_in_virgola_mobile" title="Numero in virgola mobile">virgola mobile</a> quando necessario, ad esempio nelle operazioni aritmetiche. È assente il tipo <a href="/wiki/Variabile_booleana" class="mw-redirect" title="Variabile booleana">booleano</a> (ovvero variabili dal valore <code>true</code> o <code>false</code>), ma è possibile usare qualunque variabile come valore booleano: il valore <code>0</code>, la stringa vuota (<code>""</code>) o una variabile non inizializzata sono considerati <code>false</code>, mentre qualunque altro valore è <code>true</code>. </p><p>Oltre alle variabili scalari, AWK supporta anche gli <a href="/wiki/Array_associativo" title="Array associativo">array associativi</a>, cioè <i>array</i> indicizzati tramite stringhe chiave. Poiché in AWK qualunque scalare può essere considerato una stringa, è anche possibile definire array le cui chiavi sono numeri interi sequenziali, ma tipicamente, a differenza di molti altri linguaggi di programmazione, questo non porta alcun vantaggio in termini di prestazioni di accesso, perché AWK non fa distinzione tra array sequenziali e array associativi. </p><p>Ad esempio, è possibile definire i due array: </p> <div class="mw-highlight mw-highlight-lang-awk mw-content-ltr" dir="ltr"><pre><span></span><span class="c1"># array &quot;sequenziale&quot;</span> <span class="nx">arr1</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">=</span> <span class="s2">&quot;a&quot;</span> <span class="nx">arr1</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">=</span> <span class="s2">&quot;b&quot;</span> <span class="nx">arr1</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span> <span class="o">=</span> <span class="s2">&quot;c&quot;</span> <span class="c1"># array che usa stringhe come chiavi</span> <span class="nx">arr2</span><span class="p">[</span><span class="s2">&quot;foo&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="mi">1</span> <span class="nx">arr2</span><span class="p">[</span><span class="s2">&quot;bar&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="mi">2</span> </pre></div> <p>L'accesso agli array avviene solitamente tramite la parola chiave <code>in</code>, che cicla sulle chiavi dell'array specificato, con ordine indefinito: </p> <div class="mw-highlight mw-highlight-lang-awk mw-content-ltr" dir="ltr"><pre><span></span><span class="k">for</span> <span class="p">(</span><span class="nx">i</span> <span class="o">in</span> <span class="nx">arr1</span><span class="p">)</span> <span class="p">{</span> <span class="kr">print</span> <span class="nx">i</span> <span class="c1"># stampa &quot;1&quot;, &quot;2&quot;, ... in maniera NON sequenziale</span> <span class="p">}</span> <span class="k">for</span> <span class="p">(</span><span class="nx">i</span> <span class="o">in</span> <span class="nx">arr2</span><span class="p">)</span> <span class="p">{</span> <span class="kr">print</span> <span class="nx">i</span> <span class="c1"># stampa &quot;foo&quot;, &quot;bar&quot; (in maniera sempre non sequenziale)</span> <span class="p">}</span> </pre></div> <p>Nel caso di un array sequenziale è possibile usare la sintassi in stile <a href="/wiki/C_(linguaggio_di_programmazione)" title="C (linguaggio di programmazione)">C</a> per ottenere l'accesso sequenziale ai valori: </p> <div class="mw-highlight mw-highlight-lang-awk mw-content-ltr" dir="ltr"><pre><span></span><span class="k">for</span> <span class="p">(</span><span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="kr">length</span><span class="p">(</span><span class="nx">arr1</span><span class="p">);</span> <span class="o">++</span><span class="nx">i</span><span class="p">)</span> <span class="p">{</span> <span class="kr">print</span> <span class="nx">arr1</span><span class="p">[</span><span class="nx">i</span><span class="p">]</span> <span class="p">}</span> </pre></div><p>Infine, AWK supporta le <a href="/wiki/Espressione_regolare" title="Espressione regolare">espressioni regolari</a>. Un'espressione regolare è definita tra due barre, e viene usato l'operatore tilde per verificare se una variabile soddisfa una data espressione regolare: </p><div class="mw-highlight mw-highlight-lang-awk mw-content-ltr" dir="ltr"><pre><span></span><span class="c1"># testa se la variabile &quot;foo&quot; inizia con una cifra:</span> <span class="k">if</span> <span class="p">(</span><span class="nx">foo</span> <span class="o">~</span> <span class="sr">/^[0-9]/</span><span class="p">)</span> <span class="c1"># ...</span> </pre></div> <div class="mw-heading mw-heading2"><h2 id="Struttura_di_un_programma">Struttura di un programma</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Awk&amp;veaction=edit&amp;section=2" title="Modifica la sezione Struttura di un programma" class="mw-editsection-visualeditor"><span>modifica</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Awk&amp;action=edit&amp;section=2" title="Edit section&#039;s source code: Struttura di un programma"><span>modifica wikitesto</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Un programma in AWK è strutturato secondo una sequenza di direttive del tipo: </p> <pre>condizioni { azioni }</pre> <p>Se allo script viene fornito uno o più file, oppure in generale uno stream di dati (ad esempio attraverso lo <a href="/wiki/Standard_input" class="mw-redirect" title="Standard input">standard input</a>), questo stream verrà letto riga per riga da AWK; per ogni riga, le istruzioni contenute nello script vengono eseguite sequenzialmente. Per ogni istruzione, se la relativa condizione è verificata per la riga corrente, vengono eseguite le azioni corrispondenti a tale condizione. </p><p>Ad esempio, se a un programma AWK siffatto: </p> <div class="mw-highlight mw-highlight-lang-awk mw-content-ltr" dir="ltr"><pre><span></span><span class="c1"># stampa a schermo solamente le righe che consistono solo di lettere minuscole.</span> <span class="sr">/^[a-z]+$/</span> <span class="p">{</span> <span class="kr">print</span> <span class="o">$</span><span class="mi">0</span> <span class="p">}</span> </pre></div> <p>viene fornito l'input: </p> <pre>123 pippo pluto2 </pre> <p>verrà eseguita l'azione <code>print $0</code> (che stampa l'intera riga a schermo) esclusivamente per la seconda riga, mentre le altre due verranno ignorate. </p><p>Se viene specificata una condizione senza una relativa azione, l'azione predefinita è proprio "stampa l'intera riga", per cui nell'esempio di sopra il seguente codice sarebbe equivalente: </p> <div class="mw-highlight mw-highlight-lang-awk mw-content-ltr" dir="ltr"><pre><span></span><span class="sr">/^[a-z]+$/</span> </pre></div> <p>Se al contrario viene specificata un'azione senza una relativa condizione, quell'azione verrà eseguita per tutte le righe in input. </p> <div class="mw-heading mw-heading3"><h3 id="Condizioni_speciali">Condizioni speciali</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Awk&amp;veaction=edit&amp;section=3" title="Modifica la sezione Condizioni speciali" class="mw-editsection-visualeditor"><span>modifica</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Awk&amp;action=edit&amp;section=3" title="Edit section&#039;s source code: Condizioni speciali"><span>modifica wikitesto</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Esistono due condizioni speciali: BEGIN e END. Un'azione con condizione BEGIN viene eseguita sempre <i>prima</i> che un qualunque input venga processato, mentre una con condizione END viene sempre eseguita <i>dopo</i> che tutto l'input è stato processato. </p> <div class="mw-heading mw-heading2"><h2 id="Utilizzi">Utilizzi</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Awk&amp;veaction=edit&amp;section=4" title="Modifica la sezione Utilizzi" class="mw-editsection-visualeditor"><span>modifica</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Awk&amp;action=edit&amp;section=4" title="Edit section&#039;s source code: Utilizzi"><span>modifica wikitesto</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>AWK può essere usato come <a href="/wiki/Filtro_(Unix)" title="Filtro (Unix)">filtro</a>, è stato uno dei primi strumenti a fare la sua comparsa dalla versione 7 di <a href="/wiki/Unix" title="Unix">Unix</a> ed ottenne la giusta fama di essere un modo per aggiungere capacità computazionali ad una <i><a href="/wiki/Pipeline_(Unix)" class="mw-redirect" title="Pipeline (Unix)">pipeline Unix</a></i>. L'AWK è ormai presente fra le applicazioni <i>standard</i> di ogni versione recente di sistema operativo Unix disponibile oggi. Implementazioni di AWK esistono comunque per quasi tutti gli altri sistemi operativi. </p><p>Solitamente AWK è un <a href="/wiki/Linguaggio_interpretato" class="mw-redirect" title="Linguaggio interpretato">linguaggio interpretato</a>, cioè esiste un <i>file</i> eseguibile chiamato awk che legge o da riga di comando o da un file il programma vero e proprio scritto in linguaggio awk e lo applica ad uno o più <i>file</i> di ingresso per produrre un risultato. </p> <div class="mw-heading mw-heading2"><h2 id="Esempi">Esempi</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Awk&amp;veaction=edit&amp;section=5" title="Modifica la sezione Esempi" class="mw-editsection-visualeditor"><span>modifica</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Awk&amp;action=edit&amp;section=5" title="Edit section&#039;s source code: Esempi"><span>modifica wikitesto</span></a><span class="mw-editsection-bracket">]</span></span></div> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:Awk-example-usage-gimp.gif" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/2/2d/Awk-example-usage-gimp.gif/220px-Awk-example-usage-gimp.gif" decoding="async" width="220" height="129" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/2/2d/Awk-example-usage-gimp.gif/330px-Awk-example-usage-gimp.gif 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/2/2d/Awk-example-usage-gimp.gif/440px-Awk-example-usage-gimp.gif 2x" data-file-width="1040" data-file-height="608" /></a><figcaption>Esempio d'uso di <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr">awk</code></figcaption></figure> <div class="mw-heading mw-heading3"><h3 id="Hello,_world!"><span id="Hello.2C_world.21"></span>Hello, world!</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Awk&amp;veaction=edit&amp;section=6" title="Modifica la sezione Hello, world!" class="mw-editsection-visualeditor"><span>modifica</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Awk&amp;action=edit&amp;section=6" title="Edit section&#039;s source code: Hello, world!"><span>modifica wikitesto</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-highlight mw-highlight-lang-awk mw-content-ltr" dir="ltr"><pre><span></span><span class="c1"># esegue solamente l&#39;istruzione BEGIN ed esce senza leggere alcun input</span> <span class="nb">BEGIN</span> <span class="p">{</span> <span class="kr">print</span> <span class="s2">&quot;Hello, world!&quot;</span> <span class="p">}</span> </pre></div> <div class="mw-heading mw-heading3"><h3 id="Conteggio_delle_parole">Conteggio delle parole</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Awk&amp;veaction=edit&amp;section=7" title="Modifica la sezione Conteggio delle parole" class="mw-editsection-visualeditor"><span>modifica</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Awk&amp;action=edit&amp;section=7" title="Edit section&#039;s source code: Conteggio delle parole"><span>modifica wikitesto</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Conta le parole in input e stampa il numero di righe, parole e caratteri (analogamente al comando <a href="/wiki/Wc_(Unix)" title="Wc (Unix)">wc</a>): </p> <div class="mw-highlight mw-highlight-lang-awk mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{</span> <span class="nx">words</span> <span class="o">+=</span> <span class="nb">NF</span> <span class="c1"># NF è il numero di campi (fields) della riga, ovvero il numero di parole</span> <span class="nx">chars</span> <span class="o">+=</span> <span class="kr">length</span> <span class="o">+</span> <span class="mi">1</span> <span class="c1"># aggiunge uno alla lunghezza della riga per tenere conto del carattere newline finale</span> <span class="p">}</span> <span class="nb">END</span> <span class="p">{</span> <span class="kr">print</span> <span class="nb">NR</span><span class="p">,</span> <span class="nx">words</span><span class="p">,</span> <span class="nx">chars</span> <span class="p">}</span> <span class="c1"># NR è il numero di righe dell&#39;input</span> </pre></div> <div class="mw-heading mw-heading2"><h2 id="Note">Note</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Awk&amp;veaction=edit&amp;section=8" title="Modifica la sezione Note" class="mw-editsection-visualeditor"><span>modifica</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Awk&amp;action=edit&amp;section=8" title="Edit section&#039;s source code: Note"><span>modifica wikitesto</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-references-wrap"><ol class="references"> <li id="cite_note-developerworks-1"><a href="#cite_ref-developerworks_1-0"><b>^</b></a> <span class="reference-text"><cite class="citation web" style="font-style:normal"> Michael Stutz, <a rel="nofollow" class="external text" href="https://web.archive.org/web/20110520232835/http://www.ibm.com/developerworks/aix/tutorials/au-gawk/section2.html"><span style="font-style:italic;">Get started with GAWK: AWK language fundamentals</span></a>, su <span style="font-style:italic;">developerWorks</span>, <a href="/wiki/IBM" title="IBM">IBM</a>, 19 settembre 2006. <small>URL consultato il 23 ottobre 2010</small> <small>(archiviato dall'<abbr title="https&#58;//www.ibm.com/developerworks/aix/tutorials/au-gawk/section2.html">url originale</abbr> il 20 maggio 2011)</small>.<br /><div class="cite-q">«[AWK is] often called a data-driven language -- the program statements describe the input data to match and process rather than a sequence of program steps»</div></cite></span> </li> </ol></div> <div class="mw-heading mw-heading2"><h2 id="Altri_progetti">Altri progetti</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Awk&amp;veaction=edit&amp;section=9" title="Modifica la sezione Altri progetti" class="mw-editsection-visualeditor"><span>modifica</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Awk&amp;action=edit&amp;section=9" title="Edit section&#039;s source code: Altri progetti"><span>modifica wikitesto</span></a><span class="mw-editsection-bracket">]</span></span></div> <div id="interProject" class="toccolours" style="display: none; clear: both; margin-top: 2em"><p id="sisterProjects" style="background-color: #efefef; color: black; font-weight: bold; margin: 0"><span>Altri progetti</span></p><ul title="Collegamenti verso gli altri progetti Wikimedia"> <li class="" title=""><span class="plainlinks" title="commons:Category:AWK"><a class="external text" href="https://commons.wikimedia.org/wiki/Category:AWK?uselang=it">Wikimedia Commons</a></span></li></ul></div> <ul><li><span typeof="mw:File"><a href="https://commons.wikimedia.org/wiki/?uselang=it" title="Collabora a Wikimedia Commons"><img alt="Collabora a Wikimedia Commons" src="//upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Commons-logo.svg/18px-Commons-logo.svg.png" decoding="async" width="18" height="24" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Commons-logo.svg/27px-Commons-logo.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Commons-logo.svg/36px-Commons-logo.svg.png 2x" data-file-width="1024" data-file-height="1376" /></a></span> <span class="plainlinks"><a class="external text" href="https://commons.wikimedia.org/wiki/?uselang=it">Wikimedia Commons</a></span> contiene immagini o altri file su <b><span class="plainlinks"><a class="external text" href="https://commons.wikimedia.org/wiki/Category:AWK?uselang=it">Awk</a></span></b></li></ul> <div class="mw-heading mw-heading2"><h2 id="Collegamenti_esterni">Collegamenti esterni</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Awk&amp;veaction=edit&amp;section=10" title="Modifica la sezione Collegamenti esterni" class="mw-editsection-visualeditor"><span>modifica</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Awk&amp;action=edit&amp;section=10" title="Edit section&#039;s source code: Collegamenti esterni"><span>modifica wikitesto</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li class="mw-empty-elt"></li> <li><cite id="CITEREFOpen_Library" class="citation web" style="font-style:normal">(<span style="font-weight:bolder; font-size:80%"><abbr title="inglese">EN</abbr></span>) <a rel="nofollow" class="external text" href="https://openlibrary.org/subjects/awk"><span style="font-style:italic;">Opere riguardanti Awk</span></a> / <a rel="nofollow" class="external text" href="https://openlibrary.org/subjects/awk_(computer_program_language)"><span style="font-style:italic;">AWK (Computer program language)</span></a>, su <span style="font-style:italic;"><a href="/wiki/Open_Library" class="mw-redirect" title="Open Library">Open Library</a></span>, <a href="/wiki/Internet_Archive" title="Internet Archive">Internet Archive</a>.</cite> <span class="mw-valign-text-top noprint" typeof="mw:File/Frameless"><a href="https://www.wikidata.org/wiki/Q213970#P3847" title="Modifica su Wikidata"><img alt="Modifica su Wikidata" src="//upload.wikimedia.org/wikipedia/commons/thumb/7/73/Blue_pencil.svg/10px-Blue_pencil.svg.png" decoding="async" width="10" height="10" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/7/73/Blue_pencil.svg/15px-Blue_pencil.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/7/73/Blue_pencil.svg/20px-Blue_pencil.svg.png 2x" data-file-width="600" data-file-height="600" /></a></span></li> <li><cite class="citation web" style="font-style:normal"> <a rel="nofollow" class="external text" href="https://github.com/onetrueawk/awk"><span style="font-style:italic;">Repository sorgenti di Awk</span></a>, su <span style="font-style:italic;">github.com</span>.</cite> <span class="mw-valign-text-top noprint" typeof="mw:File/Frameless"><a href="https://www.wikidata.org/wiki/Q213970#P1324" title="Modifica su Wikidata"><img alt="Modifica su Wikidata" src="//upload.wikimedia.org/wikipedia/commons/thumb/7/73/Blue_pencil.svg/10px-Blue_pencil.svg.png" decoding="async" width="10" height="10" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/7/73/Blue_pencil.svg/15px-Blue_pencil.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/7/73/Blue_pencil.svg/20px-Blue_pencil.svg.png 2x" data-file-width="600" data-file-height="600" /></a></span></li> <li>(<span style="font-weight:bolder; font-size:80%"><abbr title="inglese">EN</abbr></span>) <a rel="nofollow" class="external text" href="https://web.archive.org/web/20060420093134/http://cm.bell-labs.com/cm/cs/awkbook/"><i>The AWK Programming Language</i></a> - libro consultabile on-line. È possibile scaricare l'implementazione originale dell'AWK</li> <li>(<span style="font-weight:bolder; font-size:80%"><abbr title="inglese">EN</abbr></span>) <a rel="nofollow" class="external text" href="https://www.gnu.org/software/gawk/gawk.html">GAWK (GNU Awk)</a> - sito web</li> <li>(<span style="font-weight:bolder; font-size:80%"><abbr title="inglese">EN</abbr></span>) <a rel="nofollow" class="external text" href="https://www.gnu.org/software/gawk/manual/gawk.html"><i>The GNU Awk User's Guide</i></a> - manuale on line di grosse dimensioni</li> <li>(<span style="font-weight:bolder; font-size:80%"><abbr title="italiano">IT</abbr></span>) <a rel="nofollow" class="external text" href="http://www.pluto.it/ildp/traduzioni/gawk-it.html"><i>Gawk: Programmare efficacemente in AWK</i></a> - Guida Utente di GNU Awk tradotta in italiano</li> <li><cite class="citation web" style="font-style:normal">(<span style="font-weight:bolder; font-size:80%"><abbr title="inglese">EN</abbr></span>) <a rel="nofollow" class="external text" href="http://freecode.com/projects/mawk/"><span style="font-style:italic;"><span></span><i>mawk download site</i><span></span></span></a>, su <span style="font-style:italic;">freecode.com</span>.</cite></li> <li>(<span style="font-weight:bolder; font-size:80%"><abbr title="inglese">EN</abbr></span>) <a rel="nofollow" class="external text" href="https://web.archive.org/web/20151205164725/http://www.staff.science.uu.nl/~oostr102/docs/nawk/nawk_toc.html"><i>The AWK Manual</i></a> - Manuale AWK</li></ul> <style data-mw-deduplicate="TemplateStyles:r141815314">.mw-parser-output .navbox{border:1px solid #aaa;clear:both;margin:auto;padding:2px;width:100%}.mw-parser-output .navbox th{padding-left:1em;padding-right:1em;text-align:center}.mw-parser-output .navbox>tbody>tr:first-child>th{background:#ccf;font-size:90%;width:100%;color:var(--color-base,black)}.mw-parser-output .navbox_navbar{float:left;margin:0;padding:0 10px 0 0;text-align:left;width:6em}.mw-parser-output .navbox_title{font-size:110%}.mw-parser-output .navbox_abovebelow{background:#ddf;font-size:90%;font-weight:normal}.mw-parser-output .navbox_group{background:#ddf;font-size:90%;padding:0 10px;white-space:nowrap}.mw-parser-output .navbox_list{font-size:90%;width:100%}.mw-parser-output .navbox_list a{white-space:nowrap}html:not(.vector-feature-night-mode-enabled) .mw-parser-output .navbox_odd{background:#fdfdfd;color:var(--color-base,black)}html:not(.vector-feature-night-mode-enabled) .mw-parser-output .navbox_even{background:#f7f7f7;color:var(--color-base,black)}.mw-parser-output .navbox a.mw-selflink{color:var(--color-base,black)}.mw-parser-output .navbox_center{text-align:center}.mw-parser-output .navbox .navbox_image{padding-left:7px;vertical-align:middle;width:0}.mw-parser-output .navbox+.navbox{margin-top:-1px}.mw-parser-output .navbox .mw-collapsible-toggle{font-weight:normal;text-align:right;width:7em}body.skin--responsive .mw-parser-output .navbox_image img{max-width:none!important}.mw-parser-output .subnavbox{margin:-3px;width:100%}.mw-parser-output .subnavbox_group{background:#e6e6ff;padding:0 10px}@media screen{html.skin-theme-clientpref-night .mw-parser-output .navbox>tbody>tr:first-child>th{background:var(--background-color-interactive)!important}html.skin-theme-clientpref-night .mw-parser-output .navbox th{color:var(--color-base)!important}html.skin-theme-clientpref-night .mw-parser-output .navbox_abovebelow,html.skin-theme-clientpref-night .mw-parser-output .navbox_group{background:var(--background-color-interactive-subtle)!important}html.skin-theme-clientpref-night .mw-parser-output .subnavbox_group{background:var(--background-color-neutral-subtle)!important}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .navbox>tbody>tr:first-child>th{background:var(--background-color-interactive)!important}html.skin-theme-clientpref-os .mw-parser-output .navbox th{color:var(--color-base)!important}html.skin-theme-clientpref-os .mw-parser-output .navbox_abovebelow,html.skin-theme-clientpref-os .mw-parser-output .navbox_group{background:var(--background-color-interactive-subtle)!important}html.skin-theme-clientpref-os .mw-parser-output .subnavbox_group{background:var(--background-color-neutral-subtle)!important}}</style><table class="navbox mw-collapsible mw-collapsed noprint metadata" id="navbox-Principali_linguaggi_di_programmazione"><tbody><tr><th colspan="2"><div class="navbox_navbar"><div class="noprint plainlinks" style="background-color:transparent; padding:0; font-size:xx-small; color:var(--color-base, #000000); white-space:nowrap;"><a href="/wiki/Template:Principali_linguaggi_di_programmazione" title="Template:Principali linguaggi di programmazione"><span title="Vai alla pagina del template">V</span></a>&#160;·&#160;<a href="/wiki/Discussioni_template:Principali_linguaggi_di_programmazione" title="Discussioni template:Principali linguaggi di programmazione"><span title="Discuti del template">D</span></a>&#160;·&#160;<a class="external text" href="https://it.wikipedia.org/w/index.php?title=Template:Principali_linguaggi_di_programmazione&amp;action=edit"><span title="Modifica il template. Usa l&#39;anteprima prima di salvare">M</span></a></div></div><span class="navbox_title">Principali <a href="/wiki/Linguaggio_di_programmazione" title="Linguaggio di programmazione">linguaggi di programmazione</a> <small>(<a href="/wiki/Lista_dei_linguaggi_di_programmazione" title="Lista dei linguaggi di programmazione">tutti</a>)</small></span></th></tr><tr><td colspan="2" class="navbox_list navbox_center navbox_odd"><a href="/wiki/ABAP" title="ABAP">ABAP</a><b>&#160;·</b> <a href="/wiki/Ada_(linguaggio_di_programmazione)" title="Ada (linguaggio di programmazione)">Ada</a><b>&#160;·</b> <a href="/wiki/ALGOL" title="ALGOL">ALGOL</a><b>&#160;·</b> <a href="/wiki/APL" title="APL">APL</a><b>&#160;·</b> <a href="/wiki/Linguaggio_assembly" title="Linguaggio assembly">Assembly</a><b>&#160;·</b> <a class="mw-selflink selflink">Awk</a><b>&#160;·</b> <a href="/wiki/BASIC" title="BASIC">BASIC</a><b>&#160;·</b> <a href="/wiki/C_(linguaggio_di_programmazione)" title="C (linguaggio di programmazione)">C</a><b>&#160;·</b> <a href="/wiki/C%2B%2B" title="C++">C++</a><b>&#160;·</b> <a href="/wiki/C_sharp" title="C sharp">C#</a><b>&#160;·</b> <a href="/wiki/COBOL" title="COBOL">COBOL</a><b>&#160;·</b> <a href="/wiki/Embarcadero_Delphi" title="Embarcadero Delphi">Delphi</a><b>&#160;·</b> <a href="/wiki/Eiffel_(linguaggio_di_programmazione)" title="Eiffel (linguaggio di programmazione)">Eiffel</a><b>&#160;·</b> <a href="/wiki/Fortran" title="Fortran">Fortran</a><b>&#160;·</b> <a href="/wiki/F_Sharp" title="F Sharp">F#</a><b>&#160;·</b> <a href="/wiki/Haskell_(linguaggio_di_programmazione)" title="Haskell (linguaggio di programmazione)">Haskell</a><b>&#160;·</b> <a href="/wiki/Interactive_Data_Language" title="Interactive Data Language">IDL</a><b>&#160;·</b> <a href="/wiki/Java_(linguaggio_di_programmazione)" title="Java (linguaggio di programmazione)">Java</a><b>&#160;·</b> <a href="/wiki/JavaScript" title="JavaScript">JavaScript</a><b>&#160;·</b> <a href="/wiki/J_sharp" title="J sharp">J#</a><b>&#160;·</b> <a href="/wiki/Lisp" title="Lisp">Lisp</a><b>&#160;·</b> <a href="/wiki/Logo_(informatica)" title="Logo (informatica)">LOGO</a><b>&#160;·</b> <a href="/wiki/Lua" title="Lua">Lua</a><b>&#160;·</b> <a href="/wiki/ML_(linguaggio_di_programmazione)" title="ML (linguaggio di programmazione)">ML</a><b>&#160;·</b> <a href="/wiki/Objective-C" title="Objective-C">Objective-C</a><b>&#160;·</b> <a href="/wiki/OCaml" title="OCaml">OCaml</a><b>&#160;·</b> <a href="/wiki/Pascal_(linguaggio_di_programmazione)" title="Pascal (linguaggio di programmazione)">Pascal</a><b>&#160;·</b> <a href="/wiki/Perl" title="Perl">Perl</a><b>&#160;·</b> <a href="/wiki/PHP" title="PHP">PHP</a><b>&#160;·</b> <a href="/wiki/PL/I" title="PL/I">PL/I</a><b>&#160;·</b> <a href="/wiki/PLaSM" title="PLaSM">PLaSM</a><b>&#160;·</b> <a href="/wiki/Prolog" title="Prolog">Prolog</a><b>&#160;·</b> <a href="/wiki/Python" title="Python">Python</a><b>&#160;·</b> <a href="/wiki/Ruby_(linguaggio_di_programmazione)" title="Ruby (linguaggio di programmazione)">Ruby</a><b>&#160;·</b> <a href="/wiki/Rust_(linguaggio_di_programmazione)" title="Rust (linguaggio di programmazione)">Rust</a><b>&#160;·</b> <a href="/wiki/SAS_(software)" title="SAS (software)">SAS</a><b>&#160;·</b> <a href="/wiki/Scheme" title="Scheme">Scheme</a><b>&#160;·</b> <a href="/wiki/Bourne_shell" title="Bourne shell">sh</a><b>&#160;·</b> <a href="/wiki/Simula" title="Simula">Simula</a><b>&#160;·</b> <a href="/wiki/Smalltalk" title="Smalltalk">Smalltalk</a><b>&#160;·</b> <a href="/wiki/Structured_Query_Language" title="Structured Query Language">SQL</a><b>&#160;·</b> <a href="/wiki/Swift_(linguaggio_di_programmazione)" title="Swift (linguaggio di programmazione)">Swift</a><b>&#160;·</b> <a href="/wiki/Visual_Basic" title="Visual Basic">Visual Basic</a></td></tr></tbody></table> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r141815314"><table class="navbox mw-collapsible mw-collapsed noprint metadata" id="navbox-Comandi_Unix"><tbody><tr><th colspan="3"><div class="navbox_navbar"><div class="noprint plainlinks" style="background-color:transparent; padding:0; font-size:xx-small; color:var(--color-base, #000000); white-space:nowrap;"><a href="/wiki/Template:Comandi_Unix" title="Template:Comandi Unix"><span title="Vai alla pagina del template">V</span></a>&#160;·&#160;<a href="/w/index.php?title=Discussioni_template:Comandi_Unix&amp;action=edit&amp;redlink=1" class="new" title="Discussioni template:Comandi Unix (la pagina non esiste)"><span title="Discuti del template">D</span></a>&#160;·&#160;<a class="external text" href="https://it.wikipedia.org/w/index.php?title=Template:Comandi_Unix&amp;action=edit"><span title="Modifica il template. Usa l&#39;anteprima prima di salvare">M</span></a></div></div><span class="navbox_title">Programmi <a href="/wiki/Unix" title="Unix">Unix</a>/<a href="/wiki/Unix-like" title="Unix-like">Unix-like</a> con <a href="/wiki/Interfaccia_a_riga_di_comando" title="Interfaccia a riga di comando">interfaccia a riga di comando</a> e comandi interni della <i><a href="/wiki/Shell_unix" class="mw-redirect" title="Shell unix">shell unix</a></i></span></th></tr><tr><th colspan="1" class="navbox_group">File system</th><td colspan="1" class="navbox_list navbox_odd"><a href="/wiki/Cat_(Unix)" title="Cat (Unix)">cat</a><b>&#160;·</b> <a href="/wiki/Cd_(Unix)" title="Cd (Unix)">cd</a><b>&#160;·</b> <a href="/wiki/Chattr" title="Chattr">chattr</a><b>&#160;·</b> <a href="/wiki/Chmod" title="Chmod">chmod</a><b>&#160;·</b> <a href="/wiki/Chown" title="Chown">chown</a><b>&#160;·</b> <a href="/wiki/Chgrp" title="Chgrp">chgrp</a><b>&#160;·</b> <a href="/wiki/Cksum" title="Cksum">cksum</a><b>&#160;·</b> <a href="/wiki/Cmp_(Unix)" title="Cmp (Unix)">cmp</a><b>&#160;·</b> <a href="/wiki/Cp_(Unix)" title="Cp (Unix)">cp</a><b>&#160;·</b> <a href="/wiki/Du_(Unix)" title="Du (Unix)">du</a><b>&#160;·</b> <a href="/wiki/Df_(Unix)" title="Df (Unix)">df</a><b>&#160;·</b> <a href="/wiki/Fdisk_(Unix)" title="Fdisk (Unix)">fdisk</a><b>&#160;·</b> <a href="/wiki/File_(Unix)" title="File (Unix)">file</a><b>&#160;·</b> <a href="/wiki/Fsck" title="Fsck">fsck</a><b>&#160;·</b> <a href="/wiki/Fuser_(Unix)" title="Fuser (Unix)">fuser</a><b>&#160;·</b> <a href="/wiki/Gzip" title="Gzip">gzip</a><b>&#160;·</b> <a href="/wiki/Ln_(Unix)" title="Ln (Unix)">ln</a><b>&#160;·</b> <a href="/wiki/Ls_(Unix)" title="Ls (Unix)">ls</a><b>&#160;·</b> <a href="/wiki/Lsattr" title="Lsattr">lsattr</a><b>&#160;·</b> <a href="/wiki/Lsof" title="Lsof">lsof</a><b>&#160;·</b> <a href="/wiki/Mkdir" title="Mkdir">mkdir</a><b>&#160;·</b> <a href="/wiki/Mknod" title="Mknod">mknod</a><b>&#160;·</b> <a href="/wiki/Mount" title="Mount">mount</a><b>&#160;·</b> <a href="/wiki/Mv_(Unix)" title="Mv (Unix)">mv</a><b>&#160;·</b> <a href="/wiki/Pwd_(Unix)" title="Pwd (Unix)">pwd</a><b>&#160;·</b> <a href="/wiki/Rm_(Unix)" title="Rm (Unix)">rm</a><b>&#160;·</b> <a href="/wiki/Rmdir" title="Rmdir">rmdir</a><b>&#160;·</b> <a href="/wiki/Split_(Unix)" title="Split (Unix)">split</a><b>&#160;·</b> <a href="/wiki/Tar_(software)" title="Tar (software)">tar</a><b>&#160;·</b> <a href="/wiki/Touch_(Unix)" title="Touch (Unix)">touch</a><b>&#160;·</b> <a href="/wiki/Umount" title="Umount">umount</a><b>&#160;·</b> <a href="/wiki/Umask" title="Umask">umask</a></td><td rowspan="9" class="navbox_image"><span class="mw-default-size" typeof="mw:File"><a href="/wiki/File:Gnome-utilities-terminal.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/d/da/Gnome-utilities-terminal.svg/48px-Gnome-utilities-terminal.svg.png" decoding="async" width="48" height="48" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/d/da/Gnome-utilities-terminal.svg/72px-Gnome-utilities-terminal.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/d/da/Gnome-utilities-terminal.svg/96px-Gnome-utilities-terminal.svg.png 2x" data-file-width="48" data-file-height="48" /></a></span></td></tr><tr><th colspan="1" class="navbox_group">Processi</th><td colspan="1" class="navbox_list navbox_even"><a href="/wiki/At_(Unix)" title="At (Unix)">at</a><b>&#160;·</b> <a href="/wiki/Chroot" title="Chroot">chroot</a><b>&#160;·</b> <a href="/wiki/Crontab" title="Crontab">crontab</a><b>&#160;·</b> <a href="/wiki/Exit_(Unix)" title="Exit (Unix)">exit</a><b>&#160;·</b> <a href="/wiki/Kill_(Unix)" title="Kill (Unix)">kill</a><b>&#160;·</b> <a href="/wiki/Killall" title="Killall">killall</a><b>&#160;·</b> <a href="/wiki/Nice_(Unix)" title="Nice (Unix)">nice</a><b>&#160;·</b> <a href="/wiki/Nohup" title="Nohup">nohup</a><b>&#160;·</b> <a href="/wiki/Pgrep" title="Pgrep">pgrep</a><b>&#160;·</b> <a href="/wiki/Pidof" title="Pidof">pidof</a><b>&#160;·</b> <a href="/wiki/Pkill" title="Pkill">pkill</a><b>&#160;·</b> <a href="/wiki/Ps_(Unix)" title="Ps (Unix)">ps</a><b>&#160;·</b> <a href="/w/index.php?title=Pstree&amp;action=edit&amp;redlink=1" class="new" title="Pstree (la pagina non esiste)">pstree</a><b>&#160;·</b> <a href="/wiki/Sleep_(Unix)" title="Sleep (Unix)">sleep</a><b>&#160;·</b> <a href="/wiki/Time_(Unix)" title="Time (Unix)">time</a><b>&#160;·</b> <a href="/wiki/Top_(Unix)" title="Top (Unix)">top</a><b>&#160;·</b> <a href="/w/index.php?title=Wait_(Unix)&amp;action=edit&amp;redlink=1" class="new" title="Wait (Unix) (la pagina non esiste)">wait</a></td></tr><tr><th colspan="1" class="navbox_group">Ambiente utente</th><td colspan="1" class="navbox_list navbox_odd"><a href="/wiki/Alias_(Unix)" title="Alias (Unix)">alias</a><b>&#160;·</b> <a href="/wiki/Env_(Unix)" title="Env (Unix)">env</a><b>&#160;·</b> <a href="/wiki/Export_(Unix)" title="Export (Unix)">export</a><b>&#160;·</b> <a href="/wiki/Finger_(Unix)" title="Finger (Unix)">finger</a><b>&#160;·</b> <a href="/wiki/Id_(Unix)" title="Id (Unix)">id</a><b>&#160;·</b> <a href="/wiki/Logname" title="Logname">logname</a><b>&#160;·</b> <a href="/w/index.php?title=Mesg&amp;action=edit&amp;redlink=1" class="new" title="Mesg (la pagina non esiste)">mesg</a><b>&#160;·</b> <a href="/w/index.php?title=Newgrp&amp;action=edit&amp;redlink=1" class="new" title="Newgrp (la pagina non esiste)">newgrp</a><b>&#160;·</b> <a href="/wiki/Passwd" title="Passwd">passwd</a><b>&#160;·</b> <a href="/wiki/Su_(Unix)" title="Su (Unix)">su</a><b>&#160;·</b> <a href="/wiki/Sudo" title="Sudo">sudo</a><b>&#160;·</b> <a href="/wiki/Uname" title="Uname">uname</a><b>&#160;·</b> <a href="/wiki/Uptime_(Unix)" title="Uptime (Unix)">uptime</a><b>&#160;·</b> <a href="/w/index.php?title=W_(Unix)&amp;action=edit&amp;redlink=1" class="new" title="W (Unix) (la pagina non esiste)">w</a><b>&#160;·</b> <a href="/w/index.php?title=Wall_(Unix)&amp;action=edit&amp;redlink=1" class="new" title="Wall (Unix) (la pagina non esiste)">wall</a><b>&#160;·</b> <a href="/wiki/Who_(Unix)" title="Who (Unix)">who</a><b>&#160;·</b> <a href="/wiki/Whoami" title="Whoami">whoami</a><b>&#160;·</b> <a href="/w/index.php?title=Write_(Unix)&amp;action=edit&amp;redlink=1" class="new" title="Write (Unix) (la pagina non esiste)">write</a></td></tr><tr><th colspan="1" class="navbox_group">Elaborazione testo</th><td colspan="1" class="navbox_list navbox_even"><a class="mw-selflink selflink">awk</a><b>&#160;·</b> <a href="/wiki/Comm" title="Comm">comm</a><b>&#160;·</b> <a href="/wiki/Cut_(Unix)" title="Cut (Unix)">cut</a><b>&#160;·</b> <a href="/wiki/Diff" title="Diff">diff</a><b>&#160;·</b> <a href="/wiki/Ed_(Unix)" title="Ed (Unix)">ed</a><b>&#160;·</b> <a href="/w/index.php?title=Ex_(Unix)&amp;action=edit&amp;redlink=1" class="new" title="Ex (Unix) (la pagina non esiste)">ex</a><b>&#160;·</b> <a href="/wiki/Fmt" title="Fmt">fmt</a><b>&#160;·</b> <a href="/wiki/Head_(informatica)" class="mw-redirect" title="Head (informatica)">head</a><b>&#160;·</b> <a href="/w/index.php?title=Iconv&amp;action=edit&amp;redlink=1" class="new" title="Iconv (la pagina non esiste)">iconv</a><b>&#160;·</b> <a href="/wiki/Join_(Unix)" title="Join (Unix)">join</a><b>&#160;·</b> <a href="/wiki/Less_(Unix)" title="Less (Unix)">less</a><b>&#160;·</b> <a href="/wiki/More_(Unix)" title="More (Unix)">more</a><b>&#160;·</b> <a href="/wiki/Paste_(informatica)" class="mw-redirect" title="Paste (informatica)">paste</a><b>&#160;·</b> <a href="/wiki/Sed_(Unix)" title="Sed (Unix)">sed</a><b>&#160;·</b> <a href="/wiki/Sort_(Unix)" title="Sort (Unix)">sort</a><b>&#160;·</b> <a href="/wiki/Tail" title="Tail">tail</a><b>&#160;·</b> <a href="/wiki/Tr_(Unix)" title="Tr (Unix)">tr</a><b>&#160;·</b> <a href="/wiki/Uniq" title="Uniq">uniq</a><b>&#160;·</b> <a href="/wiki/Vi_(software)" title="Vi (software)">vi</a><b>&#160;·</b> <a href="/wiki/Wc_(Unix)" title="Wc (Unix)">wc</a><b>&#160;·</b> <a href="/wiki/Xargs" title="Xargs">xargs</a></td></tr><tr><th colspan="1" class="navbox_group">Script di shell</th><td colspan="1" class="navbox_list navbox_odd"><a href="/wiki/Basename" title="Basename">basename</a><b>&#160;·</b> <a href="/wiki/Dirname" title="Dirname">dirname</a><b>&#160;·</b> <a href="/wiki/Echo_(Unix)" title="Echo (Unix)">echo</a><b>&#160;·</b> <a href="/wiki/Expr" title="Expr">expr</a><b>&#160;·</b> <a href="/w/index.php?title=False_(Unix)&amp;action=edit&amp;redlink=1" class="new" title="False (Unix) (la pagina non esiste)">false</a><b>&#160;·</b> <a href="/wiki/Printf" title="Printf">printf</a><b>&#160;·</b> <a href="/w/index.php?title=Test_(Unix)&amp;action=edit&amp;redlink=1" class="new" title="Test (Unix) (la pagina non esiste)">test</a><b>&#160;·</b> <a href="/w/index.php?title=True_(Unix)&amp;action=edit&amp;redlink=1" class="new" title="True (Unix) (la pagina non esiste)">true</a><b>&#160;·</b> <a href="/w/index.php?title=Unset&amp;action=edit&amp;redlink=1" class="new" title="Unset (la pagina non esiste)">unset</a></td></tr><tr><th colspan="1" class="navbox_group">Rete</th><td colspan="1" class="navbox_list navbox_even"><a href="/wiki/Dig_(Unix)" title="Dig (Unix)">dig</a><b>&#160;·</b> <a href="/wiki/Nslookup" title="Nslookup">nslookup</a><b>&#160;·</b> <a href="/wiki/Ifconfig" title="Ifconfig">ifconfig</a><b>&#160;·</b> <a href="/wiki/Netstat" title="Netstat">netstat</a><b>&#160;·</b> <a href="/wiki/Ping" title="Ping">ping</a><b>&#160;·</b> <a href="/wiki/Rcp_(Unix)" title="Rcp (Unix)">rcp</a><b>&#160;·</b> <a href="/w/index.php?title=Rlogin&amp;action=edit&amp;redlink=1" class="new" title="Rlogin (la pagina non esiste)">rlogin</a><b>&#160;·</b> <a href="/wiki/Route_(informatica)" title="Route (informatica)">route</a><b>&#160;·</b> <a href="/wiki/Netcat" title="Netcat">netcat</a><b>&#160;·</b> <a href="/wiki/Traceroute" title="Traceroute">traceroute</a></td></tr><tr><th colspan="1" class="navbox_group">Ricerche</th><td colspan="1" class="navbox_list navbox_odd"><a href="/wiki/Find_(Unix)" title="Find (Unix)">find</a><b>&#160;·</b> <a href="/wiki/Grep" title="Grep">grep</a><b>&#160;·</b> <a href="/wiki/Strings_(Unix)" title="Strings (Unix)">strings</a></td></tr><tr><th colspan="1" class="navbox_group">Amministrazione</th><td colspan="1" class="navbox_list navbox_even"><a href="/wiki/Dmesg" title="Dmesg">dmesg</a><b>&#160;·</b> <a href="/w/index.php?title=Groupadd&amp;action=edit&amp;redlink=1" class="new" title="Groupadd (la pagina non esiste)">groupadd</a><b>&#160;·</b> <a href="/w/index.php?title=Groupdel&amp;action=edit&amp;redlink=1" class="new" title="Groupdel (la pagina non esiste)">groupdel</a><b>&#160;·</b> <a href="/w/index.php?title=Groupmod&amp;action=edit&amp;redlink=1" class="new" title="Groupmod (la pagina non esiste)">groupmod</a><b>&#160;·</b> <a href="/wiki/Mdadm" title="Mdadm">mdadm</a><b>&#160;·</b> <a href="/wiki/Arresto_(informatica)" title="Arresto (informatica)">shutdown</a><b>&#160;·</b> <a href="/wiki/Useradd" title="Useradd">useradd</a><b>&#160;·</b> <a href="/wiki/Userdel" title="Userdel">userdel</a><b>&#160;·</b> <a href="/wiki/Usermod" title="Usermod">usermod</a></td></tr><tr><th colspan="1" class="navbox_group">Altri</th><td colspan="1" class="navbox_list navbox_odd"><a href="/wiki/Banner_(Unix)" title="Banner (Unix)">banner</a><b>&#160;·</b> <a href="/wiki/BC_(linguaggio)" title="BC (linguaggio)">bc</a><b>&#160;·</b> <a href="/wiki/Cal_(Unix)" title="Cal (Unix)">cal</a><b>&#160;·</b> <a href="/wiki/Clear_(Unix)" title="Clear (Unix)">clear</a><b>&#160;·</b> <a href="/w/index.php?title=Date_(Unix)&amp;action=edit&amp;redlink=1" class="new" title="Date (Unix) (la pagina non esiste)">date</a><b>&#160;·</b> <a href="/wiki/Dd_(Unix)" title="Dd (Unix)">dd</a><b>&#160;·</b> <a href="/w/index.php?title=Lp_(Unix)&amp;action=edit&amp;redlink=1" class="new" title="Lp (Unix) (la pagina non esiste)">lp</a><b>&#160;·</b> <a href="/wiki/Man_(Unix)" title="Man (Unix)">man</a><b>&#160;·</b> <a href="/w/index.php?title=Size_(Unix)&amp;action=edit&amp;redlink=1" class="new" title="Size (Unix) (la pagina non esiste)">size</a><b>&#160;·</b> <a href="/wiki/Tee_(Unix)" title="Tee (Unix)">tee</a><b>&#160;·</b> <a href="/w/index.php?title=Tput&amp;action=edit&amp;redlink=1" class="new" title="Tput (la pagina non esiste)">tput</a><b>&#160;·</b> <a href="/wiki/Yes_(Unix)" title="Yes (Unix)">yes</a></td></tr></tbody></table> <style data-mw-deduplicate="TemplateStyles:r140554510">.mw-parser-output .CdA{border:1px solid #aaa;width:100%;margin:auto;font-size:90%;padding:2px}.mw-parser-output .CdA th{background-color:#f2f2f2;font-weight:bold;width:20%}@media screen{html.skin-theme-clientpref-night .mw-parser-output .CdA{border-color:#54595D}html.skin-theme-clientpref-night .mw-parser-output .CdA th{background-color:#202122}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .CdA{border-color:#54595D}html.skin-theme-clientpref-os .mw-parser-output .CdA th{background-color:#202122}}</style><table class="CdA"><tbody><tr><th><a href="/wiki/Aiuto:Controllo_di_autorit%C3%A0" title="Aiuto:Controllo di autorità">Controllo di autorità</a></th><td><a href="/wiki/Library_of_Congress_Control_Number" title="Library of Congress Control Number">LCCN</a> <span class="uid">(<span style="font-weight:bolder; font-size:80%"><abbr title="inglese">EN</abbr></span>)&#160;<a rel="nofollow" class="external text" href="http://id.loc.gov/authorities/subjects/sh87003812">sh87003812</a></span><span style="font-weight:bold;">&#160;·</span> <a href="/wiki/Gemeinsame_Normdatei" title="Gemeinsame Normdatei">GND</a> <span class="uid">(<span style="font-weight:bolder; font-size:80%"><abbr title="tedesco">DE</abbr></span>)&#160;<a rel="nofollow" class="external text" href="https://d-nb.info/gnd/4242961-4">4242961-4</a></span><span style="font-weight:bold;">&#160;·</span> <a href="/wiki/Biblioteca_nazionale_di_Francia" title="Biblioteca nazionale di Francia">BNF</a> <span class="uid">(<span style="font-weight:bolder; font-size:80%"><abbr title="francese">FR</abbr></span>)&#160;<a rel="nofollow" class="external text" href="https://catalogue.bnf.fr/ark:/12148/cb12302957w">cb12302957w</a> <a rel="nofollow" class="external text" href="https://data.bnf.fr/ark:/12148/cb12302957w">(data)</a></span><span style="font-weight:bold;">&#160;·</span> <a href="/wiki/Biblioteca_nazionale_di_Israele" title="Biblioteca nazionale di Israele">J9U</a> <span class="uid">(<span style="font-weight:bolder; font-size:80%"><abbr title="inglese">EN</abbr>,&#160;<abbr title="ebraico">HE</abbr></span>)&#160;<a rel="nofollow" class="external text" href="http://olduli.nli.org.il/F/?func=find-b&amp;local_base=NLX10&amp;find_code=UID&amp;request=987007539008805171">987007539008805171</a></span></td></tr></tbody></table> <div class="noprint" style="width:100%; padding: 3px 0; display: flex; flex-wrap: wrap; row-gap: 4px; column-gap: 8px; box-sizing: border-box;"><div style="flex-grow: 1"><style data-mw-deduplicate="TemplateStyles:r140555418">.mw-parser-output .itwiki-template-occhiello{width:100%;line-height:25px;border:1px solid #CCF;background-color:#F0EEFF;box-sizing:border-box}.mw-parser-output .itwiki-template-occhiello-progetto{background-color:#FAFAFA}@media screen{html.skin-theme-clientpref-night .mw-parser-output .itwiki-template-occhiello{background-color:#202122;border-color:#54595D}html.skin-theme-clientpref-night .mw-parser-output .itwiki-template-occhiello-progetto{background-color:#282929}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .itwiki-template-occhiello{background-color:#202122;border-color:#54595D}html.skin-theme-clientpref-os .mw-parser-output .itwiki-template-occhiello-progetto{background-color:#282929}}</style><div class="itwiki-template-occhiello"><span class="noviewer" typeof="mw:File"><a href="/wiki/File:Computer_n_screen.svg" class="mw-file-description" title="Informatica"><img alt="&#160;" src="//upload.wikimedia.org/wikipedia/commons/thumb/7/77/Computer_n_screen.svg/24px-Computer_n_screen.svg.png" decoding="async" width="24" height="25" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/7/77/Computer_n_screen.svg/37px-Computer_n_screen.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/7/77/Computer_n_screen.svg/48px-Computer_n_screen.svg.png 2x" data-file-width="119" data-file-height="123" /></a></span>&#32;<b><a href="/wiki/Portale:Informatica" title="Portale:Informatica">Portale Informatica</a></b>&#58; accedi alle voci di Wikipedia che trattano di informatica</div></div></div> <!-- NewPP limit report Parsed by mw‐web.eqiad.main‐5d765b5c74‐77x42 Cached time: 20241119090202 Cache expiry: 2592000 Reduced expiry: false Complications: [show‐toc] CPU time usage: 0.395 seconds Real time usage: 0.966 seconds Preprocessor visited node count: 1999/1000000 Post‐expand include size: 48358/2097152 bytes Template argument size: 1336/2097152 bytes Highest expansion depth: 14/100 Expensive parser function count: 12/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 14642/5000000 bytes Lua time usage: 0.230/10.000 seconds Lua memory usage: 5747895/52428800 bytes Number of Wikibase entities loaded: 2/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 652.798 1 -total 18.46% 120.504 1 Template:Collegamenti_esterni 16.27% 106.187 1 Template:Linguaggio_di_programmazione 11.18% 72.987 1 Template:Infobox 8.10% 52.864 2 Template:Navbox 6.93% 45.233 1 Template:Principali_linguaggi_di_programmazione 5.70% 37.184 1 Template:Portale 5.65% 36.907 1 Template:Nota_disambigua 4.68% 30.580 8 Template:Wikidata 4.44% 28.965 1 Template:Avviso_permanente --> <!-- Saved in parser cache with key itwiki:pcache:idhash:20789-0!canonical and timestamp 20241119090202 and revision id 141913324. Rendering was triggered because: page-view --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Estratto da "<a dir="ltr" href="https://it.wikipedia.org/w/index.php?title=Awk&amp;oldid=141913324">https://it.wikipedia.org/w/index.php?title=Awk&amp;oldid=141913324</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Categoria:Categorie" title="Categoria:Categorie">Categoria</a>: <ul><li><a href="/wiki/Categoria:Linguaggi_di_programmazione" title="Categoria:Linguaggi di programmazione">Linguaggi di programmazione</a></li></ul></div><div id="mw-hidden-catlinks" class="mw-hidden-catlinks mw-hidden-cats-hidden">Categorie nascoste: <ul><li><a href="/wiki/Categoria:P3847_letta_da_Wikidata" title="Categoria:P3847 letta da Wikidata">P3847 letta da Wikidata</a></li><li><a href="/wiki/Categoria:Voci_con_template_Collegamenti_esterni_e_qualificatori_sconosciuti" title="Categoria:Voci con template Collegamenti esterni e qualificatori sconosciuti">Voci con template Collegamenti esterni e qualificatori sconosciuti</a></li><li><a href="/wiki/Categoria:P1324_letta_da_Wikidata" title="Categoria:P1324 letta da Wikidata">P1324 letta da Wikidata</a></li><li><a href="/wiki/Categoria:Voci_con_codice_LCCN" title="Categoria:Voci con codice LCCN">Voci con codice LCCN</a></li><li><a href="/wiki/Categoria:Voci_con_codice_GND" title="Categoria:Voci con codice GND">Voci con codice GND</a></li><li><a href="/wiki/Categoria:Voci_con_codice_BNF" title="Categoria:Voci con codice BNF">Voci con codice BNF</a></li><li><a href="/wiki/Categoria:Voci_con_codice_J9U" title="Categoria:Voci con codice J9U">Voci con codice J9U</a></li><li><a href="/wiki/Categoria:Voci_non_biografiche_con_codici_di_controllo_di_autorit%C3%A0" title="Categoria:Voci non biografiche con codici di controllo di autorità">Voci non biografiche con codici di controllo di autorità</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> Questa pagina è stata modificata per l'ultima volta il&#160;2 nov 2024 alle 11:58.</li> <li id="footer-info-copyright">Il testo è disponibile secondo la <a rel="nofollow" class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.it">licenza Creative Commons Attribuzione-Condividi allo stesso modo</a>; possono applicarsi condizioni ulteriori. Vedi le <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use/it">condizioni d'uso</a> per i dettagli.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy/it">Informativa sulla privacy</a></li> <li id="footer-places-about"><a href="/wiki/Wikipedia:Sala_stampa/Wikipedia">Informazioni su Wikipedia</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikipedia:Avvertenze_generali">Avvertenze</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Codice di condotta</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Sviluppatori</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/it.wikipedia.org">Statistiche</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Dichiarazione sui cookie</a></li> <li id="footer-places-mobileview"><a href="//it.m.wikipedia.org/w/index.php?title=Awk&amp;mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Versione mobile</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-f69cdc8f6-r24xm","wgBackendResponseTime":168,"wgPageParseReport":{"limitreport":{"cputime":"0.395","walltime":"0.966","ppvisitednodes":{"value":1999,"limit":1000000},"postexpandincludesize":{"value":48358,"limit":2097152},"templateargumentsize":{"value":1336,"limit":2097152},"expansiondepth":{"value":14,"limit":100},"expensivefunctioncount":{"value":12,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":14642,"limit":5000000},"entityaccesscount":{"value":2,"limit":400},"timingprofile":["100.00% 652.798 1 -total"," 18.46% 120.504 1 Template:Collegamenti_esterni"," 16.27% 106.187 1 Template:Linguaggio_di_programmazione"," 11.18% 72.987 1 Template:Infobox"," 8.10% 52.864 2 Template:Navbox"," 6.93% 45.233 1 Template:Principali_linguaggi_di_programmazione"," 5.70% 37.184 1 Template:Portale"," 5.65% 36.907 1 Template:Nota_disambigua"," 4.68% 30.580 8 Template:Wikidata"," 4.44% 28.965 1 Template:Avviso_permanente"]},"scribunto":{"limitreport-timeusage":{"value":"0.230","limit":"10.000"},"limitreport-memusage":{"value":5747895,"limit":52428800}},"cachereport":{"origin":"mw-web.eqiad.main-5d765b5c74-77x42","timestamp":"20241119090202","ttl":2592000,"transientcontent":false}}});});</script> <script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"Article","name":"Awk","url":"https:\/\/it.wikipedia.org\/wiki\/Awk","sameAs":"http:\/\/www.wikidata.org\/entity\/Q213970","mainEntity":"http:\/\/www.wikidata.org\/entity\/Q213970","author":{"@type":"Organization","name":"Contributori ai progetti Wikimedia"},"publisher":{"@type":"Organization","name":"Wikimedia Foundation, Inc.","logo":{"@type":"ImageObject","url":"https:\/\/www.wikimedia.org\/static\/images\/wmf-hor-googpub.png"}},"datePublished":"2004-05-15T20:34:48Z","dateModified":"2024-11-02T10:58:47Z","image":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/d\/d5\/The-AWK-Programming-Language.svg","headline":"linguaggio di programmazione"}</script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10