"If you're open to using awk, it's pretty simple: `awk 'tolower($0)~/bandana/{print prev[!idx];print prev[idx]} {idx=!idx;prev[idx]=$0}' filein`"
...pretty simple indeed.
"If you're open to using awk, it's pretty simple: `awk 'tolower($0)~/bandana/{print prev[!idx];print prev[idx]} {idx=!idx;prev[idx]=$0}' filein`"
...pretty simple indeed.
Federati Nu: Federated N-series GNU Social is a social network, courtesy of Federati Networks. It runs on GNU social, version 2.0.0-dev, available under the GNU Affero General Public License.
All Federati Nu: Federated N-series GNU Social content and data are available under the Creative Commons Attribution 3.0 license.