LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-21-2014, 07:38 AM   #1
totemtommie
LQ Newbie
 
Registered: Jul 2014
Posts: 11

Rep: Reputation: Disabled
cat results on new lines


Hi,

If I use cat -n >newfile.txt

I get 6 lines in a row in the .txt file (1 yadayada 2 yadayada 3 yadayada etc)

How can I get the results in new lines???

1 yadayada
2 yadayada
3 yadayada
etc

im lost
 
Old 07-21-2014, 07:55 AM   #2
totemtommie
LQ Newbie
 
Registered: Jul 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
mm..use textpad instead of notepad..problem solved:-)
 
  


Reply


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
cat: output specific number of lines mikeshn Linux - Software 8 01-24-2017 12:08 PM
[SOLVED] CAT giving unexpected results danielbmartin Programming 10 03-21-2013 10:33 PM
[SOLVED] How do I cat a range of lines? raybies Linux - Newbie 3 03-14-2012 10:29 AM
cat and grep in a bash script do not show results desired. okos Linux - Software 4 11-09-2009 12:39 AM
can't see all 20,160 lines in a file when 'cat filename' dave247 Debian 4 10-25-2008 06:13 PM


All times are GMT -5. The time now is 04:35 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration