Search Results

Search: Posts Made By: neutronscott
2,828
Posted By neutronscott
oy. darn 1-index. Thanks, Don. but yes,...
oy. darn 1-index. Thanks, Don.

but yes, everything outputted by awk goes to cut. cut doesn't have logic like awk does. But awk can determine if it's an odd line and also skip the first 5...
2,828
Posted By neutronscott
Don't use cut. awk equivalent is substr($0,5,595)...
Don't use cut. awk equivalent is substr($0,5,595)

try:

awk '!(NR%2) { print substr($0,5,595); next; } 1' FWD-1.fas
Showing results 1 to 2 of 2

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