What is the easiest way to delete a line from a file?
I have a file that contains list for Domestic and Foreign customers.
I want to delete all lines staring with Foreing.
TIA (4 Replies)
Hi all,
I would like to delete a line in file.txt which has a list of filename.
example:
file_a
file_b
file_c
lets say i have file_b in my directory, then i should delete file_b in file.txt and get output file.txt with only file_a and file_b.
Below is my script, my result is still ... (12 Replies)
Hi ,
I have a file it content is like that
/vol.nas/u08/aip_triage/hany/Tesko/:CC::RPAS
/home/biblawh/myscript:CC::RPAS
i need to search for a certain pattern inside that file and delete the line if i find this pattern without redirecting the output into another file .
so i used the... (0 Replies)
Hi,
Need to delete a line from a file, file is too large so cannot use vi.
I know the line number that has to be deleted...
How can this be done ? (8 Replies)
Hello, I have to deal with several files that will be named something like this:
E00001.TXT, E00002.TXT etc.
Each file will have a alpha character on the first position of the first line which I want to place in a variable, then delete the entire line leaving the remainder of text. This new file... (6 Replies)
hi all,
i have trackfile.txt which contains the data as
0 /home8/mc09ats/UnixCw/t1
1 /home8/mc09ats/UnixCw/t2
2 /home8/mc09ats/UnixCw/t3
3 /home8/mc09ats/UnixCw/t4
if user says delete 1 then i want to delete 1 /home8/mc09ats/UnixCw/t2
line from... (3 Replies)
Hi gurus,
I have one file it may contains one line is "START" or "FINISH" either one of them.
I use below command to delete it, but it doens't work.
sed '/^START\|^END/d' <inputfile > outfile
anybody can help me to fix this.
thanks in advance. (12 Replies)
Hi ,
i have a file with data as below.This is same file. But actual file contains to many rows.
i want to search for a string "Field 039 00" and delete that line and previous 3 lines in that file.. Can some body suggested me how can i do using either sed or awk command ?
Field 004... (7 Replies)
Hi, I want to do file1 to file2. Rows will be different every time. Thanks.
file1
Fru-Name :BCNMB-B Fru-Location :/chassis-1/motherboard-1 Node-Name :LMP-1-1-1
Fru-Name :BMPP2-B Fru-Location :/chassis-1/slot-1 Node-Name :CFPU-0
Fru-Name :BMPP2-B Fru-Location... (2 Replies)
Discussion started by: ozcanaydin
2 Replies
LEARN ABOUT DEBIAN
dpgen_rf1
DPGEN_RF1(3) Alliance - genlib User's Manual DPGEN_RF1(3)NAME
DPGEN_RF1, DPGEN_RF1R0 - Register File Macro-Generator
SYNOPSIS
#include <genlib.h>
void GENLIB_MACRO (DPGEN_RF1, char *modelname, long flags, long N);
void GENLIB_MACRO (DPGEN_RF1R0, char *modelname, long flags, long N);
DESCRIPTION
Generate a register file of regNumber words of N bits whitout decoder named modelname. The DPGEN_RF1R0 variant differs from the DPGEN_RF1
in that the register of address zero is stuck to zero. You can write into it, it will not change the value. When read, it will always
return zero.
How it works :
o datain0 and datain1 : the two write busses. Only one is used to actually write the register word, it is selected by the sel signal.
o sel : when set to '0' the datain0 is used to write the register word, otherwise it will be datain1.
o selr, selw : this register file have no decoder, so selr have a bus width equal to regNumber. One bit for each word.
TERMINAL NAMES
1. ckok : clock signal (input, 1 bit).
2. sel : select the write bus (input, 1 bit).
3. selr : the decoded read address (input, regNumber bits).
4. selw : the decoded write address (input, regNumber bits).
5. datain0 : first write bus (input, N bits).
6. datain1 : second write bus (input, N bits).
7. dataout : read bus (output, N bits).
8. vdd : power.
9. vss : ground.
EXAMPLE
GENLIB_MACRO(DPGEN_RF1, "model_rf1x8_32"
, F_BEHAV|F_PLACE
, 32 /* Words size. */
, 8 /* Number of words. */
);
GENLIB_LOINS( "model_rf1x8_32"
, "instance1_rf1_32"
, "ckok"
, "sel"
, "selr[7:0]"
, "selw[7:0]"
, "datain0[31:0]"
, "datain1[31:0]"
, "dataout[31:0]"
, "vdd", "vss", NULL
);
SEE ALSO GENLIB_MACRO(3), genlib(1)ASIM /LIP6 30 July 2004 DPGEN_RF1(3)