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 10-02-2003, 10:25 AM   #1
tal
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Rep: Reputation: 0
how can I see a fortran file in linux


If I have a code file which is written in FORTRAN how can I see it in linux/Unix shell/terminal??
 
Old 10-02-2003, 10:47 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,143

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
If its source code any console text editor should work. Depends on what text is installed. If its a windows file you might see a ^m on the end of each line.

$editor <filename>

emacs
vi
pico

or
Midnight Commander (shell)

Last edited by michaelk; 10-02-2003 at 10:49 AM.
 
Old 10-02-2003, 12:48 PM   #3
wapcaplet
Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Or, if you just want to look at it, and not edit it, you can use 'more' or 'less' to view it and page through it. 'less' is better, as it does more than 'more' does.
 
  


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
any recommendations for a fortran compiler for linux? buddy_epson Programming 3 08-18-2006 03:00 AM
does linux fortran compiler in fedora 4 support VAX FORTRAN? terrence Programming 17 08-31-2005 09:59 AM
How to output a C stream into a binary file readable via Fortran I/O? zero79 Programming 8 02-07-2005 09:51 PM
Cant find Fortran File unixfreak Linux - Newbie 21 09-03-2004 02:21 PM
Fortran unformatted file conversion from Solaris to linux SenorPedo Programming 2 03-01-2004 12:13 AM


All times are GMT -5. The time now is 12:00 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration