
Hi guys, I need to replace a form feed character with a line feed character in a text file on unix (HP UX to be precise). Was hoping to use sed using this <http://www.cyberciti.biz/faq/unix-linux-sed-ascii-control-codes-nonprintable/> as a guide but I don't know how to pass the \n character to replace the /f character.

have you tried the utilities dos2unix and unix2dos? ᐧ On 20 November 2015 at 15:03, Bwana Lawi via skunkworks < skunkworks@lists.my.co.ke> wrote:
Hi guys,
I need to replace a form feed character with a line feed character in a text file on unix (HP UX to be precise).
Was hoping to use sed using this <http://www.cyberciti.biz/faq/unix-linux-sed-ascii-control-codes-nonprintable/> as a guide but I don't know how to pass the \n character to replace the /f character.
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

Use tr instead: tr '\f' '\n' < input_filename >output_filename On 20/11/2015, Jangita via skunkworks <skunkworks@lists.my.co.ke> wrote:
have you tried the utilities dos2unix and unix2dos? ᐧ
On 20 November 2015 at 15:03, Bwana Lawi via skunkworks < skunkworks@lists.my.co.ke> wrote:
Hi guys,
I need to replace a form feed character with a line feed character in a text file on unix (HP UX to be precise).
Was hoping to use sed using this <http://www.cyberciti.biz/faq/unix-linux-sed-ascii-control-codes-nonprintable/> as a guide but I don't know how to pass the \n character to replace the /f character.
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Tony White

Talk of scrips did daily nation fix the free paper download On Friday, November 20, 2015, Tony White via skunkworks < skunkworks@lists.my.co.ke> wrote:
Use tr instead:
tr '\f' '\n' < input_filename >output_filename
On 20/11/2015, Jangita via skunkworks <skunkworks@lists.my.co.ke> wrote:
have you tried the utilities dos2unix and unix2dos? ᐧ
On 20 November 2015 at 15:03, Bwana Lawi via skunkworks < skunkworks@lists.my.co.ke> wrote:
Hi guys,
I need to replace a form feed character with a line feed character in a text file on unix (HP UX to be precise).
Was hoping to use sed using this < http://www.cyberciti.biz/faq/unix-linux-sed-ascii-control-codes-nonprintable...
as a guide but I don't know how to pass the \n character to replace the /f character.
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Tony White
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Best Regards, Stephen Munguti. +254720425104

Thanks Tony. Works perfectly On Fri, Nov 20, 2015 at 5:35 PM, Tony White via skunkworks < skunkworks@lists.my.co.ke> wrote:
Use tr instead:
tr '\f' '\n' < input_filename >output_filename
On 20/11/2015, Jangita via skunkworks <skunkworks@lists.my.co.ke> wrote:
have you tried the utilities dos2unix and unix2dos? ᐧ
On 20 November 2015 at 15:03, Bwana Lawi via skunkworks < skunkworks@lists.my.co.ke> wrote:
Hi guys,
I need to replace a form feed character with a line feed character in a text file on unix (HP UX to be precise).
Was hoping to use sed using this < http://www.cyberciti.biz/faq/unix-linux-sed-ascii-control-codes-nonprintable...
as a guide but I don't know how to pass the \n character to replace the /f character.
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Tony White
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
participants (4)
-
Bwana Lawi
-
Jangita
-
Stephen Munguti
-
Tony White