Hi All,
Im having a file named logserver.txt. I want a perl script to take a backup of that file, along with the datestamp; move the file to a different location or empty the contents of the file after backup.
Remember, the file gets generated when the related service starts. My condition is... (14 Replies)
Basically to illuminate i want to take a file with mutliple lines,
C:\searching4theseletters.txt
a
b
c
Read this into an array
@ARRAY
and then use this to compare against another file
C:\inputletters.txt
b
o
a
c
n
a (9 Replies)
Hello,
Here is what I am trying to accomplish.
I am going to have one directory in which there will be files of varying types (Excel, Word, PPT, and possible others), and I need to be able to be bundle however many files there are in there together in to one file to be used as an e-mail... (3 Replies)
Hi
My requirement is to read the contents of a fixed length file and validate the same.
But am not able to read the contents of the file and when i tried it to print i get <blank> as an output...
I used the below satatements for printing the contents
... (3 Replies)
I have a script which updates the users e-mail address according to wherever the users type in the browser. The script does other stuffs but this what i am struggling with ..lol. Basically, we are using the command below to try to update the e-mail, however since the e-mail address has "@" the perl... (2 Replies)
Hi,
I have the file like this:
#Contents of file 1 are:
Dec 10 12:33:44 User1 Interface: Probe
Dec 10 12:33:47 uSER1 SOME DATA
Dec 10 12:33:47 user1 Interface: MSGETYPE
Dec 10 12:34:48 user1 ID: 10.
Dec 10 12:33:55 user1 Interface: MSGTYPE
Dec 10 12:33:55 user1 Id: 9
... (1 Reply)
I am looking to create a perl script which will take numbers from a simple text file, convert them from decimal to hex, and then rewrite those values in the file or create a new file with the hex numbers(whichever's easier).
My text document for example would be something as simple as
1312... (6 Replies)
HI
I'm terribly new to perl .. I;ve been trying to use this command to search and replace entries in a file
I tried this and it works
perl -p -i -e 's/old/new/' filename
Problem is that I have a list of email addresses and I need to serach and replace the entire email address as my... (5 Replies)
Hi one of the output of the command is as below
# sed -n "/CCM-ResourceHealthCheck:/,/---------/{/CCM-ResourceHealthCheck:/d;/---------/d;p;}" Automation.OutputZ$zoneCounter | sed 's/$/<br>/'
Resource List : <br>
*************************** 1. row ***************************<br>
... (2 Replies)
I have a function which does awk proceessing
sub mergeDescription {
system (q@awk -F'~' '
NR == FNR {
A = $1
B = $2
C = $0
next
}
{
n = split ( C, V, "~" )
if... (3 Replies)
Discussion started by: crypto87
3 Replies
LEARN ABOUT XFREE86
git-mailinfo
GIT-MAILINFO(1) Git Manual GIT-MAILINFO(1)NAME
git-mailinfo - Extracts patch and authorship from a single e-mail message
SYNOPSIS
git mailinfo [-k|-b] [-u | --encoding=<encoding> | -n] [--[no-]scissors] <msg> <patch>
DESCRIPTION
Reads a single e-mail message from the standard input, and writes the commit log message in <msg> file, and the patches in <patch> file.
The author name, e-mail and e-mail subject are written out to the standard output to be used by git am to create a commit. It is usually
not necessary to use this command directly. See git-am(1) instead.
OPTIONS-k
Usually the program removes email cruft from the Subject: header line to extract the title line for the commit log message. This option
prevents this munging, and is most useful when used to read back git format-patch -k output.
Specifically, the following are removed until none of them remain:
o Leading and trailing whitespace.
o Leading Re:, re:, and :.
o Leading bracketed strings (between [ and ], usually [PATCH]).
Finally, runs of whitespace are normalized to a single ASCII space character.
-b
When -k is not in effect, all leading strings bracketed with [ and ] pairs are stripped. This option limits the stripping to only the
pairs whose bracketed string contains the word "PATCH".
-u
The commit log message, author name and author email are taken from the e-mail, and after minimally decoding MIME transfer encoding,
re-coded in the charset specified by i18n.commitencoding (defaulting to UTF-8) by transliterating them. This used to be optional but
now it is the default.
Note that the patch is always used as-is without charset conversion, even with this flag.
--encoding=<encoding>
Similar to -u. But when re-coding, the charset specified here is used instead of the one specified by i18n.commitencoding or UTF-8.
-n
Disable all charset re-coding of the metadata.
-m, --message-id
Copy the Message-ID header at the end of the commit message. This is useful in order to associate commits with mailing list
discussions.
--scissors
Remove everything in body before a scissors line. A line that mainly consists of scissors (either ">8" or "8<") and perforation (dash
"-") marks is called a scissors line, and is used to request the reader to cut the message at that line. If such a line appears in the
body of the message before the patch, everything before it (including the scissors line itself) is ignored when this option is used.
This is useful if you want to begin your message in a discussion thread with comments and suggestions on the message you are responding
to, and to conclude it with a patch submission, separating the discussion and the beginning of the proposed commit log message with a
scissors line.
This can be enabled by default with the configuration option mailinfo.scissors.
--no-scissors
Ignore scissors lines. Useful for overriding mailinfo.scissors settings.
<msg>
The commit log message extracted from e-mail, usually except the title line which comes from e-mail Subject.
<patch>
The patch extracted from e-mail.
GIT
Part of the git(1) suite
Git 2.17.1 10/05/2018 GIT-MAILINFO(1)