11-19-2015
I am totally confused.
There is nothing in your code (which you imply is working but is running too slow), that explains why the output has abv040,61 through abv040,70 when abv040 does not appear anywhere in any of the input files and the values 61 through 70 do not appear anywhere in any of the input files.
Furthermore, your code seems to only output two fields; not five.
And, there is no line in File3 containing the string (or date) 20150825; so why is there a line in the output containing that string?
Please explain more clearly what you are trying to do.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I'm new to perl,
My requirement is to check if particular file exists.
e.g. filename.txt, filename1.txt, filename2.txt etc
I tried the below code:-
my $var1 = "filename.txt"
if ( -e ($var1 = ~ /file\w/))
{
print "File found \n";
}
else
{ print "File not found \n";
}
... (0 Replies)
Discussion started by: doitnow
0 Replies
2. Programming
Hi,
I have large files with fixed length fields or fields seperated by delimeter. I would like to do validation on some or all fields to check for numeric or date or characters etc.. I would like to write this in C++. Please let me know if any one have any ideas on this.
Thanks for all... (2 Replies)
Discussion started by: rameshmelam
2 Replies
3. UNIX for Dummies Questions & Answers
Hi Gurus,
I have a file like below.. I have to match each with predefined pattern. If matches then have to write the entire record to a separate file. If not make the value as NULL and write the entire record into another file.
| is the delimiter
ravi123|2344|M
R123Vi|2345|F... (8 Replies)
Discussion started by: pvksandeep
8 Replies
4. Shell Programming and Scripting
I have a huge file that has roughly 30304 lines. I need to extract specific info from that file. For example,
Box 1 > *aaaaaaaajjjj*
> hbbvjvj
> jdnnfddllll
> *dgdfhfekwjh*
Box 2 > *aaaaaaa'aj'jjj*
> dse hkjuejef bfdw
> dyeee
> dsewq
> *dgdfhfekwjh*
>feweiuei
Box 3 > *aaaa"aaaaj"jjj*
>... (25 Replies)
Discussion started by: Ernst
25 Replies
5. Shell Programming and Scripting
Hi,
file -> temp.txt
cat temp.txt
/home/pradeep/123/a_asp.html
/home/pradeep/123/a_asp1.html
/home/pradeep/435/a_asp2.html
/home/pradeep/arun/abc/a_dfr.html
/home/pradeep/arun/123/a_kir.html
/home/pradeep/123/arun/a_dir.html
....
....
..
i need to get a_*.html(bolded strings... (4 Replies)
Discussion started by: pradebban
4 Replies
6. Shell Programming and Scripting
Hi, I have 2 files that I have modified to basically match each other, however I want to determine what (if any) line in file 1 does not exist in file 2. I need to match column $1 and $2 as a single string in file1 to $1 and $2 in file2 as these two columns create a match.
I'm stuck in an AWK... (9 Replies)
Discussion started by: right_coaster
9 Replies
7. Shell Programming and Scripting
Please help me in this issue.
I am unable to get the job,seems the awk not browsing the files.
Please find my tries below.
I have attached two files :
1.tobesearched.txt - a glimpse of a huge log file.
2.searchstring.txt - searching keys.
these are the two scripts i tried writing:
... (7 Replies)
Discussion started by: deboprio
7 Replies
8. Shell Programming and Scripting
Hello ,
I have comma delimited file with over 20 fileds that i need to do some validations on. I have to check if certain fields are null and then write the line containing the null field into a new file and then delete the line from the current file.
Can someone tell me how i could go... (2 Replies)
Discussion started by: goddevil
2 Replies
9. UNIX for Dummies Questions & Answers
Hi ladies and gentleman.. I have two text file with me. I need to replace one of the file content to another file if one both files have a matching pattern.
Example:
text1.txt:
ABCD 1234567,HELLO_WORLDA,HELLO_WORLDB
DCBA 3456789,HELLO_WORLDE,HELLO_WORLDF
text2.txt:
XXXX,ABCD... (25 Replies)
Discussion started by: bananamen
25 Replies
10. Shell Programming and Scripting
Hi,
I have input file whose first column needs(match.txt) to be matched with the first column of the input file with min & max length as defined in match.txt. But conditions are not matching. Please help on the changes in the code below as for multiple enteries in match.txt complete match.txt will... (3 Replies)
Discussion started by: siramitsharma
3 Replies
LEARN ABOUT DEBIAN
xview_xgettext
xgettext(1) General Commands Manual xgettext(1)
NAME
xgettext - conditionally extract strings from C programs
SYNOPSIS
xgettext -d [ cmnopvhP ] [ -odirectory-prefix ] [ -xexclude-list ] [ filename ... ]
xgettext [ -amopvhP ] [ -xexclude-list ] [ filename ... ]
DESCRIPTION
xgettext is used to automate the creation of portable message files. A portable message file contains copies of "C" strings that are found
in "C" source code in filename. When the -d option is specified, xgettext places the extracted strings in the file name.po. name is
either the domain specified in a dgettext call, or messages.po for strings extracted from gettext and textdomain calls. If the -d flag is
not specified, xgettext places all the strings in messages.po. The portable message file can be used as input to the msgfmt(1) utility,
which will produce a binary form of the message file than can be used at application run-time.
OPTIONS
-a Extract ALL strings, not just those found in gettext, dgettext, and textdomain calls.
-cflag Comments beginning with flag filename on the first line of the comment are added to file filename as # delimited comments.
-d Produce duplicates. Does not sort output when writing the portable message file and will not overwrite existing output files.
Places output from each domain specified in a dgettext call into a separate file named for the domain, ie. name.po
-cflag Comments beginning with flag filename on the first line of the comment are added to file filename as # delimited comments.
-mstring Causes xgettext to fill in the msgstr line of the portable message files it produces. xgettext uses the corresponding msgid
string extracted from the "C" file, appending string. Useful for debugging purposes.
-n Add # delimited line number comments to output file indicating the line number in the source file where each extracted string is
encountered.
-ofilename
rename the default output file from messages.po to filename.
-ppathname
Specify the directory where the output files will be placed. This option overrides the current working directory.
-xfilename
Specify a file that contains a list of strings that are not be extracted from the input files. Each string to be excluded must
appear on a line by itself in the file filename.
-P include strings in pre-processor statements.
-v Verbose mode.
-h Print a help message on standard output.
FILES
messages.po is always created, but may be empty.
SEE ALSO
msgfmt(1), xstr(1), gettext, dgettext, textdomain(3).
14 Sep 1990 xgettext(1)