01-17-2013
Do you mean built-in variable FILENAME? What is the error?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
FileA
chr1 31237964 NP_001018494.1 PUM1 M340L
chr1 31237964 NP_055491.1 PUM1 M340L
chr1 33251518 NP_037543.1 AK2 H191D
chr1 33251518 NP_001616.1 AK2 H191D
chr1 57027345 NP_001004303.2 C1orf168 P270S
FileB
chr1 ... (9 Replies)
Discussion started by: genehunter
9 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I'd like to process multiple files. For example:
file1.txt
file2.txt
file3.txt
Each file contains several lines of data. I want to extract a piece of data and output it to a new file.
file1.txt ----> newfile1.txt
file2.txt ----> newfile2.txt
file3.txt ----> newfile3.txt
Here is... (3 Replies)
Discussion started by: Liverpaul09
3 Replies
3. UNIX for Dummies Questions & Answers
I have two files in UNIX.
1st file is Entity and Second File is References. 1st File has only one column named Entity ID and 2nd file has two columns Entity ID | Person ID.
I want to produce a output file where entity id's are matching in both the files.
Entity File
624197
624252
624264... (4 Replies)
Discussion started by: PRS
4 Replies
4. Shell Programming and Scripting
I have two (or more, to make it generic) csv files. Each line contains words separated by comma. None of words have any space. The number of words per line is not fixed. Some may have one, and some may have 12... The number of lines per file is also not fixed.
What I need is to find common words... (1 Reply)
Discussion started by: nick2011
1 Replies
5. Shell Programming and Scripting
Hi Friends,
I am new to Shell Scripting and need your help in the below situation.
- I have two files (File 1 and File 2) and the contents of the files are mentioned below.
- "Application handle" is the common field in both the files.
(NOTE :- PLEASE REFER TO THE ATTACHMENT "Compare files... (2 Replies)
Discussion started by: Santoshbn
2 Replies
6. Shell Programming and Scripting
Hi
I have two sample files attached here
one file contain entries in one column and second file contains entries in many columns
I have to match entries of first file with entries in secon d file form secon column onwards and if matches write "match" in front of it.
I tried several... (11 Replies)
Discussion started by: manigrover
11 Replies
7. UNIX for Dummies Questions & Answers
I am trying to extract common list of Organisms from different files
For example I took 3 files and showed expected result. In real I have more than 1000 files. I am aware about the useful use of awk and grep but unaware in depth so need guidance regarding it.
I want to use awk/ grep/ cut/... (7 Replies)
Discussion started by: macmath
7 Replies
8. Shell Programming and Scripting
Good morning all,
I have a problem that is one step beyond a standard awk compare.
I would like to compare three files which have several thousand records against a fourth file. All of them have a value in each row that is identical, and one value in each of those rows which may be duplicated... (1 Reply)
Discussion started by: nashton
1 Replies
9. UNIX for Beginners Questions & Answers
Im having an issue when trying to replace the first column with a new set of values in multiple files. The results from the following code only replaces the files with the last set of values in val.txt. I want to replace all the files with all the values.
for date in {1..31}
do
for val in... (1 Reply)
Discussion started by: ncwxpanther
1 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
i have below two files.
FILE:
NAME="/dev/sda" TYPE="disk" SIZE="60G" OWNER="root" GROUP="disk" MODE="brw-rw----" PKNAME="" MOUNTPOINT=""
NAME="/dev/sda1" TYPE="part" SIZE="500M" OWNER="root" GROUP="disk" MODE="brw-rw----" PKNAME="/dev/sda" MOUNTPOINT="/boot"
NAME="/dev/sda2"... (3 Replies)
Discussion started by: balu1234
3 Replies
LEARN ABOUT PHP
emacsclient
EMACSCLIENT(1) General Commands Manual EMACSCLIENT(1)
NAME
emacsclient - tells a running Emacs to visit a file
SYNOPSIS
emacsclient [options] files ...
DESCRIPTION
This manual page documents briefly the emacsclient command. Full documentation is available in the GNU Info format; see below. This man-
ual page was originally written for the Debian GNU/Linux distribution, but is not specific to that system.
emacsclient works in conjunction with the built-in Emacs server.
You can either call emacsclient directly or let other programs run it for you when necessary. On GNU and Unix systems many programs con-
sult the environment variable EDITOR (sometimes also VISUAL) to obtain the command used for editing. Thus, setting this environment vari-
able to 'emacsclient' will allow these programs to use an already running Emacs for editing. Other operating systems might have their own
methods for defining the default editor.
For emacsclient to work, you need an already running Emacs with a server. Within Emacs, call the functions `server-start' or `server-
mode'. (Your `.emacs' file can do this automatically if you add either `(server-start)' or `(server-mode 1)' to it.)
When you've finished editing the buffer, type `C-x #' (`server-edit'). This saves the file and sends a message back to the `emacsclient'
program telling it to exit. The programs that use `EDITOR' wait for the "editor" (actually, `emacsclient') to exit. `C-x #' also checks
for other pending external requests to edit various files, and selects the next such file.
If you set the variable `server-window' to a window or a frame, `C-x #' displays the server buffer in that window or in that frame.
OPTIONS
The programs follow the usual GNU command line syntax, with long options starting with two dashes (`-').
-nw, -t, --tty
open a new Emacs frame on the current terminal
-c, --create-frame
create a new frame instead of trying to use the current Emacs frame
-e, --eval
do not visit files but instead evaluate the arguments as Emacs Lisp expressions.
-n, --no-wait
returns immediately without waiting for you to "finish" the buffer in Emacs.
-s, --socket-name=FILENAME
use socket named FILENAME for communication.
-f, --server-file=FILENAME
use TCP configuration file FILENAME for communication. This can also be specified via the `EMACS_SERVER_FILE' environment variable.
-a, --alternate-editor=EDITOR
if the Emacs server is not running, run the specified editor instead. This can also be specified via the `ALTERNATE_EDITOR' envi-
ronment variable. If the value of EDITOR is the empty string, then Emacs is started in daemon mode and emacsclient will try to con-
nect to it.
-d, --display=DISPLAY
tell the server to display the files on the given display.
-V, --version
print version information and exit
-H, --help
print this usage information message and exit
SEE ALSO
The program is documented fully in Using Emacs as a Server available via the Info system.
AUTHOR
This manual page was written by Stephane Bortzmeyer <bortzmeyer@debian.org>, for the Debian GNU/Linux system (but may be used by others).
COPYING
This manual page is in the public domain.
EMACSCLIENT(1)