10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a file as
ABC 1634230,1634284,1634349,1634468 1634272,1634301,1634356,1634534
What I want is to find distance between the numbers.. column 1 is the gene name and column 2 are starts and column 3 are their respective stops for the starts. So what I want is column 3 which has +1... (2 Replies)
Discussion started by: Diya123
2 Replies
2. Shell Programming and Scripting
I have 3 files which are tab delimited and have numbers in it.
file 1
1
2
3
4
5
6
7
File 2
3
5
7
8
File 3
1 (4 Replies)
Discussion started by: Lucky Ali
4 Replies
3. Shell Programming and Scripting
I have two files
The first file is in following format
5 937 8
1860 5 1
683 2 1
129 2 2
5 938 8
1122 5 1
20 520 4
1860 1851 1
5 939 8
1122 1124 1
20 521 4
5883 14 6
1860 1852 1
683 4 2 (5 Replies)
Discussion started by: stuggler
5 Replies
4. Shell Programming and Scripting
cat *.out |grep "<some text>" | awk '{print $6}'
For ex,This will reutrn me
11111
22222
is it possible to add these two numbers in the above given command itself?I can write this to a file and find the sum.
But I prefer to this calculation in the above given line itself.
Any... (3 Replies)
Discussion started by: prasperl
3 Replies
5. UNIX for Dummies Questions & Answers
Hello all,
New to this forum!
I got a Q: i want to find all files with numbers in the file name. e.g. blabla234.pm or fool654.pl
action i took:
ls | egrep '+'
ls | egrep
ls | egrep +
ls | egrep ''
ls | egrep '(+)'
ls | egrep '()'
ls | egrep '(.*.*)'
ls | egrep '.*.*'
ls | grep... (2 Replies)
Discussion started by: RedGrinGo
2 Replies
6. Shell Programming and Scripting
I'm writing a KSH script that will get a file on the command line (such as input.txt), and in this file there is on number per line. The program needs to take the file, read each and determine the lowest number in the file. I currently have a while loop setup that will correctly out put every... (8 Replies)
Discussion started by: denyal
8 Replies
7. Shell Programming and Scripting
Hi All,
I am trying to write a shell script which firstly will search some files and then increase the port numbers mentioned in them by a certain no.
let me clear it with an example-
suppose there r few files a,b,c,d....
file a's content-
<serverEntries xmi:id="ServerEntry_1"... (3 Replies)
Discussion started by: ankushsingh10
3 Replies
8. UNIX for Dummies Questions & Answers
Hello,
I have three files in a directory:
1_700_123456.lst
1_701_123456.lst
1_702_123456.lst
I am trying to use a command via ksh that will list the file that has the lowest number in the second node and put that to a file.
In the example above, it would put 1_700_123456.lst... (2 Replies)
Discussion started by: stky13
2 Replies
9. Shell Programming and Scripting
. . . . . . (3 Replies)
Discussion started by: some124one
3 Replies
10. IP Networking
hither!
whatz the command to find which process is using a specific port number? for example, port 8082? (3 Replies)
Discussion started by: darkcastle
3 Replies