10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
My file (the output of an experiment) starts off looking like this,
Subjects incorporated to date: 001
Data file started on machine PKSHS260-05CP
Subject 1,... (9 Replies)
Discussion started by: samonl
2. Shell Programming and Scripting
I have a log file (log.txt) that which contains lines of date/time.
I need to create a script to extract a CSV file (out.csv) that gets all the sequential times (with only 1 minute difference) together by stating the start time and end time of this period.
Sample log file (log.txt)
... (7 Replies)
Discussion started by: Mr.Zizo
3. Shell Programming and Scripting
grep -n SCHEMA > header_file2.txt (2 Replies)
Discussion started by: Veera_V
4. Shell Programming and Scripting
Hello fellow awkers and seders:
need to figure out a way to ensure a software deployment has completed by checking its trace file in which I can store the deployment results as follows:
===== Summary - Deploy Result - Start ===== ===== Summary - Deploy Result - End =====... (1 Reply)
Discussion started by: ux4me
5. UNIX for Dummies Questions & Answers
Hi, I have a file1 of many long sequences, each preceded by a unique header line. file2 is 3-columns list: headers name, start position, end position. I'd like to extract the sequence region of file1 specified in file2.
Based on a post elsewhere, I found the code:
awk... (2 Replies)
Discussion started by: pathunkathunk
6. Shell Programming and Scripting
I have hundreds of files to process. In each file
I need to look for a pattern then
extract value(s) from next line and then
search for value(s) selected from point (2) in the same file at a specific position.
HEADER ELECTRON TRANSPORT 18-MAR-98 1A7V
TITLE CYTOCHROME... (7 Replies)
Discussion started by: AshwaniSharma09
7. Shell Programming and Scripting
what i want to do in perl is i should give the date at run time .Suppose date given is 23/12/2011(mm/dd/yyyy) the perl script shold find week start date, week end date, previous week start date,end date,next week start date, end date. In this case
week start date will be-:12/19/2011... (2 Replies)
Discussion started by: parthmittal2007
8. UNIX for Dummies Questions & Answers
I am working on a scraping project and I am stuck at this tiny grep pattern match.
Sample text :
FPA List. FPA List. FPA List. FPA List. FPA List. FPA List. FPA List. FPA List.
ABC Personal Planning
Catherine K. Wat
Catherine K. Wat
Catherine K. Wat
IFRAME:... (8 Replies)
Discussion started by: kkiran
9. UNIX for Dummies Questions & Answers
I have the following contents in an XML file
<Details = "Sample Details">
.............. (4 Replies)
Discussion started by: sushant172
10. Shell Programming and Scripting
This is my first post, please be nice. I have tried to google and read different tutorials.
The task at hand is:
Input file input.txt (example)
From this file the task is to grep the -E- and -W- strings that are unique and write a new file... (5 Replies)
Discussion started by: TestTomas
MU-EXTRACT(1) General Commands Manual MU-EXTRACT(1)
mu_extract - display and save message parts (attachments), and open them with other tools.
mu extract [options] <file> mu extract [options] <file> <pattern>
mu extact is the mu sub-command for extracting MIME-parts (e.g., attachments) from mail messages. It works on message files, and does not
require the message to be indexed in the database.
For attachments, the file name used when saving it, is the name of the attachment in the message. If there is no such name, or when saving
non-attachment MIME-parts, a name is derived from the message-id of the message.
If you specify a pattern (a case-insensitive regular expression) as the second argument, all attachments with filenames matching that pat-
tern will be extracted. The regular expressions are Perl-compatible (as per the PCRE-library).
Without any options, mu extract simply outputs the list of leaf MIME-parts in the message. Only 'leaf' MIME-parts (including RFC822 attach-
ments) are considered, multipart/* etc. are ignored.
save all MIME-parts that look like attachments.
save all non-multipart MIME-parts.
only consider the following numbered parts (comma-separated list).The numbers for the parts can be seen from running mu extract
without any options but only the message file.
save the parts in the target directory rather than the current working directory.
overwrite existing files with the same name; by default overwriting is not allowed.
--play Try to 'play' (open) the attachment with the default
application for the particular file type. On MacOS, this uses the open program, on other platforms is uses xdg-open. You can choose
a different program by setting the MU_PLAY_PROGRAM environment variable.
To display information about all the MIME-parts in a message file:
$ mu extract msgfile
To extract MIME-part 3 and 4 from this message, overwriting existing files with the same name:
$ mu extract --parts=3,4 --overwrite msgfile
To extract all files ending in '.jpg' (case-insensitive):
$ mu extract msgfile '.*.jpg'
To extract an mp3-file, and play it in the the default mp3-playing application.
$ mu extract --play msgfile 'whoopsididitagain.mp3'
Please report bugs if you find them: http://code.google.com/p/mu0/issues/list
Dirk-Jan C. Binnema <firstname.lastname@example.org>
User Manuals February 2012 MU-EXTRACT(1)