Search Results

Search: Posts Made By: valente
1,537
Posted By pamu
grepping something won't be good idea of doing...
grepping something won't be good idea of doing this work..

try this (replace your whole script with this.. :))

awk '!X[$1]++{print $1}' file > scaffolds
while read line
do
awk -v...
1,537
Posted By pamu
Try something like this sort -nk2 file | awk...
Try something like this

sort -nk2 file | awk '{if($2 == s){print P;k=1}else if(1==k){print P;k=0;}}
{s=$3;P=$0}' To decide tolerance difference use
sort -nk2 file | awk -v tol="5"...
1,351
Posted By elixir_sinari
Like this? cd /wherever/files/are find ....
Like this?
cd /wherever/files/are
find . -type f -name '*.net'|while IFS='/' read dummy a
do
echo paste "$a" "${a/%net/dat}"
done > output
Remove the echo if this is working as expected.
12,695
Posted By pokerino
Hi, another way; cat YUORFILE.txt | awk...
Hi,

another way;

cat YUORFILE.txt | awk -F" " '{ if ( FNR == 1 ) {a=$0;getline} ; {print a"\t"$0;a=$0} }'
12,695
Posted By rbatte1
Could I suggest something like:- prev="" ...
Could I suggest something like:-
prev=""
while read line
do
if [ "$prev" != "" ]
then
echo "$prev\t$line"
fi
prev="$line"
done < imput

The plan here being that for each...
Showing results 1 to 5 of 5

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