Search Results

Search: Posts Made By: jathin12
2,251
Posted By jathin12
sort lines in different files based on the starting letter
Hi ,,
i have the below file...

D 2342135
B 214236
C argjlksd
V lskjrghaklsr
C slkrgj
B sdg4tsd
E aslkgjlkasg


i want to sort the lines into different files based on the starting...
4,084
Posted By jathin12
use of \rm -f
use of \rm -f.

can any body tell me the sue of the backslash at the begining of the command?
5,329
Posted By jathin12
thanks a ton..... :b::b::b:
thanks a ton..... :b::b::b:
5,329
Posted By jathin12
i guess that would be fine. but can you...
i guess that would be fine.

but can you please help me to understand the code.

and please explain me why you did not use \gm at the end.:rolleyes:
5,329
Posted By jathin12
i think i will make my requirement clear.. ...
i think i will make my requirement clear..

if &xxxxxx; is present in the string then it should replace the & with &

but if the xxxxxx (which can be longer) contains a &. then it should not...
5,329
Posted By jathin12
but the solution fails if the input is ...
but the solution fails if the input is

<p>A policy insight into the&amp;#x2013; R&amp;Dpatent relationship</p>


the desired result is
<p>A policy insight into the&#x2013; R&amp;Dpatent...
5,329
Posted By jathin12
sorry for the late reply.. the desired...
sorry for the late reply..


the desired output will be
<p>A policy insight into the R&amp;D&#x2013;patent relationship</p>
5,329
Posted By jathin12
can you check with this <p>A policy...
can you check with this

<p>A policy insight into the R&amp;D&amp;#x2013;patent relationship</p>
5,329
Posted By jathin12
the sample input <p>A policy insight into...
the sample input

<p>A policy insight into the R&amp;D patent relationshi&amp;ecute;p</p>


expected output
<p>A policy insight into the R&amp;D patent relationshi&ecute;p</p>


but the present...
5,329
Posted By jathin12
oh sorry. I wanted to re iterate the...
oh sorry.

I wanted to re iterate the requirement.

the present code is (\w\W*\w+\)

will remove the string "amp;" in the &amp;xxxxx&ecute; even if the xxxxx is a part of \w* or \W*.

now...
5,329
Posted By jathin12
i am a beginner in unix, so just want to...
i am a beginner in unix,

so just want to reconfirm what that code will do.

can you give a few line explanation.
5,329
Posted By jathin12
perl negating Regular Expression
hi all,

I have this particular piece of code

perl -pi -e 's#\&amp\;(\w\W*\w+\;)#\&$1#gm' filename.txt


the (\w\W*\w+\;) part should not contain an "&".

That means that if a string...
2,248
Posted By jathin12
yeah i can sort and then use it. As i...
yeah i can sort and then use it.


As i will be using the comm frequently. i need to sort many of such files which has to be comm 'ed later. which creates many temp files.

Ne other method...
2,248
Posted By jathin12
problem with using comm
hi,

I have two unsorted files and want to delete the lines which are common to both.

file 1:

S1069656304010437
S1069656304010449
S1470204501005393
S1069656304010474
S0001209208001294...
10,198
Posted By jathin12
yep i am using tcsh. sorry i didn't mention that...
yep i am using tcsh. sorry i didn't mention that before.

But the code does not work!!!

it deletes all the content..

i want to delete only the blank lines

file1.lst
abcd
abcdef...
10,198
Posted By jathin12
Missing name for redirect.
i got this now

Missing name for redirect.
10,198
Posted By jathin12
File already exists error while using '>' operator
hi
i am using the below code

grep -v '^$' file1.lst >file1.lst

but it gives file1.lst already exists.
And i want to over rite on the same file

Whats the work around?
2,717
Posted By jathin12
No, Thanks. This was what i wanted.
No, Thanks. This was what i wanted.
2,717
Posted By jathin12
Delete Strings that are present in another file
HI,

if a String is present in file1.txt, i want to delete that String from file2.txt.

How can i do this??

I am sure that the file1.txt is a subset of file2.txt.
Showing results 1 to 19 of 19

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