Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • JQL
    replied
    another nice way to do it.

    I really think something is going on with my server. It still finished after doing one file. I will ask my admin tomorrow. Will let you know.

    By any chance did this happen to any one of you here?

    Originally posted by Richard Finney View Post
    for i in $(ls *.gz); do sn=`echo $i | sed 's/\.gz$//'`; zcat $i > $sn; done;

    Leave a comment:


  • Richard Finney
    replied
    for i in $(ls *.gz); do sn=`echo $i | sed 's/\.gz$//'`; zcat $i > $sn; done;

    Leave a comment:


  • JQL
    replied
    thanks. I thought it might be related to something internal. will find out.

    Originally posted by azneto View Post
    I tested your version of the command and it worked fine. It could be something related to permissions.

    Leave a comment:


  • azneto
    replied
    I tested your version of the command and it worked fine. It could be something related to permissions.

    Leave a comment:


  • JQL
    replied
    I tried
    for i in `ls *.fastq.gz`; do gunzip -c $i > ${i%.gz}; done

    still only unzipped just first file then finished. no error. very strange.


    Originally posted by azneto View Post
    for i in `ls *.fastq.gz`; do gunzip -c $i > $i.fastq; done

    Leave a comment:


  • azneto
    replied
    for i in `ls *.fastq.gz`; do gunzip -c $i > $i.fastq; done

    Leave a comment:


  • JQL
    replied
    gunzip *.fastq.gz will delete original gz files. i want to keep original files.



    Originally posted by azneto View Post
    have you tried 'gunzip *.fastq.gz' ?

    Leave a comment:


  • azneto
    replied
    have you tried 'gunzip *.fastq.gz' ?

    Leave a comment:


  • JQL
    started a topic bash shell question

    bash shell question

    I tried to do a simple task in batch--unzipping many gz files. I have many .gz files, but how come it only unzipped one file then finished? Anything wrong with my script? thanks. John


    ## unzip fastq.gz
    for i in *.fastq.gz
    do
    #echo $i
    zcat "$i" > "${i%.*}"
    done

Latest Articles

Collapse

  • SEQadmin2
    How Immunogenomics Decodes Immunity’s Genetic Blueprint
    by SEQadmin2




    The immune system’s power comes from its genetic diversity, allowing myriad threats to be neutralized through first recognizing foreign antigens. That diversity is also what makes the immune system so difficult to study. Recent advances in sequencing technology and computational biology, however, are giving researchers new tools to understand immune responses and immune-related diseases in greater detail.

    This convergence of genetics, immunology, and computation...
    09-01-2026, 05:41 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by SEQadmin2, Yesterday, 09:06 AM
0 responses
14 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 09-23-2026, 11:05 AM
0 responses
17 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 09-18-2026, 11:37 AM
1 response
39 views
0 reactions
Last Post pekgio
by pekgio
 
Started by SEQadmin2, 09-16-2026, 10:23 AM
1 response
55 views
0 reactions
Last Post pekgio
by pekgio
 
Working...