10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file called COMPLIST as follows that contains 4 digit numbers.0002
0041 (3 Replies)
Discussion started by: sph90457
2. UNIX for Dummies Questions & Answers
Hi guys, I am a newbie here :wall:
I need a script that can search for a file in a directory and copy the contents of that file in a new file.
Please help me. :confused: Thanks in advance~ (6 Replies)
Discussion started by: zel2zel
3. Shell Programming and Scripting
We have 2 file XML files - FILE1.XML and FILE2.xml - we need copy the contents of FILE1.XML and replace in FILE2.xml pattern "<assignedAttributeList></assignedAttributeList>"
2. <item type="Manufactured">
4. ... (0 Replies)
Discussion started by: balrajg
4. Shell Programming and Scripting
I just want to copy the file name from the input file. Below is the code I have used but the answer comes with quotation .
$ cat test.sh
$ sh test.sh grants.dat
How do I remove the quotation
Thanks (2 Replies)
Discussion started by: Krishnaramjis
5. UNIX for Dummies Questions & Answers
I don't know much about UNIX. Here is a problem I need to resolve.
There is a file "file1.txt". It contains the line "End Of Copy" somewhere in the middle. I need to copy file1.txt to another file, "file2.txt" until this line. So,
if the "file1.txt" is
Line 3... (3 Replies)
Discussion started by: Eugene
6. UNIX for Dummies Questions & Answers
is there anyway to copy a file which i don't have permission? (1 Reply)
Discussion started by: dakid
7. UNIX for Dummies Questions & Answers
I have two files, lets say file1.pun and file2.pun
Now i need to copy the first 10 lines of file1.pun and paste them on the head of file2.pun without deleting the contents of file2.pun.
I have to do this from command line only.
Can u plz guide me in this regards (4 Replies)
Discussion started by: jasjot31
8. Filesystems, Disks and Memory
Hi, Im trying to take a database backup. one of the files is 26 GB. I am using cp -pr to create a backup copy of the database. after the copying is complete, if i do du -hrs on the folders i saw a difference of 2GB.
The weird fact is that the BACKUP folder was 2 GB more than the original one!
... (1 Reply)
Discussion started by: 0ktalmagik
9. Shell Programming and Scripting
I have a script which will generate three csv files. i want to copy the contents of these csv files into a .XLS file but in different worksheets. Can a this be done in the same script? :confused:
Can Perl come to my help in coping the csv files into different worksheets of .XLS file ?... (0 Replies)
Discussion started by: nimish
i have to copy a file from one directory to another directory in linux.
how to do this using a c function?
kindly ans to my query.
thanks (2 Replies)
Discussion started by: svh
volcheck(1) User Commands volcheck(1)
volcheck - checks for media in a drive and by default checks all floppy media
volcheck [-v] [-i secs] [-t secs] pathname
The volcheck utility tells Volume Management to look at each dev/pathname in sequence and determine if new media has been inserted in the
The default action is to volcheck all checkable media managed by volume management.
The following options are supported:
-i secs Set the frequency of device checking to secs seconds. The default is 2 seconds. The minimum frequency is 1 second.
-t secs Check the named device(s) for the next secs seconds. The maximum number of seconds allowed is 28800, which is 8 hours. The fre-
quency of checking is specified by -i. There is no default total time.
The following operands are supported:
pathname The path name of a media device.
Example 1: A sample of the volcheck command.
The following example
example% volcheck -v /dev/diskette
/dev/diskette has media
asks Volume Management to examine the floppy drive for new media.
The following example
example% volcheck -i 2 -t 600 /dev/diskette1 &
asks Volume Management if there is a floppy in the floppy drive every 2 seconds for 600 seconds (10 minutes).
/dev/volctl Volume Management control port
See attributes(5) for descriptions of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|Availability |SUNWvolu |
eject(1), volcancel(1), volmissing(1) rmmount(1M), vold(1M), rmmount.conf(4), vold.conf(4), attributes(5), volfs(7FS)
Due to a hardware limitation in many floppy drives, the act of checking for media causes mechanical action in the floppy drive. Continu-
ous polling of the floppy drive will cause the drive to wear out. It is recommended that polling the drive only be performed during periods
of high use.
SunOS 5.10 21 Feb 1997 volcheck(1)