Thank you for your reply but that would not solve my problem in this instance.
My scenario is that these should not be updated:
Other sections of the file have the following as standalone lines (with five leading spaces):
As I mentioned, I got round the problem using TextPad (which is a fantastic tool) so my question is an academic one about how single quotes should be managed in sed - the theme of this thread. I am hoping that someone could give me a specific solution to help my understanding.
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)
Need help in finding pattern then replacing pattern that contains multiple
slashes ..
ex .
<imgp src="Attention_web.eps.jpg" align="left">
<imgp src="NewToday062308.eps.jpg">
replace with
<imgp src="/ww2/adpay/liner/Attention_web.eps.jpg" align="left">
<imgp... (2 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)
Hi
i want to search two pattern on same line and replace onther pattern..
INPut file
aaaa bbbbb nnnnnn ttttt
cccc bbbbb nnnnnn ppppp
dddd ccccc nnnnnn ttttt
ffff bbbbb oooooo ttttt
now i want replace this matrix like.. i want search for "bbbbb","nnnnnn" and search and replace for... (4 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)
If condition satisfy, want to find pattern and modify two Fields in Modify.txt
Input.txt
SOURCE1
SOURCE2
SOURCE3
SOURCE4
SOURCE5
SOURCE6
Modify.txt
SOURCE1|SLA|2016/12/11 11:12:11 PM|HMM|11-11-16|
SOURCE2|SLA|2016/13/11 11:12:11 PM|HMM|10-11-16|
SOURCE3|SLA|2016/14/11 11:12:11... (7 Replies)
Discussion started by: Joselouis
7 Replies
LEARN ABOUT DEBIAN
sdate
sdate(1) Debian manual sdate(1)NAME
sdate - never ending September date
SYNOPSIS
sdate [-e|--epoch yyyy-mm] [-l|--lib library] [--] [command]
DESCRIPTION
sdate runs a command in an environment wherein it wraps the libc localtime() and gmtime() calls such that the program will use the eternal
September date. The wrapper functions are in a shared library /usr/lib/libsdate/libsdate.so* which is loaded through the LD_PRELOAD mecha-
nism of the dynamic loader. (See ld.so(8))
OPTIONS -e yyyy-mm, --epoch yyyy-mm
Specify an alternative epoch, default is 1993-09.
-l library, --lib library
Specify an alternative wrapper library.
[--] command
Any command you want to be ran. Use '--' if in the command you have other options that may confuse sdate's option parsing.
-h Display help.
-v Display version.
FILES
/usr/lib/libsdate/* The shared library containing the wrapper functions.
ENVIRONMENT
LD_PRELOAD
LIMITATIONS
Library versions
Every command executed within sdate needs to be linked to the same version of the C library as sdate itself.
SEE ALSO
http://www.catb.org/~esr/jargon/html/S/September-that-never-ended.html
http://www.df7cb.de/projects/sdate/
COPYING
sdate is distributed under the GNU General Public License. (GPL v2 or later).
AUTHORS
Christoph Berg
<cb@df7cb.de>
Debian Project 4620 September 1993 sdate(1)