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?
# 8  
Old 07-22-2009
I suppose you could achieve the effect by grouping like files in directories, though I personally would avoid using the "#" character in a directory name. Whether moving files is an option remains to be defined.

The sample input and output posted so far is too small to define a general rule to filter a directory listing.
# 9  
Old 07-22-2009
Quote:
Originally Posted by fpmurphy
I have never seen any Unix-like OS provide support for what you want.


Just out of curiosity, can you point to one of those tools and operating system? VMS?

Total commander will do this one the Windows side; I think there's a Mac version called Mu(?) commander, which is a port of that software.

I believe After Effects will show you sequences like this, as will Nuke, which I mentioned before.

I know there are some more, but I can't think of them off the top of my head.

methyl: the '#" symbol could be anything, I wouldn't take it as gospel. I wasn't trying to generate a rule set for displaying all cases (I imagine this would be a pretty big list of cases). I was just providing an example of the type of behavior I was looking for.
# 10  
Old 07-22-2009
Guessing reliably when files are sequences and when they are not is no simple task with all the different ways files get labelled. When you see file32, should it expect a file01-fileXX, file05-fileXXX, file1-fileXXX, file5-fileXXX, or file00-fileXX, or... And should this be ambiguous, what should it default to? Always leading zeroes, always no leading zeroes, always the most digits, always clean sequences, the sequences with the longest run of files...

I haven't found a method yet that doesn't generate false positives and negatives, hence why I doubt it would get built into ls if someone did, since ls is supposed to produce clear, accurate information.
 
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