Sponsored Content
Top Forums Shell Programming and Scripting Finding EOL char is there or not in a big size file Post 302076579 by vanackpt on Wednesday 14th of June 2006 10:10:03 AM
Old 06-14-2006
I think you mix two things.
There is a EOL at the end of each line and there is something like EOF (end of file).
As far as i understand, you mean the EOF character, is this so ?
 

10 More Discussions You Might Find Interesting

1. Programming

size of a char devices

hi i want to write a simple io-benchmark for raw devices, especially for harddisks, vx-volumes and md-volumes on solaris. is there a unix system call to get the size of the device? the 'stat' system call reports the size for regaular files but not for block or devices. On Solaris the... (2 Replies)
Discussion started by: guenter
2 Replies

2. Shell Programming and Scripting

bash script working for small size files but not for big size files.

Hi, I have one file stat. Stat file contents are as follows: for example. H50768020040913,00260100,507680,13,0000000643,0000000643,00000,0000 H50769520040808,00260100,507695,13,0000000000,0000000000,00000,0000 H50770620040611,00260100,507706,13,0000000000,0000000000,00000,0000 Now i... (1 Reply)
Discussion started by: davidpreml
1 Replies

3. Shell Programming and Scripting

finding duplicate files by size and finding pattern matching and its count

Hi, I have a challenging task,in which i have to find the duplicate files by its name and size,then i need to take anyone of the file.Then i need to open the file and find for more than one pattern and count of that pattern. Note:These are the samples of two files,but i can have more... (2 Replies)
Discussion started by: jerome Sukumar
2 Replies

4. Programming

size of char array in c

i have to store a data more than 100000. i don't know the size of the data whether it may be 100000 or 1000000. so how can i define variable size; example char abc; but i don't know the size so how can i give array size?? in one sentence how can i give the array size dynamically so that i... (6 Replies)
Discussion started by: phani_sree
6 Replies

5. UNIX for Dummies Questions & Answers

Help finding/adding up file size...

Ok, I am new to UNIX and Shell scripting and I am trying to do the following using a korn shell script: I have a large data file that is loaded into a database, this data file is split into parts to make it more manageable based on a size parameter. The file contains many account records, the... (1 Reply)
Discussion started by: Stove13
1 Replies

6. Solaris

Search for big file size only in root fs

Hi all, I'm working on Solaris and quite often I receive the alert message of file system at 90%. I'd like to find which files caused this happens (at least the biggest files) with the following command: find . -size +10000000c -exec ls -larth {} \; This looks for every file in every fs... (4 Replies)
Discussion started by: Evan
4 Replies

7. Shell Programming and Scripting

Finding Last Occurance Of a Char

Hi, I need to fine out the Last occurance of / in the following out out. crontab -l | grep RMAN_VTL_Bkup.sh | tail -1 | awk '{print $6}' /oracle/PI1/software/RMAN/backup/RMAN_VTL_Bkup.sh Coudl you please let me know Thanking you inadvance, (8 Replies)
Discussion started by: kenal
8 Replies

8. Shell Programming and Scripting

Formatting File having big single line into 95 Char Per Line

Hi All, I have 4 big files which contains one big line containing formatted character records, I need to format each file in such way that each File will have 95 Characters per line. Last line of each file will have newline character at end. Before:- File Name:- File1.dat 102 121340560... (10 Replies)
Discussion started by: lancesunny
10 Replies

9. Shell Programming and Scripting

Help in finding & comparing avg file size

I have some files in a directory with two different extensions which get created everyday. Can you please help me out in getting the average file size for both these extensions and checking it with the last two file sizes of the same file extension ? To be more clear.. Lets say I have 10 files... (1 Reply)
Discussion started by: kiran1112
1 Replies

10. Shell Programming and Scripting

Finding size of files with spaces in their file names

I am running a UNIX script to get unused files and their sizes from the server. The issue is arising due to the spaces present in the filename/folder names.Due to this the du -k command doesn't work properly.But I need to calculate the size of all files including the ones which have spaces in them.... (4 Replies)
Discussion started by: INNSAV1
4 Replies
ungetc(3S)																ungetc(3S)

NAME
ungetc() - push character back into input stream SYNOPSIS
Obsolescent Interface DESCRIPTION
inserts the character c (converted to an unsigned char) into the buffer associated with an input stream. That character, c, is returned by the next call to (see getc(3S)) on that stream. A successful intervening call to a file positioning function with stream or erases all memory of the inserted characters. affects only the buffer associated with the input stream. It does not affect the contents of the file corresponding to stream. One character of pushback is guaranteed. If c equals EOF, does nothing to the buffer and returns EOF. Obsolescent Interface pushes character back into input stream. APPLICATION USAGE
After is applied to a stream, the stream becomes byte-oriented (see orientation(5)). RETURN VALUE
If successful, and return c and clear the end-of-file indicator for the stream. and return EOF if they cannot insert the character. WARNINGS
is an obsolescent interface supported only for compatibility with existing DCE applications. New multithreaded applications should use SEE ALSO
flockfile(3S), fseek(3S), fgetpos(3S), getc(3S), setbuf(3S), orientation(5), thread_safety(5). STANDARDS CONFORMANCE
ungetc(3S)
All times are GMT -4. The time now is 08:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy