source: trunk/join_endcomma.awk @ 45

Last change on this file since 45 was 45, checked in by pinsard, 16 years ago

add bibtex input (continuation)

  • Property svn:keywords set to Id
File size: 507 bytes
Line 
1# module :
2# joins lines ending with comma
3#
4# original location :
5# /usr/home/fplod/src/superbib_ws/data/joins.awk sur aedon.locean-ipsl.upmc.fr
6# update :
7# $Id$
8# fplod 2008-03-12T09:00:38Z aedon.locean-ipsl.upmc.fr (Darwin)
9# creation thanks to http://www.unix.com/shell-programming-scripting/19601-shell-script-join-line-line-follows.html
10# see also http://forum.macbidouille.com/index.php?showtopic=128499
11#
12{
13if (index($0,",")==length($0) )
14{
15 #sub(/,/,"",$0)
16 printf("%s", $0 )
17}
18else {
19print $0
20}}
Note: See TracBrowser for help on using the repository browser.