Sponsored Content
Operating Systems AIX loop through the directory for files and sort by date and process the first file Post 302162906 by alanmehio on Wednesday 30th of January 2008 04:31:10 PM
Old 01-30-2008
hi,
try this as a first step

#!/bin/ksh

for $f in `ls -lt`
do

done


Regards,
Alan Mehio
UK, London
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Loop through files in dir, omit file with latest date

I want to loop through files in a directory but omit the file with the latest date in my list of files. How would I accomplish this? Thanks (2 Replies)
Discussion started by: stringzz
2 Replies

2. Linux

sort files by date

Hi All, Sorry to throw this frequent question but I lost my notes on it. How do you list the files by date? I'm on red hat. Thanks in advance, itik (1 Reply)
Discussion started by: itik
1 Replies

3. UNIX for Dummies Questions & Answers

Sort files by date, not showing files from today

Hi all, i'm new here in this forum. I really like the helpful answers in this forum. Here a short question. For a script i have to sort files by date and exclude the files of the actual date. Sorting the files by date and preparing the output for awk is done by this line: ls -l... (3 Replies)
Discussion started by: carlosdivega
3 Replies

4. Shell Programming and Scripting

How to sort a set of files by date in a directory?

hi there, I have a directory which contents I can parse dynamically. I end up with a file list. I then want to display those files sorted by date, oldest files first. I have very very little PERL experience...Would anyone know how to do that ? Thanks in advance. (8 Replies)
Discussion started by: alexf
8 Replies

5. UNIX for Dummies Questions & Answers

using gsed with cp to sort files in directory - every N file copy to new place

Hi all, I'm having a problem with some basic piping issues... I have been able to get in a directory and ls | gsed in order to list every N file for instance: ls | gsed -n '2~5p' The thing is I want to be able to copy the output files to a new directory. Basically directory /all has a... (4 Replies)
Discussion started by: dgoss
4 Replies

6. Shell Programming and Scripting

I need to back up a bunch of files on a directory and save that file as the current date....

this is what i have to find the files modified within the past 24 hours find . -mtime -1 -type f -print0 | xargs -0 tar rvf "$archive.tar" however i need to save/name this archive as the current date (MM-DD,YYYY.tar.gz) how do i doo this (1 Reply)
Discussion started by: bugenhagen_
1 Replies

7. Shell Programming and Scripting

Sort help: How to sort collected 'file list' by date stamp :

Hi Experts, I have a filelist collected from another server , now want to sort the output using date/time stamp filed. - Filed 6, 7,8 are showing the date/time/stamp. Here is the input: #---------------------------------------------------------------------- -rw------- 1 root ... (3 Replies)
Discussion started by: rveri
3 Replies

8. Shell Programming and Scripting

List files with date, create directory, move to the created directory

Hi all, i have a folder, with tons of files containing as following, on /my/folder/jobs/ some_name_2016-01-17-22-38-58_some name_0_0.zip.done some_name_2016-01-17-22-40-30_some name_0_0.zip.done some_name_2016-01-17-22-48-50_some name_0_0.zip.done and these can be lots of similar files,... (6 Replies)
Discussion started by: charli1
6 Replies

9. Shell Programming and Scripting

Bash directory loop and order by creation date?

Hello, how in bash i can get directory loop and order by creation date? THX! :) #!/bin/bash for folder in /home/test/* do if ; then echo $folder; fi (12 Replies)
Discussion started by: ZerO13
12 Replies

10. UNIX for Beginners Questions & Answers

How do I custom sort the files in a directory using the filenames in a text file.?

Hi all, (5 Replies)
Discussion started by: KMusunuru
5 Replies
mclblastline(1) 						  USER COMMANDS 						   mclblastline(1)

  NAME
      mclblastline - a pipeline for clustering from BLAST files.

  SYNOPSIS
      mclblastline file-name

      mclblastline [deblast options] [pipeline options] file-name

      NOTE
      mcl  has acquired the ability to proceed from label input as produced by mcxdeblast. This enables a very lightweight mechanism of generating
      clusterings from BLAST files.  You might want to use this mechanism, documented in the mcl manual.

      NOTE
      mclblastline used to require (given default parameters) the presence of the zoem macro processor to produce detailed  output.   This  is	no
      longer the case. By default mclblastline now creates a line-based tab-separated dump file.  Zoem will be invoked when the --fmt-fancy option
      is supplied.  In that case, zoem obviously has to be installed.

  DESCRIPTION
      mclblastline wraps around mclpipeline. It supplies the --parser=app and --parser-tag=str options, setting them  respectively  to	mcxdeblast
      and  blast.  This  tells	mclpipeline  to use mcxdeblast as the parse script in its pipeline.  The significance of the blast tag is that any
      mcxdeblast option can be passed through mclblastline and mclpipeline by inserting this tag into the option.  For example, mcxdeblast accepts
      the  --score=x option.  When using mclblastline, you specify it as --blast-score=x.  There are two exceptions to this rule, namely the --xi-
      dat=str and --xo-dat=str options. Refer to the mclpipeline manual for more information.

      Additionally, all mclpipeline options are acceptable to mcxdeblast as well. The --whatif is useful for getting a feel for the pipeline.  The
      --mcl-I=f  inflation  option  and --mcl-scheme=i scheme index options are your basic means for respectively manipulating cluster granularity
      and allocating resources. Read the mcl manual entries for a description of the corresponding -I and -scheme mcl options.

      The best advice is to glance over the mcxdeblast and mclpipeline options in order to get a feeling for which of those may come in handy  for
      you. Then start experimenting. Use the --whatif option, it will tell you what would happen without actually doing it.

  OPTIONS
      All mcxdeblast and mclpipeline options.  mcxdeblast options must be passed using the mechanism described above.

  EXAMPLES
	 mclblastline --blast-score=b
	    --blast-sort=a --blast-bcut=5 --mcl-I=2.5 myblastfile

      This  will use bit scores, sort cluster indices such that the corresponding labels are ordered alphabetically, ignore bit scores not exceed-
      ing 5, and use inflation value 2.5. In this case, the output clustering will be in the file named  myblastfile.I25s2  (I25  identifying  the
      inflation value and s2 identifying the resource scheme) and the formatted output will be in the file myblastfile.I25s2.fmt.

	 mclblastline --prepare-mcl myblastfile
	 mclblastline --start-mcl --mcl-I=1.2 myblastfile
	 mclblastline --start-mcl --mcl-I=1.6 myblastfile
	 mclblastline --start-mcl --mcl-I=2.0 myblastfile
	 mclblastline --start-mcl --mcl-I=2.4 myblastfile
	 mclblastline --start-mcl --mcl-I=2.8 myblastfile
	 etc ..

      The  first  run  prepares  an input matrix to be read by mcl.  In this case its file will be named myblastfile.sym.  The subsequent runs use
      this matrix.  CAVEAT there are some options that you need to repeat when executing such a resumed  run.  They  are  clearly  marked  in  the
      mclpipeline manual - namely those options that affect names of (intermediate) files. Most importantly, this concerns the mclpipeline options
      that have prefix --xo or --xi. For example,

	 mclblastline --prepare-mcl --blast-score=b --xo-dat=b myblastfile
	 mclblastline --start-mcl --xo-dat=b --mcl-I=1.2 myblastfile
	 mclblastline --start-mcl --xo-dat=b --mcl-I=1.6 myblastfile
	 mclblastline --start-mcl --xo-dat=b --mcl-I=2.0 myblastfile
	 mclblastline --start-mcl --xo-dat=b --mcl-I=2.4 myblastfile
	 mclblastline --start-mcl --xo-dat=b --mcl-I=2.8 myblastfile
	 etc ..

      In this case, the matrix file will be named myblastfile.b.sym, and the --xo-dat options must be repeated in all runs so  that  the  pipeline
      reconstructs the correct file name(s).

  AUTHOR
      Stijn van Dongen

  SEE ALSO
      mcxdeblast, mclpipeline, mcxassemble.

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