02-11-2010
but to use some commands... i am getting denied with permissions. why is it so if the user account holds the admin privilages.
---------- Post updated at 12:37 AM ---------- Previous update was at 12:34 AM ----------
:set number works fine. but it gives line numbers only for current session. to have the line numbers every session, I need to edit .exrc
what is .exrc is it a file that can be opened with vi and can be edited? if so where it is located?
cos' i tried to open it with
vi *.exrc and added the lines... but it is not saved.
10 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
Hello,
Our RAID and server recently crashed and we are trying to recover our data. The problem appears to be that the Veritas File System/Logical Volume Manger became corrupt on our RAID. We are down to our last option, which is to run some Veritas commands that "may" result in data loss.
... (1 Reply)
Discussion started by: stringman
1 Replies
2. Shell Programming and Scripting
Hi i have wriiten a script which fetches the data from text file, and saves in the output in a text file itself, but i want that the output should save in different columns.
I have the output like:
For Channel:response_time__24.txt
1547 data points
0.339
0.299
0.448
0.581
7.380
... (1 Reply)
Discussion started by: rohitkalia
1 Replies
3. Shell Programming and Scripting
Hi
I need to execute a select statement in a solaris environment with oracle database. The select statement returns number of rows of data.
I need the data to be inserted into a CSV file with proper format. For that we normally use "You have to select all your columns as one big string,... (2 Replies)
Discussion started by: rdhanek
2 Replies
4. Shell Programming and Scripting
i have a file,like
1 3
4 5
6 7
8 9
i want to save it into an array.
and then i want to get every element, because i want to use them to calculate. for example: i want to calculate 1 + 3.
but i cannot reach my goal.
open (FILE, "<", "number");
my @arr;
while (<FILE>){
chomp;... (1 Reply)
Discussion started by: pp-zz
1 Replies
5. Shell Programming and Scripting
Hi,
i have 2 input files which are file1.txt and file2.txt. I need to extract data from file1.txt and file2.txt and save it in file3.txt like example below:-
File1.txt
ID scrap1
Name scrap1
start 1
end 10
ID scrap2
Name scrap2
start 11
end ... (4 Replies)
Discussion started by: redse171
4 Replies
6. Solaris
Hi all,
I have just installed Solaris 10 on an old Fujitsu Primepower 650 which has been wiped clean. I haven't installed anything apart from the OS yet, so the machine is 99% idle.
I get long delays when logging in, first after entering the id then another long delay after entering a valid... (8 Replies)
Discussion started by: longjon
8 Replies
7. Shell Programming and Scripting
Hi all;
I have the following code which gives me kind of what I need:
#!/usr/bin/perl
use Fcntl ':mode';
#
if ($ARGV ne "") {
$filename = $ARGV;
} else {
print "Please specify a file!\n";
exit;
}
#
if... (2 Replies)
Discussion started by: gvolpini
2 Replies
8. Shell Programming and Scripting
Hi Guys,
I have blank file A.txt
I will run the script xyz.sh
First i want to open a.txt file...
Now i will enter some data like
XYZ
ABC
PQR
..
Save it and keep continue my script....
END of my script.
Thanks (1 Reply)
Discussion started by: asavaliya
1 Replies
9. UNIX for Advanced & Expert Users
My requirement is to read a column data from a file & save it in a variable for each row & process it. I am using the below code-
Leadlines="$TGTFILE/Error.txt">>$log_file
while read line
do
id = ` echo $line | cut -d "," -f1 `
email = ` echo $line | cut -d "," -f2 `
-----------
done
My... (2 Replies)
Discussion started by: saga20
2 Replies
10. UNIX for Dummies Questions & Answers
If I have a A.log
1 Air Flow Monitor : 34.070 Degrees C
2 Air Flow Monitor : 41.730 Degrees C
3 Air Flow Monitor : 35.340 Degrees C
4 Air Flow Monitor : 33.370 Degrees C
5 Air Flow Monitor : 36.770 Degrees C
6 Air Flow Monitor : 45.910 Degrees C
7 Air Flow Monitor ... (1 Reply)
Discussion started by: sabercats
1 Replies
ELVIS(1) General Commands Manual ELVIS(1)
NAME
elvis, ex, vi - The editor
SYNOPSIS
elvis [flags] [+cmd] [files...]
DESCRIPTION
Elvis is a text editor which emulates vi/ex.
On systems which pass the program name as an argument, such as Unix and Minix, you may also install elvis under the names "ex", "vi",
"view", and "input". These extra names would normally be links to elvis; see the "ln" shell command.
When elvis is invoked as "vi", it behaves exactly as though it was invoked as "elvis". However, if you invoke elvis as "view", then the
readonly option is set as though you had given it the "-R" flag. If you invoke elvis as "ex", then elvis will start up in the colon com-
mand mode instead of the visual command mode, as though you had given it the "-e" flag. If you invoke elvis as "input" or "edit", then
elvis will start up in input mode, as though the "-i" flag was given.
OPTIONS
-r To the real vi, this flag means that a previous edit should be recovered. Elvis, though, has a separate program, called elvrec(1),
for recovering files. When you invoke elvis with -r, elvis will tell you to run elvrec.
-R This sets the "readonly" option, so you won't accidentally overwrite a file.
-t tag This causes elvis to start editing at the given tag.
-m [file]
Elvis will search through file for something that looks like an error message from a compiler. It will then begin editing the
source file that caused the error, with the cursor sitting on the line where the error was detected. If you don't explicitly name a
file, then "errlist" is assumed.
-e Elvis will start up in colon command mode.
-v Elvis will start up in visual command mode.
-i Elvis will start up in input mode.
-w winsize
Sets the "window" option's value to winsize.
+command or -c command
If you use the +command parameter, then after the first file is loaded command is executed as an EX command. A typical example
would be "elvis +237 foo", which would cause elvis to start editing foo and then move directly to line 237. The "-c command" vari-
ant was added for UNIX SysV compatibility.
FILES
/tmp/elv*
During editing, elvis stores text in a temporary file. For UNIX, this file will usually be stored in the /tmp directory, and the
first three characters will be "elv". For other systems, the temporary files may be stored someplace else; see the version-specific
section of the documentation.
tags This is the database used by the :tags command and the -t option. It is usually created by the ctags(1) program.
.exrc or elvis.rc
On UNIX-like systems, a file called ".exrc" in your home directory is executed as a series of ex commands. A file by the same name
may be executed in the current directory, too. On non-UNIX systems, ".exrc" is usually an invalid file name; there, the initializa-
tion file is called "elvis.rc" instead.
SEE ALSO
ctags(1), ref(1), virec(1), elvis(9).
Elvis - A Clone of Vi/Ex, the complete elvis documentation.
BUGS
There is no LISP support. Certain other features are missing, too.
Auto-indent mode is not quite compatible with the real vi. Among other things, 0^D and ^^D don't do what you might expect.
Long lines are displayed differently. The real vi wraps long lines onto multiple rows of the screen, but elvis scrolls sideways.
AUTHOR
Steve Kirkendall
kirkenda@cs.pdx.edu
Many other people have worked to port elvis to various operating systems. To see who deserves credit, run the :version command from within
elvis, or look in the system-specific section of the complete documentation.
ELVIS(1)