Search Results

Search: Posts Made By: jam_ali49
2,792
Posted By jam_ali49
thanks a lot smiling dragon
thanks a lot smiling dragon
2,211
Posted By jam_ali49
perl -e 'while (<>) { print; $num = 2 if...
perl -e 'while (<>)
{
print;
$num = 2 if /fail_halt/i;
$num = 1 if (/failure/i && ($num < 1));
}
print $num
exit $num;'

-e is a command line option
for example on terminal you can say perl...
2,792
Posted By jam_ali49
thanks smiling dragon
I thank u for taking interest in this problem.

The input file is like this, first whitespace is tab and subsequent are single spaces.
Here are 3 lines of the file.

PFA0165c ctg_6843
PFA0335w...
2,792
Posted By jam_ali49
how to take out common of two lines in a file
I use sed and awk. I am not a big expert but to some extent. I have file like this

PFA0165c ctg_6843
PFA0335w ctg_6843 ctg_6871 ctg_6977 ctg_6654 ctg_7052 ctg_6899 ctg_6840 ctg_7202...
Showing results 1 to 4 of 4

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