Skip to main content

All Questions

Tagged with
1 vote
1 answer
400 views

How to find the "pattern" in FASTA file and record the cordinates along with header

I am looking for a solution to search for a string of 17 base pairs in the FASTA file that is the human reference genome. To clarify, in simple words and put the resources, i have tried grep function ...
Santosh's user avatar
  • 13
2 votes
0 answers
220 views

Python and Perl not recognized in cmd even after adding in environment

It was fine yesterday, but it suddenly stopped working today. Both my perl and python were not recognized in cmd. I read as much as i can online for the answers and follow the instruction. I have ...
niknur's user avatar
  • 21
1 vote
2 answers
83 views

How to globally replace programming code using literal input files?

I will use HTML as an example. But it could be any programming code for any language. This comes up often enough, it would be useful to deal with the literal text code to search and replace. This is ...
Edward_178118's user avatar
0 votes
1 answer
431 views

Can I use a pseudo terminal (PTY) to automate SSH & sudo on CentOS Linux?

Here's the situation: I frequently build new AWS hosts using terraform. After the initial build, there are several interactive steps that need to be performed on the hosts involving sudo. Would it be ...
Swechsler's user avatar
  • 111
0 votes
2 answers
307 views

Bash script to crosscheck list of names with a firewall config file

I am looking to automate something with a script in bash or python. Let's say I have a config file from a device. A simple config.txt file. Content could be like this (actual file is much longer and ...
maxim's user avatar
  • 116
2 votes
2 answers
61 views

How can I assign (x,y) coordenates to some values?

So I basically have to assign (x,y) coordenates to some ids that will be coming from a file. Let's say the file items.txt have the following content: if-eth0-in if-eth0-out ping-status cpu-load ...
sysfiend's user avatar
  • 527
0 votes
2 answers
46 views

Unable to add spaces

How can i add spaces between my outputs using sed/echo or any other command in linux? Preferred Output: Virtual Machine Test01 status Running. Virtual Disk Test01 size 61GB Physical Disk ...
biz's user avatar
  • 29
-1 votes
2 answers
231 views

Copy sequential files into sequential directories

I need to copy multiple, sequential files into sequential directories. The files have the julian date (day of year) with other info in the file name. The directories are listed by julian date (day of ...
gbh's user avatar
  • 1
4 votes
1 answer
4k views

Is it possible to open a port for listening without netcat?

I have a need for a Linux system to listen on a TCP port and dump what it receives to a file and/or stdout. The system does not have netcat installed. I have root permissions, but am not allowed to ...
MrDrMcCoy's user avatar
  • 1,017
-1 votes
1 answer
215 views

editing column of a text file

abc.txt consists of two column data as 1 A1021 2 A1021 3 A1022 4 A1022 I want another test file, say pqr.txt (replacing A1021 by 1 and A1022 by 2 and so on). I used the following usual perl ...
user316350's user avatar
2 votes
3 answers
4k views

How to extract characters between first and second underscores of filenames and count such files in Linux folder?

I would like to extract characters between first and second underscores of filenames in a folder and count such type of files present in it. The folder contains files in a particular format such as: ...
user1679829's user avatar
0 votes
2 answers
782 views

Handling MS office documents on Linux without root access

I have a linux hosting account with Godaddy (Centos 5.5), and I am developing an application to process users MS Office documents. I have found solutions such as antiword, unoconv, catdoc, Apach POI/...
hmghaly's user avatar
  • 103
2 votes
4 answers
5k views

Create a term-document matrix from files

I have a set of files from example001.txt to example100.txt. Each file contains a list of keywords from a superset (the superset is available if we want it). So example001.txt might contain apple ...
Joe's user avatar
  • 3,480
0 votes
1 answer
2k views

script to convert GB to TB

I have (multiple) files like below list. Few of them has both the values in TB and couple of files in GB. Now if you clearly see the file output there are two rows with Total capacity and Capacity ...
maneeshshetty's user avatar
0 votes
4 answers
2k views

iMacros-like program for terminal?

Is there such a program for Terminal like the iMacros plugin for Firefox, that can record what I did, then automatic do the work I have done? I hope that there is such a program to help me do the ...
liunx's user avatar
  • 103

15 30 50 per page