Search Results

Search: Posts Made By: jahndavik
16,540
Posted By jahndavik
Always happy to learn new stuff. As I indicated,...
Always happy to learn new stuff. As I indicated, I am pretty much a newbie.
16,540
Posted By jahndavik
Thanks to all of you. Just wanted to show you...
Thanks to all of you. Just wanted to show you what I ended up with:


for i in $(ls); do # runs through the 'items' in this dir
if [ -d $i...
16,540
Posted By jahndavik
Add foldername as prefix to files
Hi there,
I am looping through folders in order to rename the files in the current folder.
So, given me being a newbie here, I would do that with a for-loop. The renaming per se should be like...
3,273
Posted By jahndavik
Thank you.! if echo "$z" | grep -q *R1??????R2*...
Thank you.!
if echo "$z" | grep -q *R1??????R2*

works fine, as well!

To clarify: this string is just a part of the filename. There is stuff before and after.

jahn
3,273
Posted By jahndavik
I tried that, but could not get it to work. if...
I tried that, but could not get it to work.
if echo "$z" | grep -q "^R1......R1$";

I may be doing something wrong here?
3,273
Posted By jahndavik
I used: if echo "$z" | grep -q "R1......R1";...
I used:
if echo "$z" | grep -q "R1......R1"; then

and it seem to work the way I want - pick files that contain a string with R1+sixletters+R1
in the filename.

Thank you for your replies.
...
3,273
Posted By jahndavik
Wildcard in bash script
Hi there,
I am pretty new to linux scripting so ..

I am writing a script to loop through all my directories of sequence files in order to do stuff with them (trimming, normalizing, stuff that...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 01:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy