FPR(1) BSD 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:
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
HISTORY
The fpr command appeared in 4.2BSD.
BUGS
Results are undefined for input lines longer than 170 characters.
BSD June 6, 1993 BSD
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
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)
: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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)