]> git.ipfire.org Git - thirdparty/util-linux.git/blob - text-utils/line.sh
Imported from util-linux-2.11r tarball.
[thirdparty/util-linux.git] / text-utils / line.sh
1 #!/bin/sh
2 #
3 # line read one line
4 #
5 # Version: $Id: line,v 1.1 2001/08/03 14:54:10 hch Exp hch $
6 #
7 # Author: Christoph Hellwig <hch@caldera.de>
8 #
9 # This program is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU General Public License
11 # as published by the Free Software Foundation; either version
12 # 2 of the License, or (at your option) any later version.
13 #
14
15 read line
16 echo ${line}
17
18 if [ -z "${line}" ]; then
19 exit 1
20 else
21 exit 0
22 fi