Introduction
Introduction Statistics Contact Development Disclaimer Help
rename multiple things to "ics2txt" to fit the package name - ics2txt - convert…
git clone git://bitreich.org/ics2txt git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws…
Log
Files
Refs
Tags
README
---
commit 708175eee823de7ce8690d23f9a5adf1b0839a71
parent 8efe5091a1a26fb47aea4f1582bcc7ffbfc736ea
Author: Josuah Demangeon <[email protected]>
Date: Fri, 17 Apr 2020 13:20:15 +0000
rename multiple things to "ics2txt" to fit the package name
Diffstat:
M Makefile | 2 +-
M README | 19 +++++++++++--------
D ics2tsv.1 | 103 -----------------------------…
A ics2txt | 2 ++
A ics2txt.1 | 101 +++++++++++++++++++++++++++++…
5 files changed, 115 insertions(+), 112 deletions(-)
---
diff --git a/Makefile b/Makefile
@@ -1,6 +1,6 @@
PREFIX = /usr/local
BIN = ics2tsv tsv2tcal tcal2tsv tsv2ics ics2txt
-MAN1 = ics2tsv.1
+MAN1 = ics2txt.1
all:
diff --git a/README b/README
@@ -1,16 +1,19 @@
-TICAL(1) General Commands Manual TICAL(1)
+ICS2TSV(1) General Commands Manual ICS2TSV(1)
NAME
- tical – convert ics file to simpler tsv or txt formats
+ ics2tsv – convert ics file to simpler tsv or txt formats
SYNOPSIS
+ ics2txt <file.ics >file.txt
+
+ ics2txt <file.tsv >file.ics
ics2tsv <file.ics >file.tsv
tsv2tcal <file.tsv >file.txt
tcal2tsv <file.txt >file.tsv
tsv2ics <file.tsv >file.ics
DESCRIPTION
- tical is set of awk scripts to deal with iCal (.ics) format to publish,
+ ics2tsv 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
@@ -26,15 +29,15 @@ DESCRIPTION
6. Description
EXAMPLES
- Convert a calendar from HTTP .ics to custom .txt sorted by beginning:
- curl $url.ics | tical-tsv | sort -n -k 1,1 | tcal-txt
+ Convert a calendar from HTTP .ics to custom .txt sorted by beginning
+ date:
+ curl $url.ics | ics2tsv | sort -n -k 1,1 | tsv2txt
Convert a custom .txt format back to an .ics file and publish it:
- tical-back cal.txt | tcal-ics | ssh www@$host 'cat
- >/var/www/cal.ics'
+ tcal2tsv cal.txt | tsv2ics | ssh www@$host 'cat >/var/www/cal.ics'
Split an file according to the category, saved as .tsv:
- tical-tsv cal.txt | awk -F '\t' '{ f = $3".tsv"; print >>f }'
+ tcal2tsv cal.txt | awk -F '\t' '{ f = $3".tsv"; print >>f }'
SEE ALSO
cal(1), calendar(1), date(1), sort(1)
diff --git a/ics2tsv.1 b/ics2tsv.1
@@ -1,103 +0,0 @@
-.Dd $Mdocdate: Mar 1 2020$
-.Dt ICS2TSV 1
-.Os
-.
-.
-.Sh NAME
-.
-.Nm ics2tsv
-.Nd convert ics file to simpler tsv or txt formats
-.
-.
-.Sh SYNOPSIS
-.
-.Nm ics2tsv Ar <file.ics >file.tsv
-.Nm tsv2tcal Ar <file.tsv >file.txt
-.Nm tcal2tsv Ar <file.txt >file.tsv
-.Nm tsv2ics Ar <file.tsv >file.ics
-.
-.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 date:
-.Dl curl "$url.ics" | ics2tsv | sort -n -k 1,1 | tsv2txt
-.
-.Pp
-Convert a custom
-.Pa .txt
-format back to an
-.Pa .ics
-file and publish it:
-.Dl tcal2tsv cal.txt | tsv2ics | ssh "www@$host" 'cat >/var/www/cal.ics'
-.
-.Pp
-Split an
-.ics
-file according to the category, saved as
-.Pa .tsv :
-.Dl tcal2tsv 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 [email protected]
diff --git a/ics2txt b/ics2txt
@@ -0,0 +1,2 @@
+#!/bin/sh -e
+exec ics2tsv "$@" | exec tsv2tcal
diff --git a/ics2txt.1 b/ics2txt.1
@@ -0,0 +1,101 @@
+.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 Ar <file.ics >file.txt
+.Pp
+.Nm ics2txt Ar <file.tsv >file.ics
+.Nm ics2tsv Ar <file.ics >file.tsv
+.Nm tsv2tcal Ar <file.tsv >file.txt
+.Nm tcal2tsv Ar <file.txt >file.tsv
+.Nm tsv2ics Ar <file.tsv >file.ics
+.
+.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 date:
+.Dl curl "$url.ics" | ics2tsv | sort -n -k 1,1 | tsv2txt
+.
+.Pp
+Convert a custom
+.Pa .txt
+format back to an
+.Pa .ics
+file and publish it:
+.Dl tcal2tsv cal.txt | tsv2ics | ssh "www@$host" 'cat >/var/www/cal.ics'
+.
+.Pp
+Split an
+.ics
+file according to the category, saved as
+.Pa .tsv :
+.Dl tcal2tsv 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 [email protected]
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.