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 09-14-2012, 04:13 PM   #1
bop-a-nator
LQ Newbie
 
Registered: Sep 2012
Location: North East USA
Distribution: at work: Red Hat Enterprise Linux Server release 5.8 (Tikanga); at home: what do you recommend?
Posts: 24

Rep: Reputation: Disabled
tail +3 test.txt gives error message


Hi

I have a file test.txt
UNIX-prompt> cat test.txt
1
2
3
4
5
6
7
8
9


In UNIX I can use this command and see the records starting from the third one to the end.

UNIX-prompt> tail +3 t
3
4
5
6
7
8
9

How do I do this in Linux? The equivalent commmand does not seem to work, I am very new to Linux - just got the box, so I am not sure if this is a setting. Many things I have experimented with and tried I see are the same from UNIX to Linux.

Anyway, when I do this sampe command in Linux - I get this:

LINUX-prompt> tail +3 test.txt
tail: cannot open `+3' for reading: No such file or directory
==> test.txt <==
1
2
3
4
5
6
7
8
9

Thank you very much for your help.
 
Old 09-14-2012, 04:19 PM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Please, take a look at this post: http://www.linuxquestions.org/questi...3/#post3318828. Maybe it explains (and solves) your issue. Hope this helps.
 
1 members found this post helpful.
Old 09-17-2012, 05:21 PM   #3
bop-a-nator
LQ Newbie
 
Registered: Sep 2012
Location: North East USA
Distribution: at work: Red Hat Enterprise Linux Server release 5.8 (Tikanga); at home: what do you recommend?
Posts: 24

Original Poster
Rep: Reputation: Disabled
Thank you - the infor in the link you provided was very helpful and solved the issue.
 
  


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
[SOLVED] Silencing the line "echo test > test/test.txt" in a shell script Arenlor Linux - General 2 06-18-2010 02:37 PM
Launching files (test.txt) from a terminal window varankv Linux - Desktop 5 11-14-2007 02:17 AM
aplay -l > message,txt creates empty file milindlokde Programming 5 06-24-2007 02:46 PM
Bash, how do I test for *.txt files in a directory with IF? severian23 Programming 7 11-04-2004 10:47 AM
same error message in every 2.6 test kernel apberzerk Linux - General 3 11-01-2003 07:16 PM


All times are GMT -5. The time now is 04:19 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