# shellmet[](https://github.com/kowainik/shellmet/actions)[](https://hackage.haskell.org/package/shellmet)[](http://stackage.org/lts/package/shellmet)[](http://stackage.org/nightly/package/shellmet)[](LICENSE)Out of the shell solution for scripting in Haskell. Shellmet provides an easy andconvenient way to call shell commands from Haskell programs.## Usage exampleThis README contains the usage example of the `shellmet` library. The example isrunnable. You can build and execute with the following command:```shellcabal run readme```### Setting upSince this tutorial is written using Literate Haskell, first, let's write allnecessary pragmas and imports.```haskell{-# LANGUAGE OverloadedStrings #-}import Data.Semigroup ((<>))import Shellmet (($|))import qualified Data.Text as T```### Simple scripting exampleBelow you can see how easy it is to interact with shell commands in Haskell:```haskellmain :: IO ()main = do "echo" ["Starting shellmet readme..."] text <- "cat" $| ["README.md"] let cnt = T.pack $ show $ length $ T.lines text "echo" ["Number of lines in this README: " <> cnt]```And the output is:```⚙ echo 'Starting shellmet readme...'Starting shellmet readme...⚙ echo 'Number of lines in this README: 54'Number of lines in this README: 54```