Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 15882 Details for
Bug 23116
coreutils 5: 'head -1', 'tail -1' give errors, need '-n 1' now; breaks lots of Makefiles
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
fixheadtails
tmp.txt (text/plain), 791 bytes, created by
John Mylchreest (RETIRED)
on 2003-08-11 01:42:45 UTC
(
hide
)
Description:
fixheadtails
Filename:
MIME Type:
Creator:
John Mylchreest (RETIRED)
Created:
2003-08-11 01:42:45 UTC
Size:
791 bytes
patch
obsolete
>#!/bin/bash >LASTFILE="" > >for MATCHES in $(grep -i -R "head -[ 0-9]" ./* | cut -f1 -d:) ; do > if [ ! "${MATCHES}" = "${LASTFILE}" ] ; then > mv ${MATCHES} ${MATCHES}.orig > sed -e 's/head -\(.*\)/head -n \1/' \ > < ${MATCHES}.orig \ > > ${MATCHES} > rm ${MATCHES}.orig > fi > LASTFILE="${MATCHES}" >done > >for MATCHES in $(grep -i -R "tail -[ 0-9]" ./* | cut -f1 -d:) ; do > if [ ! "${MATCHES}" = "${LASTFILE}" ] ; then > mv ${MATCHES} ${MATCHES}.orig > sed -e 's/tail \([-+]\)\(.*\)/tail -n \1\2/' \ > < ${MATCHES}.orig \ > > ${MATCHES} > rm ${MATCHES}.orig > fi > LASTFILE="${MATCHES}" >done
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 23116
:
15882
|
15883
|
15886