LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-21-2005, 04:28 AM   #1
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Rep: Reputation: 35
why when redirecting output to a file any file extension seems to be fine?


I've noticed that when you redirect output to a file that some people use an extension that seems meaningful. Like if redirecting an error they might name it foo.err. I've done this myself as well but m curious why it works and you don't need to name it foo.txt. Is that cuz cat does something like interpet the ascii code so it doesn't matter what the extension? Sorry if this is a silly questions but wanted to know.
 
Old 05-21-2005, 05:09 AM   #2
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
linux doesn't rely on the extension to determine the file contents, thus meaning file extensions are not really important in linux
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux file extension vs Dos file Extension? manaa Linux - Newbie 6 02-12-2009 05:19 PM
Redirecting socket output to a file elmafiacs Programming 1 10-15-2005 06:18 AM
Redirecting colsole output to file. danimallv Linux - General 4 07-05-2005 03:44 PM
redirecting output of compile to a file halfcan Linux - Hardware 1 02-05-2005 11:01 PM
redirecting cpio screen output to file rawii Solaris / OpenSolaris 1 02-11-2004 10:28 AM


All times are GMT -5. The time now is 12:13 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration