I have a text file in which you need to identify the number of lines that looks like this:
The problem is that I do not know how this data to any variable in which then need to continue to work in a cycle for ..
Hey guys. My goal here is to count the number of .dat files in in a directory(28 files). If 28 files exist I am ok. Having trouble doing this. Any help would b e greatly appreciated.
#!/usr/bin/ksh
#=============================================================================
### Define local... (3 Replies)
Hi Friends
Please help me out to count number of lines in binary file. It gives some wrong(less) using wc -l. Is there any other way to count lines of binary file.
Thanks. (3 Replies)
dear all,
i want to count the lines of a flat(text) file using awk.i have tried with {print NR}
but its taking lot of time for a big file like 2GB file size.
so i want better efficiency...so can any body please help me with some other and better awk code?
Regards,
Pankaj (15 Replies)
Hi,
Im doing a script to find the number of lines included inside a file newly. These lines are in between #ifdef FLAG1 and #else or #endif or #else and #endif.
I tried like this,
awk '/#ifdef Flag1/,/#e/{print}' aa.c | wc -l
awk '/#ifndef Flag1/,/#endif/{print}' aa.c | awk... (6 Replies)
Dear Members,
I want to count the number of lines in a file; for that i am using the following command :
FILE_LINE_COUNT=`wc -l $INT_IN/$RAW_FILE_NAME`
if i do an echo on FILE_LINE_COUNT then i get
241 /home/data/testfile.txt
I don't want the directory path to be displayed. Variable... (1 Reply)
Guys I am having a problem with being able to do a count of entries in a file. What I am trying to get a count of the total number of members that are listed in the files. So I need to pull the number of the lines after members. I tried using sed but it only seems to count the first... (7 Replies)
I have a file that I need to merge with another like file. Normally I remove the trailer reocrd and merge the file and update the trailer record of the second file. I did a WC -l on the first file before I removed the trailer record, and again afterwards. The count came back the same. I opened the... (6 Replies)
Hello,
Currently I have:
FILE=/home/file.txt
if ;
then
echo "File $FILE exists"
else
echo "File $FILE does not exist"
fi
exit
I would like to make it such that if the file *does* exist, it performs a wc -l count of the file and then if the count is greater than 3 performs... (3 Replies)
Hi All
I am checking for the presence of certain no of files in a directory. Only if the required no of files are present should I continue with my processing.
For e.g. in the temp directory below, there are 4 files of the format sample_aa(bb)(cc)(dd)_test. I need to check the count of these... (17 Replies)
Discussion started by: swasid
17 Replies
LEARN ABOUT V7
debconf-getlang
DEBCONF-GETLANG(1) Debconf DEBCONF-GETLANG(1)NAME
debconf-getlang - extract a language from a templates file
SYNOPSIS
debconf-getlang lang master [translation]
debconf-getlang --stats master translation [...]
DESCRIPTION
Note: This utility is deprecated; you should switch to using the po-debconf package.
This program helps make and manage translations of debconf templates. There are basically three situations in which this program might be
called:
A translation is just being started.
You want to provide the translator with a file they can work on that has the English fields from your templates file, plus blank Field-
ll fields for the target language that they can fill in.
To do this, run the program with first parameter being the code for the language that is being translated to, and the second parameter
being the filename of the English templates file.
A translation is well under way.
You have changed some English text, or added more items to your templates file, and you want to send the translators a file with the
English text plus their current translations (or you are the translator, and you want to generate such a file for your own use).
To accomplish this, run the program with the first parameter being the the code for the language that is being translated to, the
second parameter being the filename of the master English templates file, and the third parameter being the filename of the current
translated file.
When run this way, the program is smart enough to notice fuzzy translations. For example a fuzzy Description will be output as
Description-<lang>-fuzzy, and a new, blank Description-<lang> will be added. Translators should remove the -fuzzy fields as they
correct the fuzzy translations.
Checking the status of a translation
To check the status of a translation, use the --status flag, and pass the english template file as the first parameter, and all the
other translated templates after that. It will output statistics for each of them. For example:
debconf-getlang --stats debian/templates debian/templates.*
NOTE
Note that the text in the generated templates may be word-wrapped by debconf.
SEE ALSO debconf-mergetemplate(1)AUTHOR
Joey Hess <joeyh@debian.org>
2012-09-10 DEBCONF-GETLANG(1)