Sponsored Content
Full Discussion: Read Files on the Fly
Top Forums Shell Programming and Scripting Read Files on the Fly Post 302411281 by angshuman_ag on Thursday 8th of April 2010 06:24:29 AM
Old 04-08-2010
Quote:
Originally Posted by Jairaj
Is your requirement is below :?

Code:
for fname in`ls /fly/*.img`                                                                                                  do
echo "File name is :$fname"
done

---------- Post updated at 03:19 AM ---------- Previous update was at 03:18 AM ----------

Correct one is :
Code:
for fname in `ls /fly/*.img`                                                                                                    
do
echo "File name is :$fname"
done

Hey ! Thx so much ! gr8 learning... i must say Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Rename files on the fly

Hi everyone, I am sort of new to shell scripting, I have a bunch of files that begin with 'blah' and I want to rename those files with something different (renamedFile1, renamedFile2, renamedFileN). I don't want to go through each file and rename them with the mv command. Could I just use a for... (4 Replies)
Discussion started by: kcor
4 Replies

2. UNIX for Dummies Questions & Answers

mv and compress on the fly

I want to move and compress a big export file. Like mv file_exp /filesystem/file_exp |compress The file system is too small to compress and move with 2 steps. What is the best command for me. I'm running solaris. :confused: (1 Reply)
Discussion started by: simquest
1 Replies

3. Shell Programming and Scripting

Moving multiple files and renaming them on the fly

Hi All, Being new to scripting I am facing a new situation. We have an application that generates a file lets say dumpfile for each user under the users home directory when they execute the application. This is quite a huge file and imagine having that for over 40 users on a daily basis. The... (1 Reply)
Discussion started by: daemongk
1 Replies

4. Solaris

Disable IPMP on the fly

Wats would be the best way to disable link based IPMP on the fly without loosing network connectivity ? (6 Replies)
Discussion started by: fugitive
6 Replies

5. UNIX for Advanced & Expert Users

read() wont allow me to read files larger than 2 gig (on a 64bit)

Hi the following c-code utilizing the 'read()' man 2 read method cant read in files larger that 2gig. Hi I've found a strange problem on ubuntu64bit, that limits the data you are allowed to allocate on a 64bit platform using the c function 'read()' The following program wont allow to allocate... (14 Replies)
Discussion started by: monkeyking
14 Replies

6. What is on Your Mind?

The Only Way To Fly !

This is great! Lqh8e2KYIrU (8 Replies)
Discussion started by: Neo
8 Replies

7. Shell Programming and Scripting

How to read log files from last read

Hi i am looking a way to look at a log file(log.txt) from the last time I've read it. However after some days the main log file(log.txt) is rename to (log.txt.1). So now i will have two log files as below. log.txt.1 log.txt Now, i have to read the log from the point where i have left... (3 Replies)
Discussion started by: sumitsks
3 Replies

8. UNIX for Advanced & Expert Users

How to gzip files "on fly" before copying

Hello, I want to gzip some files before copying to remote host. There is no freespace on source host so it needs to be perfomed within one-liner. I tried the following but it didn't work gzip -c -9 all_rvds.xml |ssh targethost "dd of=/tmp/all_rvds.xml.gz" cat all_rvds.xml |gzip -c9 |ssh... (5 Replies)
Discussion started by: urello
5 Replies

9. OS X (Apple)

Creating An Executable On The Fly...

Hi all... Had an idea tonight which could really enhance shell scripting for me. Yes I am aware there could be difficulties but...... Creating a C script inside the shell script to do a task, (a simple text print to stdout in this example), compiling it on the fly, making sure it is... (4 Replies)
Discussion started by: wisecracker
4 Replies

10. Shell Programming and Scripting

Execute script on the fly

Hi all, I am calling a zsh script from batch file . This zsh just removes the trigger file in a particular directory.File name is passed as a parameter from the batch file Problem is this batch is called in multiple other batch files and sometimes system says file cant be used as it is used... (4 Replies)
Discussion started by: Hypesslearner
4 Replies
clm close(1)							  USER COMMANDS 						      clm close(1)

  NAME
      clm close - Fetch connected components from graphs or subgraphs

      clmclose	is  not  in  actual  fact  a program. This manual page documents the behaviour and options of the clm program when invoked in mode
      close. The options -h, --apropos, --version, -set, --nop are accessible in all clm modes. They are described in the clm manual page.

  SYNOPSIS
      clm close -imx <fname> [options]

      clm close -imx fname (specify matrix input) -abc fname (specify label input) -dom fname (input domain/cluster file) [-o fname (output file)]
      [--is-undirected	(trust	input  graph  to  be  undirected)] [--write-count (output component count)] [--write-sizes (output component sizes
      (default))] [--write-cc (output components as clustering)] [--write-block (output graph restricted to -dom argument)] [--write-blockc  (out-
      put  graph  complement  of  -dom	argument)]  [-cc-bound	num  (select components with size at least num)] [-tf spec (apply tf-spec to input
      matrix)] [-h (print synopsis, exit)] [--apropos (print synopsis, exit)] [--version (print version, exit)]

  DESCRIPTION
      Use clm close to fetch the connected components from a graph. Different output modes are supported (see below). In matrix mode  (i.e.  using
      the  -imx option) the output returned with --write-cc can be used in conjunction with mcxsubs to retrieve individual subgraphs corresponding
      to connected components.

  OPTIONS
      -abc <fname> (label input)
	The file name for input that is in label format.

      -imx <fname> (input matrix)
	The file name for input that is in mcl native matrix format.

      -o fname (output file)
	Specify the file where output is sent to. The default is STDOUT.

      -dom fname (input domain/cluster file)
	If this option is used, clm close will, as a first step, for each of the domains in file fname retrieve the associated subgraph  from  the
	input graph. These are then further decomposed into connected components, and the program will process these in the normal manner.

      --write-count (output component count)
      --write-sizes (output component sizes (default))
      --write-cc (output components as clustering)
      --write-block (output graph restricted to -dom argument)
      --write-blockc (output graph complement of -dom argument)
	The  default  behaviour  is  currently to output the sizes of the connected components. It is also possible to simply output the number of
	components with --write-count or to write the components as a clustering in mcl format with -write-cc. Even more options exist: it is pos-
	sible to output the restriction of the input graph to a domain, or to output the complement of this restriction.

      --is-undirected (omit graph undirected check)
	With  this option the transformation to make sure that the input is undirected is omitted. This will be slightly faster. Using this option
	while the input is directed may lead to erronenous results.

      -cc-bound num (select components with size at least num)
	Transform the input matrix values according to the syntax described in mcxio(5).

  AUTHOR
      Stijn van Dongen.

  SEE ALSO
      mclfamily(7) for an overview of all the documentation and the utilities in the mcl family.

  clm close 12-068						      8 Mar 2012							clm close(1)
All times are GMT -4. The time now is 09:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy