Sponsored Content
Top Forums Shell Programming and Scripting How to find the newly created directory Post 302444201 by Andre_2008 on Wednesday 11th of August 2010 07:05:19 AM
Old 08-11-2010
How to find the newly created directory

Hi,

I need to create new directory by increasing the number by 1 of extracted lastly created directory.

e.g.
Log\out_log_1\
Log\out_log_2\
Log\out_log_3\

become
Log\out_log_1\
Log\out_log_2\
Log\out_log_3\
Log\out_log_4\

Can anyone help how to do it in c-shell script?Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to FTP all newly created but the current open file?

An application running on HP-UX constantly generates new text log files ( I think using logpipe ). Any new file created requires to be ftp'ed to an offline server, however I want to make sure that the current file being written should not be transferred. For examples consider the following files... (3 Replies)
Discussion started by: indianya
3 Replies

2. Shell Programming and Scripting

How to keep appending a newly created file based on some keywords

Hi Friends, I have to create a new log file everyday and append it with content based on some keywords found in another log file. Here is what I have tried so far... grep Error /parentfolder/someLogFile.log >> /parentfolder /Archive/"testlogfile_error_`date '+%d%m%y'`.txt" grep error... (6 Replies)
Discussion started by: supreet
6 Replies

3. UNIX for Dummies Questions & Answers

Help with command to find all newly created files in a given time period

Hi all! Can someone please help me create a command to accomplish the following task. I have a parent directory called ex. /var/www/parent and it has a bunch of sub-directories called /var/www/parent/1, var/www/parent/1/xyz/ and etc. What I would like to do is to count the number of files... (2 Replies)
Discussion started by: bbzor
2 Replies

4. AIX

How to find the date on which a particular directory is created?

how to find the date on which a particular directory is created? Thanks. (4 Replies)
Discussion started by: samsungsamsung
4 Replies

5. Shell Programming and Scripting

sftp - get newly created files on incremental basis

Hi, We have a sftp server which creates files daily and keeps 6 months of files on the server. We are creating a daily job to get the files and load into database. My problem is "how to get ONLY those files which got created after my last get". Let me provide some more details to it. Below... (15 Replies)
Discussion started by: ravi.videla
15 Replies

6. UNIX for Advanced & Expert Users

default size of a newly created folder

Hi all, In linux how to create a directory with specified size, so that it can be used only up to the mentioned size. Actually my question is, whether we can do directory quota in linux. mounting the directory in a partiton will do that, but do we have any other option... (1 Reply)
Discussion started by: anishkumarv
1 Replies

7. Solaris

Can't see Newly created LUN by SAN admin

hello, i am an oracle DBA and trying to scan a newly created LUN of 200 GB on fiber channel by SAN admin.we have solaris 10 and SANtoolkit is installed.i tried following to get the new LUN at my machine. go /opt/Netapp/Santoolkit/bin and then ./sanlun lun show but i see only the existing... (12 Replies)
Discussion started by: janakors
12 Replies

8. Shell Programming and Scripting

Copy an array to a newly created directory

hello everyone, I am new to perl script and trying to develop a script as follows. I am trying to Create an array for storing all file names. I am trying to copy $libs into "scratch". however i am unable to do so. Please suggest.. #!/usr/bin/perl use File::Copy; #use... (5 Replies)
Discussion started by: Rashid Khan
5 Replies

9. Hardware

Formatting a newly created lun

Hi , I have created one new lun in my SAN storage and make it visible to my HP servers , but the fdisk -l output is somehow confusing. Do not know what to do next ---------- fdisk -l /dev/sdo1 Disk /dev/sdo1 (Sun disk label): 64 heads, 32 sectors, 10238 cylinders Units =... (7 Replies)
Discussion started by: mishra.sankar
7 Replies

10. AIX

No iscsi available in newly created AIX wpar

AIX 7.1 New to WPAR, hopefully just missing something simple here. Creating the WPAR like this..... (The box where the WPAR is hosted does have an iscsi protocol device) mkwpar -h wpar08 -l -n wpar08 -N interface=en0 address=xxx.xx.xx.xxx netmask=255.255.255.0 -D devname=/dev/iscsi0 -D... (0 Replies)
Discussion started by: TomR
0 Replies
MAKEDEV(8)						      System Manager's Manual							MAKEDEV(8)

NAME
MAKEDEV - makes system special files SYNOPSIS
/dev/MAKEDEV [argument] [device-name?...] DESCRIPTION
The MAKEDEV shell script is normally used to install special files. It resides in the /dev directory, the normal location of special files. Arguments to MAKEDEV are usually of the form device-name? where device-name is one of the supported devices listed in Section 7 of the Reference Pages and ? is a logical unit number. The argument operand is one of the following special arguments that create assorted col- lections of devices: Creates all standard device files for all systems. Standard devices for Alpha systems (in the order they are created) are as follows: klog, kcon, kbinlog, kmem, mem, null, vmzcore, console, ws0, mouse0, keyboard0, tty, pty0, pty1, ptmx, cam, audit, prf, pfcntr, zero, snmpinfo, lockdev, and sysdev0. Creates a set of 16 LAT device special files, one for each LAT terminal device. The n specifies the set option. The set option range is 0 to 38. Specifying lat38 creates 12 LAT device special files. Creates groups of pseudoterminal device special files, as follows: Cre- ates pty0 to pty22. Creates pty23 to pty45. Creates pty46 to pty56. Creates pty57 to pty64. Creates pty65 to pty72. Creates pty73 to pty80. Creates pty81 to pty88. Creates pty89 to pty96. Creates pty97 to pty101. The # specifies the group of pseudoterminal device special files created. Creates a group of packet filter device special files, as follows: Creates pfilt0 to pfilt63. Creates pfilt0 to pfilt63. Creates pfilt0 to pfilt127. Creates pfilt0 to pfilt255. Creates pfilt0 to pfilt511. Creates pfilt0 to pfilt1023. Creates pfilt0 to pfilt2047. Creates pfilt0 to pfilt3071. Creates pfilt0 to pfilt4095. The # specifies the number of ppacket filter device special files created. Creates those devices specific to the local site. This request causes the shell file /dev/MAKEDEV.local to be executed. This file must exist prior to using the local argument. Site spe- cific commands, such as those used to setup dialup lines as ttyd? and to create device special files for all non-Compaq devices, should be included in this file. Because all devices are created using mknod(8) this shell script is useful only to the superuser. NOTES
The MAKEDEV script installs files in the current working directory. Although device special files can be located anywhere on the system, they are usually created in the /dev directory, since this is where most applications expect to find them. Refer to the dsfmgr(8) reference page for information on the Device Special File Manager program. ERRORS
Either self-explanatory, or generated by one of the programs called from the script. Use sh -x MAKEDEV in case of trouble. SEE ALSO
Commands: config(8), dsfmgr(8), mknod(8) Interfaces: intro(7), packetfilter(7), pty(7) MAKEDEV(8)
All times are GMT -4. The time now is 06:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy