My task is to copy all files from many directories in one. The big problem i encounter is that some files in different directory have the same names. Is they are way to copy the files that have same names in a sub directory ( need to preserve the name of the files unchanged )
I have list with all the files i have to copy.
Example
I need to copy all the files in:
ps: the threat name is wrong if someone na change it to "How to deal with files who have the same name"
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)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT MOJAVE
removable-media
removable-media(9P) Kernel Properties for Drivers removable-media(9P)NAME
removable-media - removable media device property
DESCRIPTION
A device that supports removable media--such as CDROM, JAZZ, and ZIP drives--and that supports power management and expects automatic
mounting of the device via the volume manager should export the boolean (zero length) property removable-media. This property enables the
system to make the power state of the device dependent on the power state of the frame buffer and monitor. See the power.conf(4) discussion
of the device-dependency-property entry for more information.
Devices that behave like removable devices (such as PC ATA cards, where the controller and media both are removed at the same time) should
also export this property.
EXAMPLES
Example 1: removable-media Entry
An example of a removable-media entry from the .conf file of a driver is shown below.
# This entry keeps removable media from being powered down unless
# the console framebuffer and monitor are powered down
#
removable-media=1;
Example 2: Implementation in attach()
Below is an example of how the entry above would be implemented in the attach(9E) function of the driver.
xxattach(dev_info_t *dip, ddi_attach_cmd_t cmd)
{
...
if (ddi_prop_create(DDI_DEV_T_NONE, dip, DDI_PROP_CANSLEEP,
"removable-media", NULL, 0)) != DDI_PROP_SUCCESS)
goto failed;
...
}
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO power.conf(4), pm(7D), attach(9E), detach(9E), ddi_prop_create(9F)
Writing Device Drivers
SunOS 5.10 15 Jun 2001 removable-media(9P)