LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-31-2018, 04:42 AM   #16
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,687

Rep: Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274

probably I missed something?
Code:
user@host$ echo '--BEGIN PRIVATE KEY--\nAAA\nBBB\nCCC\n--END PRIVATE KEY--'
--BEGIN PRIVATE KEY--\nAAA\nBBB\nCCC\n--END PRIVATE KEY--
user@host$ echo -e '--BEGIN PRIVATE KEY--\nAAA\nBBB\nCCC\n--END PRIVATE KEY--'
--BEGIN PRIVATE KEY--
AAA
BBB
CCC
--END PRIVATE KEY--
user@host$ printf --  '--BEGIN PRIVATE KEY--\nAAA\nBBB\nCCC\n--END PRIVATE KEY--'
--BEGIN PRIVATE KEY--
AAA
BBB
CCC
--END PRIVATE KEY--user@host$ 

user@host$
but your last post is not related to the original question at all (no bash, no replace text).

Please do not use:
Code:
cat file | sed 'script'
# but
sed 'script' file
 
  


Reply

Tags
sed bash


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Replace a variable text with * pedropt Programming 8 12-30-2017 09:23 AM
[SOLVED] Replace text lines identified by leading text in line within multiple files juergen852 Linux - Newbie 9 09-21-2014 04:54 PM
SED - How to replace a control character (NAK) from a text file paulr211 Linux - Software 3 10-04-2012 10:14 AM
bash text to variable accessing individual text lines patolfo Programming 11 05-11-2010 10:21 AM
Bash scripting: parsing a text file character-by-character Completely Clueless Programming 13 08-12-2009 09:07 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration