modifying ls() to support the display of file sequences?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers modifying ls() to support the display of file sequences?
# 1  
Old 07-20-2009
modifying ls() to support the display of file sequences?

Hi there, I'm new to the board and I did try a search, but couldn't quite find what I was looking for.

I deal in mostly large sets of sequential files, usually images. I was wondering if someone has modified the standard ls() command, or created another command that would display standardly named, sequential files as a single listing in the directory.

For example, I have 3,000 files in a single directory with a name structure like:

Ocean_Current_Mask.0001.exr
Ocean_Current_Mask.0002.exr
Ocean_Current_Mask.0003.exr

and so on.

Is there a command that would display all of these files as a single directory entry?


Thank you!

Sam
# 2  
Old 07-21-2009
What do you mean by "single directory entry"?
Do you mean "wide" like this?

Ocean.0001.exr Ocean.0002.exr Ocean.0003.exr Ocean.0003.exr

Give an example ofwhat output should look like.
# 3  
Old 07-21-2009
Maybe you mean:

Code:
ls Ocean_Current_Mask\.????\.exr

# 4  
Old 07-21-2009
Quote:
Originally Posted by methyl
Maybe you mean:

Code:
ls Ocean_Current_Mask\.????\.exr


Sorry, I should have included an example for the output - I was hoping to see the sequence of files as a single entry in the listing, like the above example, or perhaps like this:

Ocean_Current_Mask.####.exr

There are several tools on other operating systems that can show sequences like this, even some Applications. Nuke (a image compositing program) shows all sequences in this manner. It's much easier to see a single listing of sequences sometimes, rather than the individual files.

Thanks for the help, I hope this is clear.
# 5  
Old 07-21-2009
The question is clear, the answer is not.
# 6  
Old 07-21-2009
Quote:
Originally Posted by methyl
The question is clear, the answer is not.
Heh, I guess not. I was hoping someone had tackled this. It might be a difficult thing to do though. Hm.
# 7  
Old 07-22-2009
I have never seen any Unix-like OS provide support for what you want.

Quote:
There are several tools on other operating systems that can show sequences like this
Just out of curiosity, can you point to one of those tools and operating system? VMS?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Getting unique sequences from multiple fasta file

Hi, I have a fasta file with multiple sequences. How can i get only unique sequences from the file. For example my_file.fasta >seq1 TCTCAAAGAAAGCTGTGCTGCATACTGTACAAAACTTTGTCTGGAGAGATGGAGAATCTCATTGACTTTACAGGTGTGGACGGTCTTCAGAGATGGCTCAAGCTAACATTCCCTGACACACCTATAGGGAAAGAGCTAAC >seq2... (3 Replies)
Discussion started by: Ibk
3 Replies

2. Shell Programming and Scripting

Removing duplicate sequences and modifying a text file

Hi. I've tried several different programs to try and solve this problem, but none of them seem to have done exactly what I want (and I need the file in a very specific format). I have a large file of DNA sequences in a multifasta file like this, with around 15 000 genes: ... (2 Replies)
Discussion started by: 4galaxy7
2 Replies

3. Shell Programming and Scripting

How to remove escape sequences from a text file?

Hello friends, Could anyone please advise on how to remove escape sequences from a text file? $ file input.txt input.txt: ASCII English text, with escape sequences I'm able to see those escape characters when opened in vi editor like shown below: ^ but not when I run more... (6 Replies)
Discussion started by: magnus29
6 Replies

4. Shell Programming and Scripting

Extract sequences from a FASTA file based on another file

I have two files. File1 is shown below. >153L:B|PDBID|CHAIN|SEQUENCE RTDCYGNVNRIDTTGASCKTAKPEGLSYCGVSASKKIAERDLQAMDRYKTIIKKVGEKLCVEPAVIAGIISRESHAGKVL KNGWGDRGNGFGLMQVDKRSHKPQGTWNGEVHITQGTTILINFIKTIQKKFPSWTKDQQLKGGISAYNAGAGNVRSYARM DIGTTHDDYANDVVARAQYYKQHGY >16VP:A|PDBID|CHAIN|SEQUENCE... (7 Replies)
Discussion started by: nelsonfrans
7 Replies

5. Shell Programming and Scripting

Extract the part of sequences from a file

I have a text file, input.fasta contains some protein sequences. input.fasta is shown below. >P02649 MKVLWAALLVTFLAGCQAKVEQAVETEPEPELRQQTEWQSGQRWELALGRFWDYLRWVQT LSEQVQEELLSSQVTQELRALMDETMKELKAYKSELEEQLTPVAEETRARLSKELQAAQA RLGADMEDVCGRLVQYRGEVQAMLGQSTEELRVRLASHLRKLRKRLLRDADDLQKRLAVY... (8 Replies)
Discussion started by: rahim42
8 Replies

6. Shell Programming and Scripting

Removing specific sequences from file

My file looks like this But I need to remove the entry with the identifier >Reference1 along with the entire sequence. Thus, I will end up having the following file Thanks in advance! (2 Replies)
Discussion started by: Xterra
2 Replies

7. Solaris

How to set DISPLAY to support X11 window server

I can run xclock from root but not able to run in a user (oracle) I am getting this error during installation of ORACLE-10g (10.2) in Solaris-10 (X86).............when I do ./runInstaller when ever try, getting this error....... DISPLAY not set. Please set the DISPLAY and try again. or... (2 Replies)
Discussion started by: gohappy
2 Replies
Login or Register to Ask a Question