I'm trying to change one string from a file contening this patern:
xxxx-xxxx
4 numbers - end 4 other numbers
This is a sample of the file:
as you see there is a line :=020 \\$a0211-1942
So I would like to detect deep in a big file with a lot of records like this. and every row with xxxx-xxxx replace the code =020 by =022
I know that sed can do this but I have no idea how... Some one can help ??
Thanks a lot
Last edited by vbe; 04-09-2014 at 05:37 AM..
Reason: code tags not icode please
can some one help me with a perl command
i have to search and replace a version from a xml-file
so i use in a ksh script a command like this
ssh $GLB_ACC@$GLB_HOST "/usr/contrib/bin/perl -pi -e "s/$curVersion/$new_Version/g" $Dest_dir/epi.xml"
this command worked so far, but the problem... (1 Reply)
using sed to replace a specific string on a specific line number using variables
this is where i am at
grep -v WARNING output | grep -v spawn | grep -v Passphrase | grep -v Authentication | grep -v '/sbin/tfadmin netguard -C'| grep -v 'NETWORK>' >> output.clean
grep -n Destination... (2 Replies)
I have a pattern
username:x:32005:32006::/usr/local/user:/bin/bash
I need to match the line containing username and replace /bin/bash with /usr/local/my/bin/noshell
So it becomes
username:x:32005:32006::/usr/local/user:/usr/local/my/bin/noshell (7 Replies)
I'm trying to update a text file via sed/awk, after a lot of searching I still can't find a code snippet that I can get to work.
Brief overview:
I have user input a line to a variable, I then find a specific value in this line 10th field in this case. After asking for new input and doing some... (14 Replies)
Hi,
I want to replace specific pattern "-2.0000 2" by "1.0000 3" on a particular line (line #5) in a file 1.dat. I have about 50 more files similar to 1.dat in which I want to do this correction.
Can you please suggest how can I make change only at this particular line of a file... (6 Replies)
my requirement is,
consider a file output
cat output
blah sdjfhjkd jsdfhjksdh
sdfs 23423 sdfsdf sdf"sdfsdf"sdfsdf"""""dsf
hellow there
this doesnt look good
et cetc etc
etcetera
i want to replace a line of line number 4 ("this doesnt look good") with some other line
... (3 Replies)
Hi experts,
My file looks something like this.
abcXX4,7,234
abc,defg,45XX23,74,123
The number of commas left of the XX can vary. The question is how can I replace all the commas left of the 'XX' with an underscore?
abcXX4,7,234
abc_defg_45XX23,74,123
Thanks! (5 Replies)
Hi,
I'm trying to replace a string with sed, in a text file containing this pattern:
location alpha
value x
location beta
value y
location gamma
value y
location delta
value y
location theta
value z
...
What I want to achieve is:
Find location beta into text file... (1 Reply)
Discussion started by: TECK
1 Replies
LEARN ABOUT DEBIAN
lfc-dli
LFC-DLI(8) LFC Administrator Commands LFC-DLI(8)NAME
lfc-dli - start the LFC Data Location Interface server
SYNOPSIS
lfc-dli [ -l log_file ]
DESCRIPTION
The lfc-dli command starts the LFC Data Location Interface server. This command is usually executed at system startup time
(/etc/rc.local). This will create a pool of threads, look for requests and pass them to the LFC. When a request has been completed, the
thread becomes idle until it is allocated to another request.
All error messages and statistical information are kept in a log.
The Data Location Interface server listen port number can be defined on client hosts and on the server itself in either of the following
ways:
setting an environment variable DLI_PORT
setenv DLI_PORT 8085
an entry in /etc/shift.conf like:
DLI PORT 8085
If none of these methods is used, the default port number is taken from the definition of DLI_PORT in dli_server.h.
In the log each entry has a timestamp. For each user request there is one message giving information about the requestor (hostname) and
one message DLI98 giving the request itself. The completion code of the request is also logged.
OPTIONS -l log_file
Specifies a different path for the LFC Data Location Interface server log file. The special value syslog will send the log messages
to the system logger syslogd.
FILES
/var/log/lfc-dli/log
EXAMPLES
Here is a small log:
05/18 16:27:21 1942 dli: started
05/18 22:10:33 1942,0 listReplicas: request from lxb2016.cern.ch
05/18 22:10:33 1942,0 listReplicas: DLI98 - listReplicas lfn:/grid/dteam/foo888
05/18 22:10:34 1942,0 listReplicas: returns 0
05/18 22:12:10 1942,0 listReplicas: request from lxb2016.cern.ch
05/18 22:12:10 1942,0 listReplicas: DLI98 - listReplicas guid:41b20a76-2287-4f81-9750-7e2eb4d199c8
05/18 22:12:11 1942,0 listReplicas: returns 0
SEE ALSO Clogit(3), lfc-server(8)LCG $Date$ LFC-DLI(8)