Search Results

Search: Posts Made By: Preeti Chandra
1,833
Posted By Preeti Chandra
thank you all..
thank you all..
1,833
Posted By Preeti Chandra
input file contain : list=1 1 1 1 1 1 1 1 1 1 1...
input file contain :
list=1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

expected output :
keep values at 8,10,16,17,22 and put 0 at all other places in the same file.
list=0 0 0 0...
1,833
Posted By Preeti Chandra
sed Command to replace particular value.
Hi ,

My input file contain :
list = 3 14 15 10 9 11 12 18 19 20 21 22 23 24 25 26 6 1 2 3 4 5 7 8 16 17 27 28 30 29

Expected output :
list = 0 0 0 0 0 0 0 18 0 20 0 0 0 0 0 0 6 0 0 3 4 0 0 0...
3,410
Posted By Preeti Chandra
@balajesuri if I defined following variables...
@balajesuri

if I defined following variables -
set x=MOS_13_TM_4
set value=000000110110100100110001111110110110101110101001100111110100011010110111001
set...
3,410
Posted By Preeti Chandra
sed command to replace one value which occurs multiple times
Hi,

My Input File :
"MN.1.2.1.2.14.1.1" :=
"MN_13_TM_4" ( 000000110110100100110001111110110110101110101001100111110100011010110111001 )
"MOS.1.2.1.2.13.6.2" :=
"MOS_13_TM_4" (...
11,351
Posted By Preeti Chandra
Thanks a lot RudiC It is working in tcsh.. ...
Thanks a lot RudiC
It is working in tcsh..

sed -r 's#([^,]*)(,|$)#s/./M/\1\n#g' positions | sed -f- file

---------- Post updated at 04:13 AM ---------- Previous update was at 03:38 AM...
11,351
Posted By Preeti Chandra
@RudiC Thanks you for the solution. can u...
@RudiC Thanks you for the solution.
can u please tell me how to change this command for tcsh shell.
And brief explanation of -
tr ',' $'\n' < positions | sed 's#^#s/./M/#' | sed -f- list
...
11,351
Posted By Preeti Chandra
Output in bash shell- bash-4.1$ cat positions ...
Output in bash shell-
bash-4.1$ cat positions
1,15,16,17,18,63,64,65,66,67,68,69,70,71,72,73,74,75
bash-4.1$ tr ',' $\'\n' < positions | sed 's#^#s/./M/#' | sed -f list
>


My script is in...
11,351
Posted By Preeti Chandra
NOT WORKING ... Error Message - ...
NOT WORKING ...

Error Message -

/home/chandrap> cat positions
1,15,16,17,18,63,64,65,66,67,68,69,70,71,72,73,74,75
/home/chandrap> tr ',' $\'\n' < positions | sed 's#^#s/./M/#' | sed -f list...
11,351
Posted By Preeti Chandra
Hi RudiC, My input file - ...
Hi RudiC,


My input file -
000000011111111000000000111111110000000011111111000000001111111100000000111
000000111101101010010000001101011110100011110010101100101001101000110011110...
11,351
Posted By Preeti Chandra
Hi, My question is how to replace multiple...
Hi,

My question is how to replace multiple columns using sed command.
For e.g. To Change one column I am using below command :

/home/chandrap> cat c...
11,351
Posted By Preeti Chandra
NO.. Input file is in loop one by one i m...
NO..
Input file is in loop
one by one i m replacing each input :
input - 111111111111
output-MMMMMM111111
11,351
Posted By Preeti Chandra
Input file...
Input file -000000011111111000000000111111110000000011111111000000001111111100000000111
000000111101101010010000001101011110100011110010101100101001101000110011110...
11,351
Posted By Preeti Chandra
My question is entirely different. ...
My question is entirely different.
Input-sequence of binary number(it a file contains multiple values)
from this sequence I want to change some particular column for each input

I have to change...
2,776
Posted By Preeti Chandra
Thank you very much for the explanation... ...
Thank you very much for the explanation...

I am not getting the following command purpose-
{gsub(/\"/,"",$1); #### Now if that string found in a line then removing "(which they are there...
11,351
Posted By Preeti Chandra
sed command to replace multiple column in one go
Hi,

I want to replace the value in more than one column.
For one column ,following command is working -
sed 's/./$value_to_replace/$column number' file_name
e.g. suppose this is input...
2,776
Posted By Preeti Chandra
Yes my input file is different .I try to point...
Yes my input file is different .I try to point the area where scan_out[5] is present in my input file :

pattern MAIN ( "dft_jtag_sel", "dft_jtag_si", "dtm_global_rstb",
...
2,776
Posted By Preeti Chandra
Hi, My input file size is huge,but whatever...
Hi,

My input file size is huge,but whatever i pasted here ,you can consider as input.

Output of above command is-


COS_12_TM_4
scan_out[5]
scan_out[9]


I want only - COS_12_TM_4 term
2,776
Posted By Preeti Chandra
As you see in below post My input file - ...
As you see in below post My input file -
"COS_12_TM_4" [ ......
......
"scan_out[5]" ] ;

What I am trying to do is that...
2,776
Posted By Preeti Chandra
this command output is - "scan_out[5]" :...
this command output is -
"scan_out[5]" : output; ## pinName = scan_out[5]; tf = SO ;
"COS_12_TM_4" [
"scan_out[5]" := output [ 0ns:X, 50.000000ns:Q, 100.000000ns:X ];

...
2,776
Posted By Preeti Chandra
Grep command to search pattern corresponding to input from user
One more question:
I want to grep "COS_12_TM_4 pattern from a file look likes :
"COS_12_TM_4" [
"dummy_COS_12_1_TM_4",
"dummy_COS_12_2_TM_4",
"dummy_COS_12_3_TM_4",
"dummy_COS_12_4_TM_4",...
4,473
Posted By Preeti Chandra
Thank you guys...It is working now.. ...
Thank you guys...It is working now..

---------- Post updated at 02:05 AM ---------- Previous update was at 01:51 AM ----------

One more question:
I want to grep"COS_12_TM_4 pattern from a...
4,473
Posted By Preeti Chandra
Tcsh script - sed command for special characters
Hi,

I am using sed command to replace following line in gz file-
sed -n 's/""COS_12_TM_1" ( 1101110101001001010011110100000010110100010010000000100000000010XX010000000 )"/""COS_12_TM_1" (...
Showing results 1 to 23 of 23

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