08-05-2005
Quote:
Originally Posted by Ygor
Try cp -p to preserve timestamps.
ya... i use -p and it works...
but i just puzzle with what happened cos i discover that issue accidentally because i forgot to put -p in my script
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I am trying to find files in a directory and don't want to search in the sub directories and using the command
find . \( ! -name . -prune \) -mtime +1 -name '*.log'
and is working fine.
But when I am trying with absolute path then is not working like
find /home/subodh \( ! -name... (1 Reply)
Discussion started by: subodh.sharma
1 Replies
2. UNIX for Dummies Questions & Answers
All,
I am new to unix and i have the following requirement.
I have file(s) landing into input directory with timestamp, first i want to copy all these files into seperate directory then i want to rename these files without timestamp and also remove header,trailer from that file..
Could... (35 Replies)
Discussion started by: ksrams
35 Replies
3. UNIX for Dummies Questions & Answers
So tried:
cp -r -p test1/ user@machine:///srv/www/vhosts/domain.co.uk/httpdocs/backup/
but this didn't work either :(
Anyone able to help with this?
Many thanks
Mr M (3 Replies)
Discussion started by: misterm
3 Replies
4. UNIX for Advanced & Expert Users
Hi,
I have problems with the cc option in mailx command. Just went through some of the similar threads but none provides a satisfactory explanation.
I have a script using the mailx command in the following way:
(echo `cat mailsub.txt` ; uuencode attachment.csv attachment.csv) | mailx -s... (2 Replies)
Discussion started by: SmithaN
2 Replies
5. Shell Programming and Scripting
I need to be able to choose an option in order to copy a file. So far, I have this:
echo "Please input file name after option and use -c to copy, -r
replace, or -x to delete"
if
then
echo "You must provide a filename!"
exit 1
fi
if
then
cp -- "$@"
echo... (5 Replies)
Discussion started by: squardius
5 Replies
6. Shell Programming and Scripting
I want to add a "-r <remote_host>" option to my ksh script, causing the script to run a script of the same name on the specified remote host. The remote invocation should itself include all the command-line options of the original invocation, less the -r option.
For example, this invocation:
... (7 Replies)
Discussion started by: mattmiller
7 Replies
7. Shell Programming and Scripting
Hello everyone. I am new to shell scripting and i am required to create a shell script, the purpose of which i will explain below.
I am on a solaris server btw.
Before delving into the requirements, i will give youse an overview of what is currently in place and its purpose.
... (2 Replies)
Discussion started by: goddevil
2 Replies
8. Shell Programming and Scripting
Hi
I have a prompt like this:
PS1='\\u@\h \\w $(es=$?; ] && echo "\" || echo "\")\$\'
It works like it should, but have a bug.
Problem is the counting of hidden files
$(($(ls -ad .* | wc -l)-2))
echo $(($(ls -ad .* | wc -l)-2))
The . seems to create the problem when I cut and past to... (3 Replies)
Discussion started by: Jotne
3 Replies
9. Shell Programming and Scripting
is there any single command for
cat file1 > file2
cp /dev/null file1
The original file must retain intact but it should get empty. Actually, the contents needs to be processed by another process and for new entries, the file must remain there with zero records. (4 Replies)
Discussion started by: busyboy
4 Replies
10. OS X (Apple)
Hello, fellow Unixers and Macers,
I'll run several OS X versions each on its own dedicated partition. Partitions won't be seeing each other (by editing fstab). Question: will I be able to copy files between those partitions? Partition #1: Mavericks. Partition #2: HighSierra (2 Replies)
Discussion started by: scrutinizerix
2 Replies
XWORD(1) General Commands Manual XWORD(1)
NAME
xword - do crossword puzzles in the Across Lite format
SYNOPSIS
xword [puzzlefile.puz]...
DESCRIPTION
Xword is a GTK program for doing crossword puzzles. It can read and write puzzles in the Across Lite file format. Consequently, it works
well for doing puzzles from The New York Times. As well as a clock, it supports printing. It also auto-saves puzzles as you solve them so
that you can return to partially completed puzzles.
USAGE
First, locate a puzzle on the web. The best place to go is the web site of The New York Times. However, it costs money to access these puz-
zles. Free puzzles are available from The Houston Chronicle.
After you have found a puzzle, click on it in your web browser. Xword will open the puzzle and you can start solving. You can also choose
to save the puzzle on your hard disk. Then you can open the puzzle using Xword later.
After you have worked on a puzzle for a while, you may want to save your work. There are two ways to save. The easiest way is to close
Xword without any further action. The next time you open the same puzzle (either by opening the .puz file or by clicking the same link on
the web), you will be asked whether you want to continue where you left off. If you choose to continue, all your correct and incorrect
answers will be saved, as well as the time on the clock.
However, this technique only works for opening the puzzle on the same computer. If you need to open the saved puzzle on a different com-
puter, then you can choose "Save" from the "File" menu. The saved file can be opened with Xword on any computer. However, incorrect answers
and the time on the clock will not be saved.
To print a puzzle, select "Print" from the "File" menu. You can see what the printed puzzle will look like by clicking "Print Preview". You
can select the paper size and orientation by clicking on the "Paper" tab (puzzles are usually easier to read in landscape mode).
Sometimes a puzzle will be locked so that the answers are unavailable. Unfortunately, Xword's support for locked puzzles is somewhat
flaky. When using a locked puzzle, you should not click on the "Check" or "Solve" buttons, since they will give incorrect information. How-
ever, you can still use Xword to enter answers for a locked puzzle. Later, when an unlocked version of the puzzle is released (usually the
next day), open it using Xword. When asked, choose to continue where you left off. Now you can use the "Check" and "Solve" buttons to see
how well you did. Sometimes crosswords will come with a four-digit code to unlock a locked puzzle file. This code is not needed by Xword
...
For more information, see the project home page at <https://alioth.debian.org/projects/xword/>.
AUTHOR
xword was originally written by Bill McCloskey <bill.mccloskey@gmail.com>.
This manual page was written by John Sullivan <johns@debian.org>, for the Debian project (but may be used by others).
BUGS
Please report bugs to <https://alioth.debian.org/tracker/?atid=413106&group_id=100419&func=browse>.
December 3, 2007 XWORD(1)