02-09-2008
If you open a file in vi and it is a continuous line, it means there are no carriage returns in your file (or at least any that vi understands), so s/$/^M/ will only put a ^M at the very end of the one big line. vi has no idea when your lines are supposed to end, how do you expect vi to recognize that?
I have no idea how you are trying to view this file, I'm guessing you are trying to view it in a windows app because you are trying to append ^M, and that is how vi "interprets" the DOS carriage return when vi opens a text file written in windows, but it doesn't mean that your windows app is going to interpret ^M as a carriage return, it is just going to see it as two characters: ^ and M.
Last edited by System Shock; 02-09-2008 at 02:20 PM..
10 More Discussions You Might Find Interesting
1. Solaris
It is easy to list all zones from global zones, but how to find out the global zone name from non-global zone?
thx (11 Replies)
Discussion started by: honglus
11 Replies
2. Shell Programming and Scripting
Hi all,
I have a text file containing sql commands. I want to use sed to replace the " character with the ' character. But when i run the command below it just replaces it with a space? Do i have the escape the ' character if i want to use it?
cat sql.txt
update customer set custid =... (1 Reply)
Discussion started by: borderblaster
1 Replies
3. Solaris
Hi All,
How can we copy a directory from global zone to non-global zone using SCP command? (8 Replies)
Discussion started by: vijaysachin
8 Replies
4. Solaris
Hi All,
I want to know for non global zone there will be different kernal running? (1 Reply)
Discussion started by: vijaysachin
1 Replies
5. Solaris
Hi Guys,
My requirement is I have file called /opt/orahome/.profile in non global zone.
PATH=/usr/bin:/usr/ucb:/etc:/usr/sbin:/usr/local/bin:/usr/openwin/bin:.
export PATH
PS1="\${ORACLE_SID}:`hostname`:\$PWD$ "
export PS1
EDITOR=vi
export EDITOR
ENV=/opt/orahome/.kshrc
export ENV... (1 Reply)
Discussion started by: vijaysachin
1 Replies
6. Solaris
Hi guru
Could any one help me by letting me know, how to see global hostname by logging in non global zones
Regards (2 Replies)
Discussion started by: girish.batra
2 Replies
7. Solaris
Hi,
I have Solaris zone configured with Solaris 9 and 10.
In Solaris 10(non global), I use the command “zonename” to get whether it is global or non-global server.
For Solaris 9, what command I can use to get whether it is global or non-global server.
Regards,
Kalai :confused: (25 Replies)
Discussion started by: kalpeer
25 Replies
8. Shell Programming and Scripting
Hi,
I try to define global var assuming that I can acces it from multiple sessions/terminal windows, but I can't do this with either comand line or script delcaratino/export. I'm not a root user doing this, but is this should not be matter.
Even if I do this lines below in script, being in the... (3 Replies)
Discussion started by: trento17
3 Replies
9. Solaris
hi all,
Just a simple question but i cant get the answers in the book -
In my globalzone , assuming i have 4 cpus (psrinfo -pv = 0-3), if i set dedicated-cpu (ncpus=2) for my local zone
Is my globalzone left with 2 cpus or still 4 cpus ? Does localzone "resource reservation.e.g. cpu in... (6 Replies)
Discussion started by: javanoob
6 Replies
10. Solaris
Hi,
If I change date and time in global zone, then it will affect in non global zones.
During this process what files will get affect in non global zones and which mechanism it's using to change.
gloabl zone:Solaris 11.3 X86
TIA (1 Reply)
Discussion started by: Sumanthsv
1 Replies
asa(1) General Commands Manual asa(1)
NAME
asa - interpret ASA carriage control characters
SYNOPSIS
[files]
DESCRIPTION
interprets the output of FORTRAN programs that utilize ASA carriage control characters. It processes either the files whose names are
given as arguments, or the standard input if is specified or if no file names are given. The first character of each line is assumed to be
a control character. The following control characters are interpreted as indicated:
(blank) Output a single new-line character before printing.
(space) (UNIX Standard only, see standards(5)) The rest of the line will be output without change.
A <newline> shall be output, then the rest of
the input line.
Output a new-page character before printing.
Overprint previous line.
(UNIX Standard only, see
standards(5)) The <newline> of the previous line shall be replaced with one or more implementation-defined characters that
causes printing to return to column position 1, followed by the rest of the input line. If the + is the first character in
the input, it shall have the same effect as <space>.
Lines beginning with other than the above characters are treated the same as lines beginning with a blank. The first character of a line
is printed. If any such lines appear, an appropriate diagnostic is sent to standard error. This program forces the first line of each
input file to start on a new page.
(UNIX Standard only, see standards(5)) The action of the asa utility is unspecified upon encountering any character other than those listed
above as the first character in a line.
To view the output of FORTRAN programs which use ASA carriage control characters and have them appear in normal form, can be used as a fil-
ter:
The output, properly formatted and paginated, is then directed to the line printer. FORTRAN output previously sent to a file can be viewed
on a user terminal screen by using:
EXTERNAL INFLUENCES
For information about the UNIX standard environment, see standards(5).
Environment Variables
determines the interpretation of text within file as single- and/or multi-byte characters.
determines the language in which messages are displayed.
If or is not specified in the environment or is set to the empty string, the value of is used as a default for each unspecified or empty
variable. If is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of
If any internationalization variable contains an invalid setting, behaves as if all internationalization variables are set to "C". See
environ(5).
International Code Set Support
Single- and multi-byte character code sets are supported.
SEE ALSO
efl(1), f77(1), ratfor(1), standards(5).
STANDARDS CONFORMANCE
asa(1)