03-21-2013
Its not possible to have two files with the same name in one directory. One suggestion is, you can append a number to it.
For e.g., you could copy "Desktop.jpg" from different locations as "Desktop01.jpg", "Desktop02.jpg"... and so on...
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
how do you cause a running pocess to dump a core file on linux systems??
i tried
sleep 100 &
kill -SEGV PID
but nothing is created
also, what commands can be used to analyze them? (extract useful info from them) (2 Replies)
Discussion started by: TRUEST
2 Replies
2. AIX
hello, I must've screwed something here..
I just had hdisk0 replaced by IBM.. now it shows up as hdisk2 instead.
Before doing that, I've had it split from hdisk1, and reduced from rootvg.
Just did a rmdev -dl hdisk2.. ran cfgmgr, but still shows up as hdisk2 instead of hdisk0.. help! (2 Replies)
Discussion started by: kiem
2 Replies
3. Programming
Hi All,
To avoid race condition, instead of using mutex, semaphore, spinlock etc.... Is there any other mechanism by which we can avoid race condition in an multi-threading environment.
-Thanks (6 Replies)
Discussion started by: rvan
6 Replies
4. Shell Programming and Scripting
Dear all,
there are more than 10 files with .tar.gz extension in my folder i didnt want to extract them i just want to run the query to fetch my necessary data from all the files.
but when i run the command it untar the files in that folder.
gunzip -c abc.tar.gz | tar -xf - | grep REC |... (0 Replies)
Discussion started by: jojo123
0 Replies
5. Shell Programming and Scripting
Source data:
"123","aaa bbb CCC","12000"
"134","HHH,bbc","13000"
i have a delimited file. i want to replace with the pipe.The sed command is not working for replacing a delimeter.
Command :
sed s/\,/\|/g filename
Output : When i run the command it is replacing the columns value... (7 Replies)
Discussion started by: number10
7 Replies
6. Shell Programming and Scripting
Hi Everyone,
1.txt
a
b
c
d
e
f d
g
gg
output:
abc
de (3 Replies)
Discussion started by: jimmy_y
3 Replies
7. Shell Programming and Scripting
Hi,
I have a file with occurances of the string "TO_DATE(<number here>,'J')" at random places. I need minus 2400000 from the number and replace the string with "convert(date, dateadd(dd, <new number here>,'16 Nov 1858')".
I'm finding this difficult as the string isn't necessarily in the... (9 Replies)
Discussion started by: user_invalid
9 Replies
8. Shell Programming and Scripting
Hi,
I am trying to generate list of employees from emp table who joined yesterday.
emp.sh
YEST=$(date --date='1 day ago' +%Y-%m-%d)
cat emp.sql | mysql -u <user> -p<pass> -h <host> -P <port> -D <dbname> > emp.csv
emp.sql
select * from employee where join_date = '$YEST';
I expected... (3 Replies)
Discussion started by: ravi.videla
3 Replies
9. UNIX for Dummies Questions & Answers
Sorry for the odd title, but I couldn't think of an easy way to describe my issue.
Background
I have a home security system that continually sends (via FTP) 4 different still images to a directory on my personal website - cam0.jpg, cam1.jpg, etc. I've written an extremely basic html script to... (4 Replies)
Discussion started by: CinciJeff
4 Replies
10. Shell Programming and Scripting
I have a bash file as following:
#!/bin/sh
deal_file(){
printf $1
printf "\t is a file"
echo
}
main(){
for file in `find "$1" `
do
deal_file $file
done
}
main $1
then I run ./t.sh .,get the following results: (1 Reply)
Discussion started by: 915086731
1 Replies
uuto(1) General Commands Manual uuto(1)
NAME
uuto, uupick - public UNIX system to UNIX system file copy
SYNOPSIS
[options] source-files destination
system]
DESCRIPTION
sends source-files to destination. uses the facility to send files (see uucp(1)), while allowing the local system to control the file
access. A source-file name is a path name on your machine. Destination has the form:
where system is taken from a list of system names that knows about (see in uucp(1) manual entry). user is the login name of someone on the
specified system.
recognizes the following options:
Copy the source file into the spool directory immediately,
and send the copy.
Send mail to the requester when the copy is complete.
The files (or sub-trees if directories are specified) are sent to PUBDIR on system, where PUBDIR is the UUCP public directory Specifically
the files are sent to
PUBDIR
The recipient is notified by electronic mail when the files arrive.
accepts or rejects the files transmitted to the recipient. Specifically, searches PUBDIR for files destined for the user. For each entry
(file or directory) found, the following message is printed on the standard output:
file-name] dirname]
then reads a line from the standard input to determine the disposition of the file:
<new-line> Go on to next entry.
Delete the entry.
Move the entry to named directory
dir (current directory is default). Note that, if the current working directory is desired for dir, do specify any
parameter with A construction such as is erroneous, and results in loss of data.
Same as except move all the files sent from system.
Print the contents of the file.
Stop.
EOT (control-D) Same as
Escape to the shell to execute
command.
Print a command summary.
invoked with the option searches only the PUBDIR for files sent from system.
WARNINGS
To send files that begin with a dot (such as the filename must contain a corresponding dot. For example: and are correct, whereas and are
incorrect.
FILES
PUBDIR public directory
SEE ALSO
mail(1), uuclean(1M), uucp(1), uustat(1), uux(1).
Tim O'Reilly and Grace Todino,
O'Reilly & Associates, Inc. USA.
Grace Todino and Dale Dougherty,
O'Reilly & Associates, Inc. USA.
STANDARDS CONFORMANCE
uuto(1)