I have installed BEDTOOLS to convert a GFF file into a BED format.
cat /home/maliha/maliha/data | \ awk 'BEGIN {OFS = "\t"};{if ($3=="gene") print $1,$4-1,$5}' | \ sed "s/^/chr/"> mygenes.bed
I have run this command to do the conversion. However, after executing this command I am getting this error-
Command ' sed' not found, did you mean:
command 'msed' from deb mblaze (0.6-1)
command 'sed' from deb sed (4.7-1)
command 'ssed' from deb ssed (3.62-7build1)
Try: sudo apt install <deb name>
Command ' awk' not found, did you mean:
command 'nawk' from deb gawk (1:5.0.1+dfsg-1)
command 'nawk' from deb mawk (1.3.4.20200120-2)
command 'awk' from deb gawk (1:5.0.1+dfsg-1)
command 'awk' from deb mawk (1.3.4.20200120-2)
command 'awk' from deb original-awk (2012-12-20-6)
command 'mawk' from deb mawk (1.3.4.20200120-2)
command 'gawk' from deb gawk (1:5.0.1+dfsg-1)
Try: sudo apt install <deb name>
If someone can help me to solve this problem, I'd be really grateful.
it quite difficult to understand your command line with this formating and those
\
. Please reformat. Don't you have a problem with your ${PATH} ? sed and awk are ubiquitous, you should find them one any linux.I have reformatted the command line. Please see if it's all right now. I have installed awk and sed seperately. But still, I am getting this similar error.
what does
echo $PATH
gives you ?this
\
inside a command is not a valid .