Search Results

Search: Posts Made By: sa@@
9,252
Posted By sa@@
Replace space by tAB
My file looks like

3 33 210.01.10.0 2.1 1211 560 26 45 1298 98763451112 15412323499 INPUT OK
3 233 40.01.10.0 2.1 1451 780 54 99 1876 78787878784 15423210199 CANCEL OK


Aim is to replace the...
763
Posted By sa@@
Change entries in a file
Hi

My current file looks like this:


id437 duff main 57936 79026 1000 + . ID=Abf022711;source_id=DUFF380.73.2;
id437 Cuff stem 57936 79026 1000 + ...
1,892
Posted By sa@@
Delete specific strings in a file
Hi,
My file has a numerous sttrings.I want to retain those strings which start with stt and delete entries with >C
For eg:
my infile is

>C4603985...
794
Posted By sa@@
no.. its part of a main code which in some...
no..
its part of a main code which in some point should call in this function
794
Posted By sa@@
Given :[][9 ,14 ,4 ,23] next [4,14,23][9] ...
Given :[][9 ,14 ,4 ,23]
next
[4,14,23][9]
i hope am not confusing ..
[4,9,14,23] []
794
Posted By sa@@
Trouble in Sorting
sorting
[][9 ,14 ,4 ,23]

[4,9,14,23] []


can i do it using simple perl script/awk?
1,634
Posted By sa@@
reply
I tried using this code

awk '/assumption/ {
line = $0
..
print line
}
_[i]++
}
1
' infile > outfile.txt

But this gave me a bash error

-bash: outfile.txt: Permission denied...
1,634
Posted By sa@@
addition
thanks but can it done using sed.

Becoz using awk and $3="predictive" command,,it is changing format of the file.

can we do it without mention of column usage
:confused::
1,634
Posted By sa@@
Thanks for the reply. The script you gave didnt...
Thanks for the reply.
The script you gave didnt remove the multiple entry of predictive lines.

Basically I was looking for a command that would insert a predictive line for every assumption ...
1,634
Posted By sa@@
Addition of new line
Hi

I have a file whose contents are as follows:

sorce1 LEN assumption 695 3570 0.770047 - . ID=f000001.1;source_id=A.off_LEN_10008424;
sorce1 LEN ...
1,202
Posted By sa@@
additional doubts
To add on to my previous query,I have some additional questions using the code

sed 's/\(.*\)assumption\(.*\)\(ID=[^.]*\)[^;]*\(;.*\)/\1predictive\2\3\4\n&/' file


In my file, I have some...
1,315
Posted By sa@@
thanks but does the file imread.txt have to be...
thanks but does the file imread.txt have to be in the same place where the code is stored?

Basically we have a config file wherin we mention all the source files and use that to run the script....
1,315
Posted By sa@@
Perl syntax
Query with perl syntax

Aim: is to change a perl script to use a new file

I was required to replace
- entries \"$entries\"
with
-lib <full_path_to_filename>

So in the code...
1,487
Posted By sa@@
it works sir! thanks :):)
it works sir!
thanks :):)
1,487
Posted By sa@@
Doesnt the awk command you mentioned count the ...
Doesnt the awk command you mentioned count the length per line?
I was wondering if there is a way to count length of a particular string.

eg: say for string2
it would count from
...
1,487
Posted By sa@@
[Solved] Length of each string
Hi

I have a file which has sequences which look like this

>String1
aqwertrtrytytyuuijhgddfghhhghhgjhjhhsswekrkmygppdslxmvbnhkwqalldrtjbllnlnlnnnvc
>String2...
1,202
Posted By sa@@
I tried both the codes. The first awk code did...
I tried both the codes.
The first awk code did makethe necessary changes in 3rd column but didnt do the ID change.

As per your advice the 2nd sed command will help in making the changes in ID....
1,202
Posted By sa@@
Adding a line before
Hi
I had a question related to adding a particular line in my file.

My file looks like this

sorce1 LEN assumption 695 3570 0.770047 - . ...
Showing results 1 to 18 of 18

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