![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Deleting Characters at specific position in a line if the line is certain length | Cailet | Shell Programming and Scripting | 10 | 12-17-2008 02:41 PM |
| Length of each line. | senthil_is | Shell Programming and Scripting | 7 | 08-28-2008 09:18 AM |
| line length | Sreejith_VK | Shell Programming and Scripting | 4 | 03-10-2008 10:46 AM |
| AWK - Line length validation | en7smb | Shell Programming and Scripting | 3 | 05-09-2007 12:04 PM |
| How to count the string length | Anshu | UNIX for Dummies Questions & Answers | 2 | 06-15-2006 04:32 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Count line Length
I am trying to write a shell scrip that can give me the line length of a record that was in EBDIC and then converted to ASCII. Everything I try reports 1 yet the length is 2000+. I have tried
echo "Line length : ${#FILE}" echo "FILE" |awk -F, '{print NF}' awk '{lenth(file)}' All I can tell is that there is a charcter or something that says end of line even i it is not end of line. Can anyone give me another way to count every character in a line until the line break? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|