---
name: "sfeed_gopher"
section: "1"
platform: "linux"
package: "sfeed"
version: "2.2-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/sfeed_gopher"
---

# sfeed\_gopher(1)

format feed data to Gopher files

## NAME

**sfeed\_gopher** – format feed data to Gopher files

## SYNOPSIS

**sfeed\_gopher** \[*file ...*\]

## DESCRIPTION

**sfeed\_gopher** formats feed data (TSV) from [sfeed(1)](/sfeed/1.md) from stdin or for each *file* to stdout in the raw Gopher output format.

If one or more *file* arguments are specified then the basename of the *file* is used as the feed name in the output. **sfeed\_gopher** creates an index file named "index" and for each feed it creates a file with the same name as the basename of the feed *file*.

If no *file* arguments are specified and so the data is read from stdin then the data is written to stdout and no files are written.

Items with a timestamp from the last day compared to the system time at the time of formatting are counted and marked as new. This value might be overridden through environment variables. Items are marked as new with the prefix "N" at the start of the line.

## ENVIRONMENT

- SFEED\_GOPHER\_PATH

  This environment variable can be used as the prefix for each path in the index file. The default is "/".

- SFEED\_GOPHER\_HOST

  This environment variable can be used as the Gopher Host field. The default is "127.0.0.1".

- SFEED\_GOPHER\_PORT

  This environment variable can be used as the Gopher Port field. The default is "70".

- SFEED\_NEW\_AGE

  Overwrite the maximum age in seconds to mark feeds as new. By default this is 86400, which equals one day.

## EXIT STATUS

The **sfeed\_gopher** utility exits 0 on success, and \>0 if an error occurs.

## EXAMPLES

```
SFEED_GOPHER_HOST="codemadness.org" SFEED_GOPHER_PATH="/feeds/" \
	sfeed_gopher ~/.sfeed/feeds/*
```

## SEE ALSO

[sfeed(1)](/sfeed/1.md), [sfeed(5)](/sfeed/5.md)

## STANDARDS

*The Internet Gopher Protocol*, RFC 1436, March 1993.

## AUTHORS

Hiltjo Posthuma ⟨*hiltjo@codemadness.org*⟩

## CAVEATS

The common-used 'h' and 'i' types are used in this program. These types are an extension to Gopher.
