New answers tagged

3 votes

MiXCR: only create a single export file for all clonotypes

Currently in MiXCR SERIES 4 you can use --dont-split-files parameter here. Please check our new documentation portal: https://docs.milaboratories.com/mixcr/...
2 votes
Accepted

How to remove empty files from a directory?

This isn't the most efficient approach, using find will be easier and faster as long as your find supports the ...
  • 8,770
2 votes

How to remove empty files from a directory?

As already stated, one way is to use the GNU find (the default on Linux) command. This will find and print all empty files in the current directory: ...
  • 2,147
1 vote

How to rename a file based on a directory name?

Perl one-liner: ls */filename | perl -lane 'print "mv $1/$3 $1/$2_$3" if /(\S+_([^\/_\s]+))\/(\S+)/'
  • 6,121
1 vote

How to remove empty files from a directory?

@Ram RS has identified the solution here via find, if that does not work then the following will work, ...
  • 9,149
3 votes

How to remove empty files from a directory?

Always Google before asking on forums. I googled "delete empty files linux" and this was the second result: https://www.baeldung.com/linux/delete-empty-files-dirs ...
  • 1,452
1 vote

How to rename a file based on a directory name?

If you want to use Perl: ...
  • 526
3 votes

How to rename a file based on a directory name?

Assuming the output is only a list of directories and each directory includes a file called "ragtag.scaffold.fasta", you could use brace expansion to generate the SOURCE and DEST strings: <...
  • 2,147
3 votes
Accepted

How to rename a file based on a directory name?

Just execute the following immediately above the directories of interest, (post edited to include OPs "constant term") ...
  • 9,149

Top 50 recent answers are included