Hi, I'm trying to write a ksh script to copy a specified number of files from one directory to another.
The files are named in the convention <switchname>_log.<num> and the numbers are sequential single digit onwards. I figured I could find some parameter for ls which would list the files in... (3 Replies)
Hi I was hoping that maybe someone could help me with a small piece of C code. I have a number of files, which are all of similar layout ie. three lines of text and 5-6 columns of numerical data. I need to add each of the elements of the second column in one file to their counterparts in the second... (17 Replies)
Hi,
There are multiple files like
file1_11
file2_11
file3_11.....and so on.
How to rename them such tht the suffix _11 is removed and they become file1, file2, file3.
Any help is appreciated.
Regards
er_ashu (1 Reply)
Hi everyone,
I would love to have a script that does the following:
I have one file that looks like that:
ATOM 1 BB SER 1 1 -31.958 -25.125 -11.061 1.00 0.00
ATOM 3 BB GLY 1 2 -32.079 -26.085 -14.466 1.00 0.00
ATOM 4 BB VAL 1 3 ... (1 Reply)
if I want to search those files which were suffix with .c,
I can use find ./ -name *.c
but how to find out those files which were not suffix with .c ??
Thanks a lot! (2 Replies)
Hi,
I have a large number of files which are named as follows.
VF_50, VF_100, VF_150, VF_250, VF_300, VF_350, VF_400, VF_450, VF_500.
When I do an 'ls' it arranges the files in the following way
VF_100, VF_150, VF_250, VF_300, VF_350, VF_400, VF_450, VF_50, VF_500.
Is there a way to... (2 Replies)
Hi,
I have a lot of files similar to the below order. I want to rename all the files .discrading the time stamp/numbers after cnf.
Existing files
id_info_20130405.cnf_20130801
in_info_20130405.cnf_20130891
iz_info_20130405.cnf_20130821
in_info_20130405.cnf_20130818... (2 Replies)
I am trying to build a list of all files ending in *.cbl in the system, but when I try find / -name *.cbl, I only find one specific file name that is alphabetically first. Is there something I'm missing?
TIA
---------- Post updated at 11:20 AM ---------- Previous update was at 11:15 AM... (1 Reply)
Hello,
First time poster. I am looking for a way to script or program the process of moving files from one folder to another, automatically, based on the count of files in the destination folder.
I was thinking a shell script would work, but am open to the suggestions of the experts... (6 Replies)
Discussion started by: comtech
6 Replies
LEARN ABOUT HPUX
delete_directory
delete directory(1m) delete directory(1m)NAME
delete directory - Deletes a directory
SYNOPSIS
cdscp delete directory directory-name
ARGUMENTS
The full name of the directory.
DESCRIPTION
The delete directory command deletes a directory. The directory cannot contain any object entries, soft links, or child pointers. The
master replica must be the only remaining replica in the cell. Use the delete replica command if you need to remove read-only replicas.
Privilege Required
You must have delete permission to the directory and write permission to the clearinghouse that stores the master replica of the directory.
The server principal needs administer permission to the parent directory or delete permission to the child pointer that points to the
directory you intend to delete.
NOTE
This command is replaced at Revision 1.1 by the dcecp command and may not be provided in future releases of DCE.
EXAMPLE
The following command deletes the directory /.:/eng from the namespace: cdscp> delete directory /.:/eng
RELATED INFORMATION
Commands: create directory(1m), delete replica(1m), list directory(1m), set directory(1m), set directory to skulk(1m), show directory(1m)
delete directory(1m)