This is a test version of Biostars. For the public version, visit https://www.biostars.org.
commands for shell linux

Hi I have the below list of files:

555individual1.new.adjusted
555individual2.new.adjusted
555individual3.new.adjusted
555individual4.new.adjusted
555individual5.new.adjusted
555individual6.new.adjusted
555individual7.new.adjusted
555individual8.new.adjusted

that I heed to rename to:

555a1
555a2
555a3
555a4
555a5
555a6
555a7
555a8

Please help me by some commands

genome

Hello hosein_salehi6!

Questions similar to yours can already be found at:

We have closed your question to allow us to keep similar content in the same thread.

If you disagree with this please tell us why in a reply below. We'll be happy to talk about it.

Cheers!

1 answer

Your post looks amazingly like spam, but giving you the benefit of the doubt:

for f in *.new.adjusted ;
do
    num=${f:14}
    mv $f 555a$num
done

Log in to answer this question.