Project

General

Profile

1
#!/bin/bash -e
2
. "$(dirname "${BASH_SOURCE[0]}")"/import.run "$@"
3
.rel ../sh/archives.sh
4

    
5
if self_not_included; then
6

    
7
export archive="${top_file%.*.*}" # remove eg. .header.csv
8

    
9
all()
10
{
11
	begin_target; : "${to_extract:?}"
12
	to_top_file all__extract
13
}
14
all__extract()
15
{
16
	echo_func; ensure_nested_func
17
	unzip -p "$archive" "$to_extract"|echo_run head -1
18
}
19

    
20
fi
(4-4/18)