![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| CHAR Array - stuffed with values - with more size than it holds | dhanamurthy | High Level Programming | 3 | 02-14-2008 06:31 PM |
| Help finding/adding up file size... | Stove13 | UNIX for Dummies Questions & Answers | 1 | 02-13-2008 02:26 AM |
| size of char array in c | phani_sree | High Level Programming | 6 | 10-25-2007 04:19 AM |
| finding duplicate files by size and finding pattern matching and its count | jerome Sukumar | Shell Programming and Scripting | 2 | 12-01-2006 04:20 AM |
| size of a char devices | guenter | High Level Programming | 2 | 01-28-2005 07:26 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Finding EOL char is there or not in a big size file
Hi,
I am using ksh. I have to find wether data file has EOL or not. as per my knowledge we can easily find by checking each character. But this is a tedious job as per my requirement because my data file size is very big . It may be in 25-30 MB. So please advice me how i can check wether data file has EOL or not. Thanks in advance |
|
||||
|
Quote:
or do you only want to check the first or last line ? |
|
||||
|
grep -q 'character goes here' bigfile
Unix doesn't have an EOF character, and EOF condition for a file, yes. EOL can mean a newline \n - but since the OP asked for EOL instead of newline, I don't know what is meant. I guess '\n' |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|