Hi,
I have a file that contains the following contents:
14:05 apple
orange123
456mango
16:45 banana
I wanted to replace ONLY the "14:05 " and "16:45" with nothing and trying to use the following syntax
sed -e 's/*//g' -e 's/^: //g' my_file > new_temp
cat new_temp
apple
orange... (2 Replies)
Hi guys,
got a problem here with sed on the command line.
If i have a string as below:
online xx:wer:xcv: sdf:/asdf/http:https-asdfd
How can i match the pattern "http:" and replace the start of the string to the pattern with null?
I tried the following but it doesn't work:
... (3 Replies)
I have several files that I need to modify using sed. I know how to do that, but now a new requirement has come up.
Now, I need to make changes to all lines that don't start with certain strings. For example, I need to change all lines except for lines that start with "a", "hello there",... (3 Replies)
Hi all,
I have one question that hopefully isn't too complicated for the more advanced users here. In one of the Solaris KSH scripts I'm working on, is it possible to script the following:
- If there "is" an empty blank line "at the end" of /tmp/text.txt, then remove only that one empty... (3 Replies)
Hi,
I need to run a search and replace on a large database,
what I need to change is all instances of
#### (eg. 1764 or 1964)
to
(####) (eg. (1764) or (1964))
But there might be other numbers in there such as
(1764) and I do not need those changed to ((1764))
How can I... (7 Replies)
Hi all,
I am trying to modify an xml file and I wanted to search and replace using the sed command but here is my issue. I want to search and replace maximumHeapSize="512" and replace it with maximumHeapSize="768" but I have multiple files with different values so I can't search for... (2 Replies)
Hello,
Need a little bit of help. Basically I need to replace lines in a file which were calculated wrong as it would 12 hours to regenerate the data. I need to calculate values based on other files which I've managed to figure out with grep/cut but now am stuck on how to shove these new... (21 Replies)
Update:
Last two days the number of users on the site has peaked (normally around 10AM US Eastern Time) between 4,300 and 4,500.
This is the highest number of consistent concurrent users in at least 3 years.
... and the traffic continues to rise week-over-week. (5 Replies)
Discussion started by: Neo
5 Replies
LEARN ABOUT DEBIAN
net::google::code::issue::search
Net::Google::Code::Issue::Search(3pm) User Contributed Perl Documentation Net::Google::Code::Issue::Search(3pm)NAME
Net::Google::Code::Issue::Search - Issues Search API
DESCRIPTION INTERFACE
search ( can => 'all', q = 'foo', sort => '-modified', limit => 1000, load_after_search => 1 )
do the search, the results is set to $self->results,
which is an arrayref with Net::Google::Code::Issue as element.
If a "sort" argument is specified, that will be passed to google code's issue list. Generally, these are composed of "+" or "-"
followed by a column name.
limit => Num is to limit the results number.
load_after_search => Bool is to state if we should call $issue->load after search
return true if search is successful, false on the other hand.
updated_after( date_string || DateTime object )
find all the issues that have been updated or created after the date. the issues are all loaded.
return true if success, false on the other hand
project
results
this should be called after a successful search. returns issues as a arrayref.
AUTHOR
sunnavy "<sunnavy@bestpractical.com>"
LICENCE AND COPYRIGHT
Copyright 2008-2010 Best Practical Solutions.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2010-01-29 Net::Google::Code::Issue::Search(3pm)