Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove backslash escape of pipe in sed command. #3

Merged
merged 1 commit into from
Jun 20, 2017
Merged

Remove backslash escape of pipe in sed command. #3

merged 1 commit into from
Jun 20, 2017

Conversation

jdblischak
Copy link
Collaborator

I was using this script to prepare R packages for conda and noticed that "| file LICENSE" was not removed. I removed the backslash in front of the pipe command, and that seemed to fix things.

# with backslash
$ echo " license: GPL-3 | file LICENSE" | sed 's/ \| file LICENSE//'
license: GPL-3 | file LICENSE
# without backslash
$ echo " license: GPL-3 | file LICENSE" | sed 's/ | file LICENSE//'
 license: GPL-3
# some system information
$ bash --version | head -n 1
GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu)
$ sed --version | head -n 1
sed (GNU sed) 4.2.2

Thanks for writing this script and for all your work maintaining R packages on conda-forge!

@bgruening
Copy link
Owner

Hi @jdblischak! I'm glad that this small script turns out to be useful :)
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants