Skip to main content

All Questions

0 votes
2 answers
49 views

Is there a way to interact with a shell but from an app or separate program?

I am trying to find a way to both receive the output of a shell and then return output, but from a different front end interface? I am trying to incorporate the Linux terminal into a potential ...
James Lindner's user avatar
-2 votes
2 answers
689 views

covert Multi line into single line with grep name

Can you please help me this. item : name_1 213321654 32549846546 item : name_2 8563161631 item : name_3 96315242161 73216510631 51654316416 Need to convert ...
Murugesan Madappan's user avatar
1 vote
5 answers
3k views

How to select unique entries from multiple text files and print in output file?

I have 3 files with similar data. I want a bash script which can read the 3 files and output the unique entries with their values. Example: 1.txt aceE 14 aceF 8 adhE 20 asnS 2 carB 2 ...
Davi's user avatar
  • 19
1 vote
3 answers
331 views

uniq cluster name

We have several clustered servers and need to check 1 server in each cluster. How do I compare entries in a list to return only one server in each cluster? All server names follow [a-z]-[a-z]-[a-z][0-...
bart's user avatar
  • 13
0 votes
2 answers
75 views

Extracting some texts from txt file and adding to an existing file bash

all experts I have two types of files in the same directory ex1) record1.txt (record2, record3, record4 ...) 11111 absda qwedc 11112 uiyds dqeds 11113 eqwev jfsec ... ex2) Summary1.txt (Summary2, ...
newkis's user avatar
  • 5
1 vote
2 answers
451 views

How to match a column from File1 to get its corresponding fasta sequences in File 2?

May I kindly ask how to match all values of the first column in File with the line text in File 2 so I can copy the fasta sequences of all Object ID in File 1? File 1.csv file Object_ID, Length, ...
beth's user avatar
  • 11
3 votes
1 answer
8k views

How to use awk command to calculate the date difference between two columns in the same file?

I have a multi columns csv file, comma separated which has two columns with different date (mm/dd/yyyy). I am going to identify the difference between these two date. following is the example: echo ...
Daniel's user avatar
  • 347
-2 votes
2 answers
158 views

Find all line in a file which start with g or any digit from 0to9

How do I find all lines in a file which start with g or any digit from 0 to 9? Can any one help me using command line? I try and I know how to do if start with g but don't know how to do with g and 0 ...
Jaimin's user avatar
  • 11
14 votes
6 answers
76k views

Awk - output the second line of a number of .dat files to one file

I have multiple files something like: (in reality i have 80) file1.dat 2 5 6 9 7 1 file2.dat 3 7 8 4 1 3 I want to end up with a file containing all of the second lines. i.e. output.dat 6 9 ...
Rowland's user avatar
  • 143
1 vote
2 answers
5k views

regex find and replace 0x0D, 0x0A characters

I have a text file of a database dump with some line break characters (0x0A0x0D) in the middle of lines. I want to replace them with commas, but I can't do it simply, because those characters are the ...
user394's user avatar
  • 14.7k