02-23-2011
Hi Jill,
How can I view or determine if the linefeed is there are not? What do I need to look for in the file?
---------- Post updated at 10:40 PM ---------- Previous update was at 10:39 PM ----------
when I do a wc -w it returns 3 words less, which make up the trailer record.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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)
Discussion started by: vanand420
3 Replies
2. Shell Programming and Scripting
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)
Discussion started by: panknil
15 Replies
3. Programming
can someone guide me how to have a C pgm to count the number of commented lines? (3 Replies)
Discussion started by: naan
3 Replies
4. Shell Programming and Scripting
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)
Discussion started by: priyadarshini
6 Replies
5. UNIX for Dummies Questions & Answers
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)
Discussion started by: sandeep_1105
1 Replies
6. Shell Programming and Scripting
Hi Everyone,
1.txt
Mon 08 Feb 2010 12:30:44 AM MYT;1265560244;e164:0000116047275464;T;Central;0;
Mon 08 Feb 2010 12:30:46 AM MYT;1265560246;e164:0000116047275464;T;Central;0;
Mon 08 Feb 2010 12:30:48 AM MYT;1265560248;e164:0000116047275464;T;Central;0;
Mon 08 Feb 2010 12:30:50 AM... (1 Reply)
Discussion started by: jimmy_y
1 Replies
7. Shell Programming and Scripting
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)
Discussion started by: scottzx7rr
7 Replies
8. Shell Programming and Scripting
Hi, I need some help with a script I'm trying to write. I have a log file containing references to a number of different webservices. I wish to write a script that will list the webservices with a count as to how many times they appear in the log.
An example of the log file content:
... (2 Replies)
Discussion started by: gman2010
2 Replies
9. Shell Programming and Scripting
I have a text file in which you need to identify the number of lines that looks like this:
awk '{x + +} END {print x}' filename
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 ..
do not know someone help?
Sorry for my... (4 Replies)
Discussion started by: gizmo16
4 Replies
10. Shell Programming and Scripting
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)
Discussion started by: holyearth
3 Replies
LEARN ABOUT HPUX
uuencode
uuencode(4) Kernel Interfaces Manual uuencode(4)
NAME
uuencode - format of an encoded uuencode file
DESCRIPTION
Files output by consist of a header line followed by a number of body lines, and a trailer line. The command ignores any lines preceding
the header or following the trailer (see uuencode(1)). Lines preceding a header must not look like a header.
The header line consists of the word followed by a space, a mode (in octal), another space, and a string which specifies the name of the
remote file.
The body consists of a number of lines, each containing 62 or fewer characters (including trailing new-line). These lines consist of a
character count, followed by encoded characters, followed by a newline.
The character count is a single printing character, which represents an integer. This integer is the number of bytes in the rest of the
line, and always ranges from 0 to 63. The byte count can be determined by subtracting the equivalent octal value of an ASCII space charac-
ter (octal 40) from the character.
Groups of 3 bytes are stored in 4 characters, 6 bits per character. All are offset by a space to make the characters printable. The last
line may be shorter than the normal 45 bytes. If the size is not a multiple of 3, this fact can be determined by the value of the count on
the last line. Extra meaningless data will be included, if necessary, to make the character count a multiple of 4. The body is terminated
by a line with a count of zero. This line consists of one ASCII space.
The trailer line consists of the word on a line by itself.
SEE ALSO
mail(1), uuencode(1), uucp(1).
uuencode(4)