Sponsored Content
Top Forums Shell Programming and Scripting listing all code in all files in all directories Post 302193964 by Annihilannic on Monday 12th of May 2008 01:13:33 AM
Old 05-12-2008
You can use the file command on each file before displaying it. If the output of that command contains the word "text", display it, otherwise display an error like "so-and-so is a binary file".
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

files and directories listing

Hello: I need to list some files into some directories ordered by size. i need help! BEst regards Alberto (1 Reply)
Discussion started by: bbolson
1 Replies

2. UNIX for Dummies Questions & Answers

Listing directories and ${1:+$1/}*

Hi I have 2 questions: Q1 - What does ${1:+$1/}* mean? I guess it lists all files in current directory - Could any one explain how this expression works? Q2 - I am trying to list directories only in current path - I know that ls could be used but I thought I'd give find a try. I need to... (5 Replies)
Discussion started by: GMMike
5 Replies

3. Shell Programming and Scripting

Listing Deleted Files and Directories

Please provide me a shell script so that i can list which file or directory has been deleted, by which user and at what time. The script should take date as argument and should list out name of the file/directory, which user had deleted them and at what time since that particular date. Kindly post. (1 Reply)
Discussion started by: raviviolet13
1 Replies

4. UNIX for Dummies Questions & Answers

Listing Unique directories.

Hi, Simple question. If i could find a file been listed in many dirctories, how to get the unique list of directories. find / -name "abc*" --> will give me list of directories. /home/abc.txt /home/ddd/abcd.txt /home/ddd/abcde/txt So how to get /home /home/ddd Thanks in... (2 Replies)
Discussion started by: deepakwins
2 Replies

5. UNIX for Advanced & Expert Users

listing of directories with / ...not to use ls -F

Hi When im listing (ls -al ) its listing directories without / at the end of directories dir1 dir2 dir3 and i need to list directories with dir1/ dir2/ dir3/ and this should not be made by command ls -F / should be embedded at the last since one of the scripts reads directories... (1 Reply)
Discussion started by: vasanthan
1 Replies

6. Shell Programming and Scripting

listing directories alone

ls lists all files and sub directories in the current directory but how to list only the sub directories and not the files? (2 Replies)
Discussion started by: bbala
2 Replies

7. Shell Programming and Scripting

Listing non empty directories

Hi Gurus, How to list directories that are non-empty and non-hidden Thanks in advance (2 Replies)
Discussion started by: kinny
2 Replies

8. Shell Programming and Scripting

Request for shell script for listing directories, subdirs containing specific files.

I'm looking for a script which outputs the list of directories and sub directories from root level consisting of specific files. For instance I want shell script to list all the directories and subdirectories containing .txt files.:wall: (4 Replies)
Discussion started by: super210
4 Replies

9. Shell Programming and Scripting

listing directories and sub directories with time and name options

Hello all! I'm looking to list directories and sub-directories of a path, on this forum I found this command: find $path -type d -exec ls -ld {} \; The issue I have is that with a simple ls, the list is listed by name, and using -t I get it by time. How could I list directories and sub... (5 Replies)
Discussion started by: nomadvisuals
5 Replies

10. Shell Programming and Scripting

listing directories with more than x files

How can I find and print the directories on a server that have more than 5,000 files? There's some spam emails and I'm trying to find all directories that have a lot of spam The file count should just be the files directly under that directory, not like the total from all nested directories ... (1 Reply)
Discussion started by: vanessafan99
1 Replies
icetAddTile(3)							  IceT Reference						    icetAddTile(3)

NAME
icetAddTile -- add a tile to the logical display. Synopsis #include <IceT.h> int icetAddTile( IceTInt x, IceTInt y, IceTSizeType width, IceTSizeType height, int display_rank ); Description Adds a tile to the tiled display. Every process, whether actually displaying a tile or not, must declare the tiles in the display and which processes drive them with icetResetTiles and icetAddTile. Thus, each process calls icetAddTile once for each tile in the display, and all processes must declare them in the same order. The parameters x, y, width, and height define the tile's viewport in the logical global display much in the same way glViewport declares a region in a physical display in OpenGL .IceT places no limits on the extents of the logical global display. That is, there are no limits on the values of x and y. They can extend as far as they want in both the positive and negative directions. IceT will project its images onto the region of the logical global display that just covers all of the tiles. Therefore, shifting all the tiles in the logical global display by the same amount will have no real overall effect. The display_rank parameter identifies the rank of the process that will be displaying the given tile. It is assumed that the output of the rendering window of the given process is projected onto the space in a tiled display given by x, y, width, and height. Each tile must have a valid rank (between 0 and $ICET_NUM_PROCESSES - 1$). Furthermore, no process may be displaying more than one tile. Return Value Returns the index of the tile created or -1 if the tile could not be created. Errors ICET_INVALID_VALUE Raised if display_rank is not a valid process rank, if display_rank is already assigned to another tile, or if width or height is smaller than 1. If this error is raised, nothing is done and -1 is returned. Warnings None. Bugs All processes must specify the same tiles in the same order. IceT will assume this even though it is not explicitly detected or enforced. Copyright Copyright (C)2003 Sandia Corporation Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software. This source code is released under the New BSD License. See Also icetResetTiles(3), icetPhysicalRenderSize(3) IceT Reference June 7, 2011 icetAddTile(3)
All times are GMT -4. The time now is 05:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy