02-10-2011
HTML Code:
cd /home/david/lab3
for i in ls *.save
do
cp $i /home/user113/lab3
done
^^^ above will also work if you modify the 1st line by adding 'tics':
for i in `ls *.save`
Cheers
Momin
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
what command would i wrote to copy files from $folder1 to $folder2 ???? (1 Reply)
Discussion started by: perleo
1 Replies
2. Linux
sir
can any body tell me how i can copy files like
copy c:\abc\pqr\mr.txt c:\windows\my documents\this.txt
i need command in linux like this
really i am a new in linux that is why simple questions
alson can any body explain me how i get current directory tree or path
in windows... (2 Replies)
Discussion started by: sadiquep
2 Replies
3. Shell Programming and Scripting
i need to copy some files from a directory and move the copy files to some destination with the extension .dat
Can any one help on this (5 Replies)
Discussion started by: ranga27
5 Replies
4. UNIX for Dummies Questions & Answers
How can we copy a command string from a previous command line and paste it into the cursor position on the current command line? I know that ^c will not work as the shell will interpret as an interrupt signal.
Thanks, (1 Reply)
Discussion started by: Pouchie1
1 Replies
5. Shell Programming and Scripting
i want to search in the current directory all the files that contain one word for example "hello"
i want to achieve it with the grep command but not with the grep * (2 Replies)
Discussion started by: aintour
2 Replies
6. Shell Programming and Scripting
how can i copy only those files with creation date less then 24 hours. (1 Reply)
Discussion started by: Danish Shakil
1 Replies
7. Shell Programming and Scripting
Hello,
I have a directory in which I have files as follows
CRDT.csv
CRDT.csv.1
CRDT.csv.2
....
CRDT.csv.n
I would like to copy it over to another directory as
crdt_lon.csv
crdt_lon.csv.1
crdt_lon.csv.2
....
crdt_lon.csv.n
I am looking for a one line command but I am... (5 Replies)
Discussion started by: srattani
5 Replies
8. Shell Programming and Scripting
I am new to this forum. I have a script which randomly throws error.Following are steps followed in this script:
Generate Term file
Remove previous term and rpt files from utility directory.
copy term file to utility directory
call sql to generate rpt file using term file as input
copy the... (4 Replies)
Discussion started by: ann15
4 Replies
9. Shell Programming and Scripting
Hello,
I am running below command as root user
#nodetool cfstats tests | grep "Memtable switch count"
Memtable switch count: 12
Where as when I try to run same command as another user it gives different result.
#su -l zabbix -s /bin/bash -c "nodetool cfstats tests | grep "Memtable switch... (10 Replies)
Discussion started by: Pushpraj
10 Replies
10. UNIX for Dummies Questions & Answers
Hi ,
I am trying to take a backup of file before overwriting it with cp command, I am using the command cp -b.
-rw-rw-r-- 1 autoengine murex 0 Jan 22 07:08 a
-rw-rw-r-- 1 autoengine murex 0 Jan 22 07:08 b
cp -b a b
-rw-rw-r-- 1 autoengine murex 0 Jan 22 07:08 a
-rw-rw-r-- 1... (1 Reply)
Discussion started by: Raj999
1 Replies
LEARN ABOUT DEBIAN
svn::notify::html::colordiff
SVN::Notify::HTML::ColorDiff(3pm) User Contributed Perl Documentation SVN::Notify::HTML::ColorDiff(3pm)
Name
SVN::Notify::HTML::ColorDiff - Subversion activity HTML notification with colorized diff
Synopsis
Use svnnotify in post-commit:
svnnotify --repos-path "$1" --revision "$2"
--to developers@example.com --handler HTML::ColorDiff [options]
Use the class in a custom script:
use SVN::Notify::HTML::ColorDiff;
my $notifier = SVN::Notify::HTML::ColorDiff->new(%params);
$notifier->prepare;
$notifier->execute;
Description
This subclass of SVN::Notify::HTML sends HTML formatted email messages for Subversion activity, and if the "with_diff" parameter is
specified (but not "attach_diff"), then a pretty colorized version of the diff will be included, rather than the plain text diff output by
SVN::Notify::HTML.
Usage
To use SVN::Notify::HTML::ColorDiff, simply follow the instructions in SVN::Notify, but when using svnnotify, specify "--handler
HTML::ColorDiff".
Instance Interface
Instance Methods
output_css
$notifier->output_css($file_handle);
This method starts outputs the CSS for the HTML message. SVN::Notify::HTML::ColorDiff adds extra CSS to its output so that it can nicely
style the diff.
output_diff
$notifier->output_diff($out_file_handle, $diff_file_handle);
Reads the diff data from $diff_file_handle and prints it to $out_file_handle for inclusion in the notification message. The diff is output
with nice colorized HTML markup. Each line of the diff file is escaped by "HTML::Entities::encode_entities()".
If there are any "diff" filters, this method will do no HTML formatting, but redispatch to SVN::Notify::output_diff. See Writing Output
Filters for details on filters.
See Also
SVN::Notify
SVN::Notify::HTML
<CVSspam>
To Do
o Add inline emphasis just on the text that changed between two lines, like this:
<http://www.badgers-in-foil.co.uk/projects/cvsspam/example.html>.
o Add links to To Do stuff to the top of the email, as pulled in from the diff. This might be tricky, since the diff is currently output
after the message body. Maybe use absolute positioning CSS?
Author
David E. Wheeler <david@kineticode.com>
Copyright and License
Copyright (c) 2004-2009 Kineticode, Inc. Some Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2011-03-15 SVN::Notify::HTML::ColorDiff(3pm)