Rename the project, as it was not only converting in one direction anymore. - ics2txt - convert icalendar .ics file to plain text HTML git clone git://bitreich.org/ics2txt git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ics2txt DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit 6cf4653e13a04cb1e05d69d94a616e0f76b1236e DIR parent 22d6fb0c1075eda38c175b3566c76259a1ae94c1 HTML Author: Josuah Demangeon <me@josuah.net> Date: Wed, 4 Mar 2020 00:09:22 +0100 Rename the project, as it was not only converting in one direction anymore. Diffstat: M Makefile | 5 +++-- M README | 20 ++++++++++---------- D ics2txt.1 | 104 ------------------------------- R ics2txt-tsv -> tical-ics-tsv | 0 R ics2txt-ics -> tical-tsv-ics | 0 R ics2txt-txt -> tical-tsv-txt | 0 R ics2txt-back -> tical-txt-tsv | 0 A tical.1 | 104 +++++++++++++++++++++++++++++++ 8 files changed, 117 insertions(+), 116 deletions(-) --- DIR diff --git a/Makefile b/Makefile @@ -1,5 +1,6 @@ -BIN = ics2txt-* -MAN1 = ics2txt.1 +PREFIX = /usr/local +BIN = tical-* +MAN1 = tical.1 all: DIR diff --git a/README b/README @@ -1,16 +1,16 @@ -ICS2TXT(1) General Commands Manual ICS2TXT(1) +TICAL(1) General Commands Manual TICAL(1) NAME - ics2txt – convert ics file to simpler tsv or txt formats + tical – convert ics file to simpler tsv or txt formats SYNOPSIS - ics2txt-tsv <file.ics >file.tsv - ics2txt-ics <file.tsv >file.ics - ics2txt-txt <file.tsv >file.txt - ics2txt-back <file.txt >file.tsv + tical-tsv <file.ics >file.tsv + tical-ics <file.tsv >file.ics + tical-txt <file.tsv >file.txt + tical-back <file.txt >file.tsv DESCRIPTION - ics2txt is set of awk scripts to deal with iCal (.ics) format to publish, + tical is set of awk scripts to deal with iCal (.ics) format to publish, display and convert *.ics files, though a simple central TSV format. They all read from either stdin or the file passed as argument, and write @@ -27,14 +27,14 @@ DESCRIPTION EXAMPLES Convert a calendar from HTTP .ics to custom .txt sorted by beginning: - curl $url.ics | ics2txt-tsv | sort -n -k 1,1 | ics2txt-txt + curl $url.ics | tical-tsv | sort -n -k 1,1 | tcal-txt Convert a custom .txt format back to an .ics file and publish it: - ics2txt-back cal.txt | ics2txt-ics | ssh www@$host 'cat + tical-back cal.txt | tcal-ics | ssh www@$host 'cat >/var/www/cal.ics' Split an file according to the category, saved as .tsv: - ics2txt-tsv cal.txt | awk -F '\t' '{ f = $3".tsv"; print >>f }' + tical-tsv cal.txt | awk -F '\t' '{ f = $3".tsv"; print >>f }' SEE ALSO cal(1), calendar(1), date(1), sort(1) DIR diff --git a/ics2txt.1 b/ics2txt.1 @@ -1,104 +0,0 @@ -.Dd $Mdocdate: Mar 1 2020$ -.Dt ICS2TXT 1 -.Os -. -. -.Sh NAME -. -.Nm ics2txt -.Nd convert ics file to simpler tsv or txt formats -. -. -.Sh SYNOPSIS -. -.Nm ics2txt-tsv Ar <file.ics >file.tsv -.Nm ics2txt-ics Ar <file.tsv >file.ics -.Nm ics2txt-txt Ar <file.tsv >file.txt -.Nm ics2txt-back Ar <file.txt >file.tsv -. -.Sh DESCRIPTION -. -.Nm -is set of awk scripts to deal with iCal -.Pq Pa .ics -format to publish, display and convert *.ics files, though a simple -central TSV format. -.Pp -They all read from either stdin or the file passed as argument, and -write to stdout. -. -.Pp -.The -.Pa file.tsv -files have one line per event, all with the following fields, -separated by one tab: -. -.Bl -offset 1n -width 1n -enum -compact -. -.It -Begining (epoch) -. -.It -End (epoch) -. -.It -Category -. -.It -Location -. -.It -Summary -. -.It -Description -. -.El -. -. -.Sh EXAMPLES -. -Convert a calendar from HTTP -.Pa .ics -to custom -.Pa .txt -sorted by beginning: -.Dl curl "$url.ics" | ics2txt-tsv | sort -n -k 1,1 | ics2txt-txt -. -.Pp -Convert a custom -.Pa .txt -format back to an -.Pa .ics -file and publish it: -.Dl ics2txt-back cal.txt | ics2txt-ics | ssh "www@$host" 'cat >/var/www/cal.ics' -. -.Pp -Split an -.ics -file according to the category, saved as -.Pa .tsv : -.Dl ics2txt-tsv cal.txt | awk -F '\et' '{ f = $3".tsv"; print >>f }' -. -. -.Sh SEE ALSO -. -.Xr cal 1 , -.Xr calendar 1 , -.Xr date 1 , -.Xr sort 1 -. -. -.Sh STANDARDS -. -.Rs -.%A Desruisseaux -.%D September 2009 -.%T Internet Calendaring and Scheduling Core Object Specification (iCalendar) -.%R RFC 5545 -.Re -. -. -.Sh AUTHORS -. -.An Josuah Demangeon Aq Mt me@josuah.net DIR diff --git a/ics2txt-tsv b/tical-ics-tsv DIR diff --git a/ics2txt-ics b/tical-tsv-ics DIR diff --git a/ics2txt-txt b/tical-tsv-txt DIR diff --git a/ics2txt-back b/tical-txt-tsv DIR diff --git a/tical.1 b/tical.1 @@ -0,0 +1,104 @@ +.Dd $Mdocdate: Mar 1 2020$ +.Dt TICAL 1 +.Os +. +. +.Sh NAME +. +.Nm tical +.Nd convert ics file to simpler tsv or txt formats +. +. +.Sh SYNOPSIS +. +.Nm tical-tsv Ar <file.ics >file.tsv +.Nm tical-ics Ar <file.tsv >file.ics +.Nm tical-txt Ar <file.tsv >file.txt +.Nm tical-back Ar <file.txt >file.tsv +. +.Sh DESCRIPTION +. +.Nm +is set of awk scripts to deal with iCal +.Pq Pa .ics +format to publish, display and convert *.ics files, though a simple +central TSV format. +.Pp +They all read from either stdin or the file passed as argument, and +write to stdout. +. +.Pp +.The +.Pa file.tsv +files have one line per event, all with the following fields, +separated by one tab: +. +.Bl -offset 1n -width 1n -enum -compact +. +.It +Begining (epoch) +. +.It +End (epoch) +. +.It +Category +. +.It +Location +. +.It +Summary +. +.It +Description +. +.El +. +. +.Sh EXAMPLES +. +Convert a calendar from HTTP +.Pa .ics +to custom +.Pa .txt +sorted by beginning: +.Dl curl "$url.ics" | tical-tsv | sort -n -k 1,1 | tcal-txt +. +.Pp +Convert a custom +.Pa .txt +format back to an +.Pa .ics +file and publish it: +.Dl tical-back cal.txt | tcal-ics | ssh "www@$host" 'cat >/var/www/cal.ics' +. +.Pp +Split an +.ics +file according to the category, saved as +.Pa .tsv : +.Dl tical-tsv cal.txt | awk -F '\et' '{ f = $3".tsv"; print >>f }' +. +. +.Sh SEE ALSO +. +.Xr cal 1 , +.Xr calendar 1 , +.Xr date 1 , +.Xr sort 1 +. +. +.Sh STANDARDS +. +.Rs +.%A Desruisseaux +.%D September 2009 +.%T Internet Calendaring and Scheduling Core Object Specification (iCalendar) +.%R RFC 5545 +.Re +. +. +.Sh AUTHORS +. +.An Josuah Demangeon Aq Mt me@josuah.net