Note that since you are not checking for the order of those two strings, a line that has "nnnnnn" to the left of "bbbbb" will also be affected (line # 2 for example).
Hello All,
Can you help me with this ,
I need to search a pattern replace it with the new pattern in all the files in a directory.
what would be the easiest way to do that?
Thanks in advance. :)
Sam, (6 Replies)
Hello All,
I have a string "CP_STATUS OSSRC_R6_0_Shipment_R1H_CU AOM_901046 R1H_LLSV1_2008031", and I just want to extract LLSV1, but I dont get the expected result when using the sed command below.
# echo "CP_STATUS OSSRC_R6_0_Shipment_R1H_CU AOM_901046 R1H_LLSV1_2008031" | awk '{print... (4 Replies)
I am trying to do some thing like this ..
In a file , if pattern found insert new pattern at the begining of the line containing the pattern.
example:
in a file I have this.
gtrow0unit1/gctunit_crrownorth_stage5_outnet_feedthru_pin
if i find feedthru_pin want to insert !! at the... (7 Replies)
Hi All,
I have a requirement where I have to find a pattern in a file and comment the whole line containing the search pattern. Any ideas in shell is welcome.
Thanks in advance,
Regards,
Arun (3 Replies)
Hey folks!
I am new to shell-scripting, but I have a problem that I would like to solve using a script. I create very large html forms, used for randomized trials. In these forms, each question is supplied with a variable that looks something like this: PROJECT_formNN
Where NN is the question... (1 Reply)
Hi,
My problem is that I have to search a changing pattern and replace it with the wild card char "*"
i/p: 99_*_YYYYMMDD_SRC.txt.tar.gz
o/p: 99_*_*_SRC.txt.tar.gz
The problem is that YYYYMMDD pattern is not static. It could be YYYYMMDDHHMI or could be YYYYMMDDHHMISS.
Can... (10 Replies)
I have three variables $a, $b and $c
$a = file_abc_123.txt
$b = 123
$c = 100
I want to search if $b is present in $a. If it is present, then i want to replace that portion by $c.
Here $b = 123 is present in "file_abc_123.txt", so i need the output as "file_abc_100.txt'
How can this be... (3 Replies)
Hi Guys!
Unix newbie here!
Have a requirement for which I have been scouting the forums for a solution but has been out of luck so far :(
I have a file which contains the following:-
TEST1|TEST2|"TEST3|1@!2"|TEST5
My sed command should result in either one the following output:-... (6 Replies)
I have this fileA
TEST FILE ABC
this file contains ABC;
TEST FILE DGHT this file contains DGHT;
TEST FILE 123
this file contains ABC,
this file contains DEF,
this file contains XYZ,
this file contains KLM
;
I want to have a fileZ that has only (begin search pattern for will be... (2 Replies)
Discussion started by: vbabz
2 Replies
LEARN ABOUT DEBIAN
simulpic
NAME(1) General Commands Manual NAME(1)NAME
simulpic - Microchip PIC 16F84 simulator
SYNOPSIS
simulpic
DESCRIPTION
simulpic is a program that simulates the behaviour of a Microchip 16F84 microcontroller.
The program presents a command line interface and accepts the following commands:
h Give a summary of all the commands
l <filename>
Read program memory from IHX8M-format file <filename>
dr View registers
dg View general registers
dee View EEPROM data memory
dpm View program memory
dp View IO pins state
ds View stack
d [<address>]
Disassemble from <address> (or PC)
s [<number>]
Execute <number> steps
g <time>
Execute until <time>
bp [<address>]
Set/clear breakpoint
pa ppppp
Set RA io_port state (p = 0, 1, -, u)
pb ppppp
Set RB io_port state (p = 0, 1, -, u)
pm p Set MCLR state (p = 0, 1)
io [<filename>]
Open inputs file
ic Close inputs file
ro [<filename>]
Open report file
rc Close report file
eo [<filename>]
Open graphic file
ec Close graphic file
st Set sampling frequency (# instr.) for graphics file
f Set clock frequency
por Power-on reset
q Quit
OPTIONS
This program has no options.
SEE ALSO
You can find more information about the PIC 16F84 microcontroller on the Microchip WWW site http://www.microchip.com/
AUTHOR
This manual page was written by Samuel Tardieu <sam@debian.org> and revised by Deva Seetharam (deva@alum.mit.edu), for the Debian GNU/Linux
system (but may be used by others).
January 24, 2005 NAME(1)