04-22-2011
how to copy a file without remove the contents of the target file?
Hello every body,
Kindly support me to "copy a file without remove the contents of the target file"
Thanks in advance.
Ahmed Amer
Cairo,Egypt
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to capture contents of a file between 2 strings into another file
for eg all lines in between the keywords "start log" and "end log" should be copied into another file (4 Replies)
Discussion started by: misenkiser
4 Replies
2. Shell Programming and Scripting
Could someone show me how to copy the contents of a file to the clipboard automatically without manually selecting its contents? I just want to press the "Paste Key" to show the results. I wish to use this in a ksh script.
I'm using Solaris.
Thanks! (5 Replies)
Discussion started by: ilak1008
5 Replies
3. UNIX for Dummies Questions & Answers
Hi ,
I want to append the contents of many files (not knowing exactly how many files, i will get) in to one target file on a day today basis.
The file names are similar except last value (which is sequence number)
eg) file1_20061026_1
file1_20061026_2 etc.,
How can i read all the files... (2 Replies)
Discussion started by: gopskrish
2 Replies
4. Shell Programming and Scripting
Hi All,
I want to delete the contents of few files which are really huge in size.
How the same can be done by using sed. Is there any other alternative to sed.
Thanks in advance (10 Replies)
Discussion started by: sumesh.abraham
10 Replies
5. Shell Programming and Scripting
Hi all
I need to copy the entire contents of one file into an existing file at a specific location. I know the exact line number where I need to put it. It appears I would use either sed or awk to do this, but I have been unsuccessful so far:
File A
line 1
line 2
line 3
line 4
... (6 Replies)
Discussion started by: gshepherd7
6 Replies
6. Shell Programming and Scripting
Hi All,
I want to edit my gate level netlists by searching for the content between two patterns
eg:
ff1 \test/a0 ( .CLK(\test/ClkInt0_acb_00x1 ),.D(\test/Rakicc ), .QB(\test/X ), .VDD(1'b1), .VSS(1'b0));
ff1 \test/a1 ( .CLK(\test/medis0_acb_00x1 ),.D(\test/hedwc ), .QB(\test/X ),... (6 Replies)
Discussion started by: naveen@
6 Replies
7. Shell Programming and Scripting
Hi,
I am stuck up with a problem of copying the contents of a directory where one of the folder name is changed daily.
Problem:
I have the folder structure as:
RefWorlds2/LINGCC4_X64/odsdev/odessy/UTI/621GA_build_xxx/.../..
In the above path the build number (xxx) will be changed... (3 Replies)
Discussion started by: SathaKarni
3 Replies
8. UNIX for Dummies Questions & Answers
I have ftp'd to a machine and have to copy a file from one directory to other. I thought once I am logged in using ftp, cp command would do it. But when I run the cp command, I get the following:
ftp> cp * ../../../../maint/
usage: cp
Is using cp the only/right option?
Thanks in advance! (2 Replies)
Discussion started by: sunny8107
2 Replies
9. Shell Programming and Scripting
I need to write a script (in bash) that copies the content of the first file in each folder of a directory to the second file in the same folder. I tried this and it didn't work - it just came back with errors and I'm not sure how to fix it. Help is very much appreciated!
for mpdir in... (4 Replies)
Discussion started by: LeftoverStew
4 Replies
10. Shell Programming and Scripting
Hi All,
I am a beginner in this and trying to write a shell script in linux which will :
1. Ask for a file name and check if its exists.
2. If file exists only then it will ask for the new target folder, after entering target folder name it will check if it exists.
3. If target folder... (3 Replies)
Discussion started by: ashish_neekhra
3 Replies
LEARN ABOUT DEBIAN
gtk2::gdk::cairo::context
Gtk2::Gdk::Cairo::Context(3pm) User Contributed Perl Documentation Gtk2::Gdk::Cairo::Context(3pm)
NAME
Gtk2::Gdk::Cairo::Context
HIERARCHY
Cairo::Context
+---- Gtk2::Gdk::Cairo::Context (Perl subclass)
DESCRIPTION
This is some inter-operation between Cairo (see Cairo) and Gdk things.
A "Gtk2::Gdk::Cairo::Context" lets Cairo draw on a Gdk drawable (window or pixmap). It's a Perl-level subclass of "Cairo::Context" and the
various functions below can be used as methods on it.
The methods can also be used on other "Cairo::Context" as plain functions. For example "set_source_pixbuf" can setup to draw from a
"Gtk2::Gdk::Pixbuf" to any Cairo context,
my $cr = Cairo::Context->create ($surface);
Gtk2::Gdk::Cairo::Context::set_source_pixbuf ($cr, $pixbuf, $x,$y);
$cr->paint;
METHODS
gdkcr = Gtk2::Gdk::Cairo::Context->create ($drawable)
o $drawable (Gtk2::Gdk::Drawable)
$gdkcr->rectangle ($rectangle)
$gdkcr->rectangle ($x, $y, $width, $height)
Gtk2::Gdk::Cairo::Context::rectangle ($anycr, $rectangle)
o $rectangle (Gtk2::Gdk::Rectangle)
The 4-argument x,y,width,height is the base Cairo::Context style. This extends to also take a "Gtk2::Gdk::Rectangle".
$gdkcr->region ($region)
Gtk2::Gdk::Cairo::Context::region ($anycr, $region)
o $region (Gtk2::Gdk::Region)
$gdkcr->reset_clip ($drawable)
Gtk2::Gdk::Cairo::Context::reset_clip ($anycr, $drawable)
o $drawable (Gtk2::Gdk::Drawable)
Since: gtk+ 2.18
$gdkcr->set_source_color ($color)
Gtk2::Gdk::Cairo::Context::set_source_color ($anycr, $color)
o $color (Gtk2::Gdk::Color)
$gdkcr->set_source_pixbuf ($pixbuf, $pixbuf_x, $pixbuf_y)
Gtk2::Gdk::Cairo::Context::set_source_pixbuf ($anycr, $pixbuf, $pixbuf_x, $pixbuf_y)
o $pixbuf (Gtk2::Gdk::Pixbuf)
o $pixbuf_x (double)
o $pixbuf_y (double)
$gdkcr->set_source_pixmap ($pixmap, $pixmap_x, $pixmap_y)
Gtk2::Gdk::Cairo::Context::set_source_pixmap ($anycr, $pixmap, $pixmap_x, $pixmap_y)
o $pixmap (Gtk2::Gdk::Pixmap)
o $pixmap_x (double)
o $pixmap_y (double)
Since: gtk+ 2.10
SEE ALSO
Gtk2
COPYRIGHT
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
perl v5.14.2 2012-05-27 Gtk2::Gdk::Cairo::Context(3pm)