-print as an action in find prints the file name(s) found, not their contents. First and simplest approach:
You may need additional action to also print files' names, some empty lines, or similar.
Hello,
What are the options to print the contents of a directory in FIFO fashion?
I have searched the forum for something relative to this question and found no answers.
If there is a way please advise, if it has already been answered, please provide a link to the post.
Alternately if... (1 Reply)
hello
have a file1
H87I
Y788O
T347U
J23U
and
file2 J23U U887Y I99U T556U
file3 I99O J99T F557J
file4 N99I T666U R55Y
file5 H87I T347U
file6 H77U R556Y E44T
file7 Y788O K98U H8I
May be using script we can use file1 to search for all the files
and have the output
H87I file5... (3 Replies)
Hello,
I have a file which has user information. Each user has 2 variables with the same name like
Email: testuser1
Email: testuser1@test.com
Email: testuser2
Email: testuser2@test.com
My intention is to delete the ones without the '@' symbol. When I run this statement awk '/^Email:/&&!/@/'... (6 Replies)
Hi,
Is there anyway to print contents of any file ( say log files that grow automatically) within some timeframe ( comparing with current time), say
print contents of the added in:
1) last 2 hr
2) last 45 min
3) last 3 hrs 47 min (3 Replies)
Hi all
i need your help .. I am having a multiple file in directory and i have find out the Rcopy word from these files and need to print those files which contains the Rcopy word
Thanks and regards
Vijay sahu (2 Replies)
Hi,
can someone help me.
I have some files and search a content in this files. If i have a hit I will print a output:
filename:content
But are more hits in one file: The output is always filename:content
E.G. Seach about "three"
file1 {one, two, three, four, three}
file2... (5 Replies)
Hi,
Need help in writing a script to read the contents of this file test
Test
00a
00b
00c
00d
00e
00f
where it need to read each line to give a display such as
form meta from dev 00a , config=Striped; add dev 00b:00f to meta 00a
Can any one help me in writing this script (2 Replies)
I have a file called po.txt. Here is the content of the file:
<!DOCTYPE PurchaseOrderMessage (View Source for full doctype...)>
- <PurchaseOrder>
- <Header>
<MessageId>cdb3062b-685b-4cd5-9633-013186750e10</MessageId>
<Timestamp>2011-08-01T13:47:23.536-04:00</Timestamp>
</Header>
-... (4 Replies)
Hi Friends,
This is the only solution to my task. So, any help is highly appreciated.
I have a file
cat input1.bed
chr1 100 200 abc
chr1 120 300 def
chr1 145 226 ghi
chr2 567 600 unix
Now, I have another file by name
input2.bed (This file is a binary file not readable by the... (7 Replies)
Discussion started by: jacobs.smith
7 Replies
LEARN ABOUT LINUX
see
RUN-MAILCAP(1) Run Mailcap Programs RUN-MAILCAP(1)NAME
run-mailcap, view, see, edit, compose, print - execute programs via entries in the mailcap file
SYNOPSIS
run-mailcap --action=ACTION [--option[=value]] [MIME-TYPE:[ENCODING:]]FILE [...]
The see, edit, compose and print versions are just aliases that default to the view, edit, compose, and print actions (respectively).
DESCRIPTION
run-mailcap (or any of its aliases) will use the given action to process each mime-type/file in turn. Each file is specified as its mime-
type, its encoding (e.g. compression), and filename together, separated by colons. If the mime-type is omitted, an attempt to determine
the type is made by trying to match the file's extension with those in the mime.types files. If the encoding is omitted, it will also be
determined from the file's extensions. Currently supported encodings are gzip (.gz), bzip (.bz), bzip2 (.bz2), and compress (.Z). A file-
name of "-" can be used to mean "standard input", but then a mime-type must be specified.
Both the user's files (~/.mailcap; ~/.mime.types) and the system files (/etc/mailcap; /etc/mime.types) are searched in turn for informa-
tion.
EXAMPLES
see picture.jpg
print output.ps.gz
compose text/html:index.htm
extract-mail-attachment msg.txt | see image/tiff:gzip:-
OPTIONS
All options are in the form --<opt>=<value>.
--action=<action>
Performs the specified action on the files. Valid actions are view, cat (uses only "copiousoutput" rules and sends output to STD-
OUT) , compose, composetyped, edit and print. If no action is specified, the action will be determined by how the program was
called.
--debug
Turns on extra information to find out what is happening.
--nopager
Ignores any "copiousoutput" directive and sends output to STDOUT.
--norun
Displays the found command without actually executing it.
SEE ALSO update-mime(8)AUTHOR
run-mailcap (and its aliases) was written by Brian White <bcwhite@pobox.com>.
COPYRIGHT
run-mailcap (and its aliases) is in the public domain (the only true "free").
Debian Project 1st Jan 2008 RUN-MAILCAP(1)