Visit Our UNIX and Linux User Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #111
Difficulty: Easy
The Unix version with the largest installed base in 2019 is macOS.
True or False?
Linux & Unix Commands - Search Man Pages

fpr(1) [bsd man page]

FPR(1)							      General Commands Manual							    FPR(1)

NAME
fpr - print Fortran file SYNOPSIS
fpr DESCRIPTION
Fpr is a filter that transforms files formatted according to Fortran's carriage control conventions into files formatted according to UNIX line printer conventions. Fpr copies its input onto its output, replacing the carriage control characters with characters that will produce the intended effects when printed using lpr(1). The first character of each line determines the vertical spacing as follows: +---------------+--------------------------------+ | Character | Vertical Space Before Printing | |---------------+--------------------------------| | Blank | One line | | 0 | Two lines | | 1 | To first line of next page | | + | No advance | +---------------+--------------------------------+ A blank line is treated as if its first character is a blank. A blank that appears as a carriage control character is deleted. A zero is changed to a newline. A one is changed to a form feed. The effects of a "+" are simulated using backspaces. EXAMPLES
a.out | fpr | lpr fpr < f77.output | lpr BUGS
Results are undefined for input lines longer than 170 characters. 4.2 Berkeley Distribution May 7, 1986 FPR(1)

Check Out this Related Man Page

ASA(1)							    BSD General Commands Manual 						    ASA(1)

NAME
asa -- interpret carriage-control characters SYNOPSIS
asa [file ...] DESCRIPTION
The asa utility reads files sequentially, mapping FORTRAN carriage-control characters to line-printer control sequences, and writes them to the standard output. The first character of each line is interpreted as a carriage-control character. The following characters are interpreted as follows: <space> Output the rest of the line without change. 0 Output a <newline> character before printing the rest of the line. 1 Output a <formfeed> character before printing the rest of the line. + The trailing <newline> of the previous line is replaced by a <carriage-return> before printing the rest of the line. Lines beginning with characters other than the above are treated as if they begin with <space>. EXIT STATUS
The asa utility exits 0 on success, and >0 if an error occurs. EXAMPLES
To view a file containing the output of a FORTRAN program: asa file To format the output of a FORTRAN program and redirect it to a line-printer: a.out | asa | lpr SEE ALSO
f77(1) STANDARDS
The asa utility conforms to IEEE Std 1003.1-2001 (``POSIX.1''). AUTHORS
J.T. Conklin, Winning Strategies, Inc. BSD
May 9, 2002 BSD

13 More Discussions You Might Find Interesting

1. Programming

why doesn't this work?????

i keep getting the following error with the code segment below when i try to compile the program. parse error before '(' parse error before ')' stray '\' in program this is the code segment and the error is on the second line of the segment #define DEBUG(fmt) if(traceflag) {... (1 Reply)
Discussion started by: token
1 Replies

2. UNIX for Dummies Questions & Answers

how to write to file using fprintf in find command...

:D I once again am looking through the man pages and am still working on the find command to fully comprehend all its attributes.. i am a little stuck on a problem with how many options to -print there are and the only two I know how to use are printf and -print.. i can not make heads or tails of... (2 Replies)
Discussion started by: moxxx68
2 Replies

3. Shell Programming and Scripting

why does this number become 0.0 on fprint?

basically helpme.txt has three columns - the first two are decimals and the third is something like 45.5%... sed is used to discard the % sign as was suggested here earlier... here is the line of code I'm interested in... cat helpme.txt | awk '{$1 $2 $3}NR<5{printf("%-20d %-20d... (6 Replies)
Discussion started by: nortypig
6 Replies

4. Programming

fprintf

Could someone explain me the following fprintf format: fprintf (stderr, _("Try `%s --help' for more information.\n"), program_name); Why just not use: fprintf(stderr, "ry `%s --help' for more information.\n", program_name) I mean what is _() does? (1 Reply)
Discussion started by: mirusnet
1 Replies

5. Shell Programming and Scripting

Detect sprintf and fprintf bad use

Hello again, I don't know about regexp so I throw this question here: How can I detect files where, for example: sprintf (var1, "hello %s %s", sub1); The problem here is that we have 2 %s and only a variable. Or... the inverse: sprintf (var1, "hello %s %s", sub1, sub2, sub3,...subn); ... (2 Replies)
Discussion started by: albertogarcia
2 Replies

6. Programming

Masking Password with *'s

So I've been working on this for some time now and can't seem to find the solution that works for me. I'm working in C/Unix. Basically, I want to take a user input and output something different. For example, I want to take a password and output *'s. In another instance, I want to take inputed... (35 Replies)
Discussion started by: bigdrock44
35 Replies

7. Programming

fprintf() gives segmentation fault

Hi, I am using fprintf to write few strings toa file which has been opened in write mode. The syntax is as follows: printf("Testing 7A.\n"); fprintf(out_screen,"%s|%s|%s|%s|%s|\n",var1,var2,var3,var4,var5); printf("Testing 8.\n"); When I execute the code It prints "Testing 7A." then... (2 Replies)
Discussion started by: siba.s.nayak
2 Replies

8. UNIX for Dummies Questions & Answers

fprintd messages in /var/log/messages

Whenever a user uses su I get the following error messages in /var/log/messages: Nov 23 04:24:55 <REMOVED> abrt: saved core dump of pid 26141 (/usr/libexec/fprintd) to /var/spool/abrt/ccpp-1322018695-26141.new/coredump (753664 bytes) Nov 23 04:24:55 <REMOVED> abrtd: Directory... (3 Replies)
Discussion started by: JakesHat
3 Replies

9. Shell Programming and Scripting

How to replace a same value fpr different variables with different values?

Hi, Could anyone help me on the below problem :wall:, I am having a .xml file as a input file with >1000 lines In that i want to replace some values, ex: <name>username</name> <value>admin</value> <name>password</name> <value>admin</value> . . . now i... (8 Replies)
Discussion started by: tejastrikez
8 Replies

10. Shell Programming and Scripting

Fprintf issue

i had to send a mail an attachment which i got from find command. But i did not get mail but could see the following line in the logs "aliased to fprintf.c". Can someone help me to understand what does it mean?..As this issue is not occuring now, i could not replicate the problem now.Thanks. (1 Reply)
Discussion started by: jesu
1 Replies

11. Homework & Coursework Questions

Cannot correctly connect multi-stage C command pipe (among others) (FYI: a lot of code)

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: We are supposed to write a C program that parses a command line, separates it into each command (further... (5 Replies)
Discussion started by: kowit010
5 Replies

12. Solaris

MaxNumberOfProcesses - UNIX

Hi All, Could you please let me know the way by which we can find : MaxNumberOfProcesses in AIX,Linux,Soalris,HP-UX machines. Is there any command or any specific calue set for this? (7 Replies)
Discussion started by: omkar.jadhav
7 Replies

13. Shell Programming and Scripting

How to print file info with FFprobe?

Hello, I have many mp4 files inside a folder and I need to write stream info of each files. Below script creates txt files but inside of each file is empty. #!/bin/bash for video in *.mp4; do base="${video%.mp4}" ffprobe -i "$base".mp4 > "$base".txt; done exit 0 When I run... (2 Replies)
Discussion started by: baris35
2 Replies

Featured Tech Videos