Sponsored Content
Top Forums UNIX for Dummies Questions & Answers write a program in c in unix that display the files(includ sub-direc and files within) in a sorted Post 302491028 by Corona688 on Wednesday 26th of January 2011 01:06:22 PM
Old 01-26-2011
You obviously know there's a homework template, given you managed to copy/paste a blank one into the homework forum for the same question. If you go back and actually fill one out then we'll be able to help you.
This User Gave Thanks to Corona688 For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Compare 2 sorted files

Hi all, please give me the commands using which i can compare 2 sorted files and get the difference in third file, indiating where the difference is from either file1 or file2. as: File1 (Original file) GARRY JOHN JULIE SAM --------------- File2 DEV GARRY JOHN JOHNIEE (7 Replies)
Discussion started by: varungupta
7 Replies

2. Solaris

Command used for checking space occupied by files & sub-direc's inside a mount in %?

Hi, I want to know the command which can be used for finding the % of disk space occupied by files & sub-folders inside a given mount in Sun Solaris For eg: I have /tmp/ folder when I sat df -k it will give the percentage of space used by /tmp/. Say if I want to see how much % the files &... (2 Replies)
Discussion started by: weblogicsupport
2 Replies

3. Programming

merging two files with sorted integers in c

Hi, I want to merge two files with sorted integers. I want to merge two files to a single file such that there are no duplicates and the merged file should contain the integers in the sorted order. Just some idea or pointer to an implementation will help me a lot. Thanks & Regards,... (4 Replies)
Discussion started by: brett01
4 Replies

4. Shell Programming and Scripting

Write an automated shell program(s) that can create, monitor the log files and report the issues for

Hi , Please help me getting this done. Write an automated shell program(s) that can create, monitor the log files and report the issues for matching pattern. (i) Conditions for creating log files. Log file is created with date (example 2010_03_27.log). If the log file size is 10 Mb for... (1 Reply)
Discussion started by: itian2010
1 Replies

5. Shell Programming and Scripting

How to write a shell script to display files in single path?

Hello friends, I am a script which dispalys a multiple files with their contents. for exm: suppose two file test1.txt and test2.txt. when I run my script it have to display the below O/P. test1.txt -rw-r----- 1 sranga staff 91 Sep 23 02:18 calc.sh -rw-r----- 1 sranga ... (2 Replies)
Discussion started by: sivaranga001
2 Replies

6. Shell Programming and Scripting

if condition for files older then 24 hours in direc

Hi all I have directory /tmp and i have logs are written in it every 18 to 20 hours in date format. now i need write some if condition which can find which files came into /tmp dir with name start from LOG_`date`.log in last 24 hours. can somebody help me on this. (2 Replies)
Discussion started by: tapia
2 Replies

7. Shell Programming and Scripting

combine multiple files by column into one files already sorted!

I have multiple files; each file contains a certain data in a column view simply i want to combine all those files into one file in columns example file1: a b c d file 2: 1 2 3 4 file 3: G (4 Replies)
Discussion started by: ahmedamro
4 Replies

8. Shell Programming and Scripting

sort the files based on timestamp and execute sorted files in order

Hi I have a requirement like below I need to sort the files based on the timestamp in the file name and run them in sorted order and then archive all the files which are one day old to temp directory My files looks like this PGABOLTXML1D_201108121235.xml... (1 Reply)
Discussion started by: saidutta123
1 Replies

9. Shell Programming and Scripting

"Search for files in a file and write these files to another file which sould be in some other direc

Hi , Need to shell script to extracts files names and write those to another file in different directory. input file is inputfile.txt abc|1|bcd.dat 123 david123 123 rudy2345 124 tinku5634 abc|1|def.dat 123 jevid123 123 qwer2345 124 ghjlk5634 abc|1|pqr.txt 123 vbjnnjh435 123 jggdy876... (1 Reply)
Discussion started by: dssyadav
1 Replies

10. UNIX for Dummies Questions & Answers

How to write files for compiling a program.?

I am hoping someone can give me a good free web resource for writing code to compile a binary executable. I am getting fairly decent at writing shell script, are the .f files just shell scripts? Also, I don't know where to begin on the makefiles. The reason I am curious is because I have been... (6 Replies)
Discussion started by: butson
6 Replies
SoByteStream(3IV)()													       SoByteStream(3IV)()

NAME
SoByteStream -- converts scene graph objects to character byte streams INHERITS FROM
SoByteStream SYNOPSIS
#include <Inventor/misc/SoByteStream.h> Methods from class SoByteStream: SoByteStream() ~SoByteStream() void convert(SoNode *node, SbBool binaryFormat = TRUE) void convert(SoPath *path, SbBool binaryFormat = TRUE) void convert(SoPathList *pathList, SbBool binaryFormat = TRUE) void * getData() uint32_t getNumBytes() static SoPathList * unconvert(SoByteStream *byteStream) static SoPathList * unconvert(void *data, uint32_t numBytes) DESCRIPTION
This class creates a byte stream representation of a scene graph, using an SoWriteAction to write path lists to an in-memory buffer. Byte streams are commonly used to transfer data in copy and paste operations. (The SoXtClipboard class passes SoByteStream data during copy and paste.) METHODS
SoByteStream() ~SoByteStream() Constructor and destructor. void convert(SoNode *node, SbBool binaryFormat = TRUE) void convert(SoPath *path, SbBool binaryFormat = TRUE) void convert(SoPathList *pathList, SbBool binaryFormat = TRUE) These convert the passed scene graph object(s) into a byte stream. The caller may specify whether the byte stream is written in binary (TRUE) or ASCII (FALSE) format, and can pass the object(s) by node, path, or pathList. void * getData() uint32_t getNumBytes() These return the data and number of bytes from the last convert() operation. This byte stream format is well suited to data transfers, like copy and paste. static SoPathList * unconvert(SoByteStream *byteStream) static SoPathList * unconvert(void *data, uint32_t numBytes) These take byte stream data and unconvert it back to scene graph objects. The objects are returned in a path list. SEE ALSO
SoXtClipboard SoByteStream(3IV)()
All times are GMT -4. The time now is 05:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy