1#!/bin/sh 2# This Source Code Form is subject to the terms of the Mozilla Public 3# License, v. 2.0. If a copy of the MPL was not distributed with this 4# file, You can obtain one at http://mozilla.org/MPL/2.0/. 5# 6# This Source Code Form is "Incompatible With Secondary Licenses", as 7# defined by the Mozilla Public License, v. 2.0. 8 9thisdir=`dirname "$0"` 10buglist="$thisdir/buglist" 11csvfile="$thisdir/buglist.csv" 12 13$thisdir/buglist "$@" 2>&1 1>${csvfile} 14if test "$?" != "0"; then cat "$csvfile" 1>&2; exit 1; fi 15 16# 1. use 'awk' to select the first column (bug_id) 17# 2. use 'grep -v' to remove the first line with the column headers 18# 3. use backquotes & 'echo' to get all values in one line, space separated 19echo `cat ${csvfile} | awk -F, '{printf $1 "\n"}' | grep -v bug_id` 20