Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I must use the awk file....I have thought this...we know that every character is one byte, So the only thing that i must do is to count the characters. DO u agree?
Originally posted by alaios I must use the awk file....I have thought this...we know that every character is one byte, So the only thing that i must do is to count the characters. DO u agree?
I find this aproach rather awkward :}
wc is the way to go ;)
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
Read the awk man page, if it can be done it's in there. Normally I would be happy to help out, but without a real reason to use the wrong tool, I can't seem to find the time. ;) wc is perfect, but even Perl is a better tool to use than awk, for this.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.