Sponsored Content
Full Discussion: AIX create empty file
Top Forums UNIX for Beginners Questions & Answers AIX create empty file Post 303045711 by big123456 on Friday 10th of April 2020 07:40:54 AM
Old 04-10-2020
AIX create empty file

Hi,
On AIX 7.1 how to create an emty file?
I tried vi but
they create
Code:
$vi  myfile
$ ls -l myfile
-rw-------    1 oracle   dba               1 Apr 10 13:34 myfile
I need :
-rw-------    1 oracle   dba               0 Apr 10 13:34 myfile

Thanks

Last edited by rbatte1; 04-19-2020 at 04:59 AM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

simultaneously create three empty files?

I can't get touch to simultaneously create three empty files file1, file2, file3. I tried:$ touch filebut all I got was one file:$ fileWhat did I do wrong? (4 Replies)
Discussion started by: na5m
4 Replies

2. UNIX for Dummies Questions & Answers

Getting same exit status for empty and non empty file

Hi All, I am checking for a empty input file to do some further action , but I am getting exit status 0 in both the cases , for empty and non empty file both. The value of $? is coming 0 in if part also and else part too. #!/bin/ksh if ]; then echo "data" # exit 0 echo "$?" else... (4 Replies)
Discussion started by: mavesum
4 Replies

3. Shell Programming and Scripting

Create multiple text file from a single text file on AIX

Hi I need to create multiple text files from onc text file on AIX. The data of text files is as below: ********************************************** ********************************************** DBVERIFY: Release 10.2.0.4.0 - Production on Tue Nov 10 13:45:42 2009 Copyright (c) 1982,... (11 Replies)
Discussion started by: lodhi1978
11 Replies

4. AIX

how to create a variable block binary file on AIX

:confused: Hi there I have a requirement to create a variable block binary file on AIX. Once the file has been feed with info , the file needs to be ftp to MVS. The problem experienced; when transferring the file to MVS. MVS does not pick up the carriage return line feed, which OA OD ... (0 Replies)
Discussion started by: Luke21
0 Replies

5. Shell Programming and Scripting

cowardly refusing to create an empty archive

Hi, I am trying to write an Archive script that should look for files older than x days, zip them and move the zip to the archive directory and delete the files that have been zipped. I am not sure how i can handle this error: "cowardly refusing to create an empty archieve". Just wanted to know... (9 Replies)
Discussion started by: stunnerz_84
9 Replies

6. UNIX Desktop Questions & Answers

how to create empty wav file

Dear All, Kindly explain me a command in unix to create a empty wav file with example. Thanks in Advance! (1 Reply)
Discussion started by: thillai_selvan
1 Replies

7. Shell Programming and Scripting

Single command to create multiple empty files(no trailing lines as well).

Hi, i need a single command to create multiple empty files(no trailing lines as well) and empty the files if already existing. please let me know or if this has been ansered, if some ocan share the link please, thanks > newfile.txt or :> newfile.txt do not work (4 Replies)
Discussion started by: Onkar Banerjee
4 Replies

8. Shell Programming and Scripting

Create empty files from a list on file

Hello Guys. Please I would like to create empty files from a list In file1 will be the followin values, so i will like to create for each name a empty file. file1 2191off-r0.sps 2192off-r0.sps 2193off-r0.sps 2194off-r0.sps 2195off-r0.sps So I need to get 5 empty files. Thanks for... (7 Replies)
Discussion started by: jiam912
7 Replies

9. Linux

How to create new empty utf8 file for appending?

Hey i try to create empty text file with utf-8 encoding without success what is the right way to do this ? tried with touch test.txt iconv -f UTF-8 -t UTF-8 test.txt or iconv -f latin1 -t UTF-8 test.txt (8 Replies)
Discussion started by: umen
8 Replies

10. Shell Programming and Scripting

Need UNIX command to create a empty dataset

Hi all, Is Der any unix command which will create a empty dataset ..?(in .ds ).I know we can use orchadmin dump command to view dataset data.. but how to create a dataset..? like sampledataset.ds thanks in advance hemanthsaikumar (1 Reply)
Discussion started by: hemanthsaikumar
1 Replies
rmvol(8)						      System Manager's Manual							  rmvol(8)

NAME
rmvol - Removes a volume from an existing file domain SYNOPSIS
/usr/sbin/rmvol [-f] [-v] special domain OPTIONS
Forces the removal of a volume that contains one or more stripe segments without first requesting confirmation. Displays messages that describe which files are moved off the specified volume. Using this option slows the rmvol process. OPERANDS
Specifies the block device special file name, such as /dev/disk/dsk2c, of the volume that you are removing from the file domain. Specifies the name of the file domain. DESCRIPTION
The rmvol utility enables you to decrease the number of volumes within an existing file domain. When you attempt to remove a volume, the file system automatically migrates the contents of that volume to another volume in the file domain. The logical structure of the filesets in a file domain is unaffected when you remove a volume. If you remove a volume that contains a stripe segment, the rmvol utility moves the segment to another volume that does not already contain a stripe segment of the same file. If a file is striped across all volumes in the file domain, the utility requests confirmation before placing a second stripe segment on a volume that has one. Before you can remove a volume from a file domain, all filesets in the file domain must be mounted. If you try to remove a volume from an active file domain that includes unmounted filesets, the system displays an error message indicating that a fileset is unmounted. This mes- sage is repeated until you mount all filesets in the file domain. If you attempt to remove a volume from an inactive file domain, the system returns the ENO_SUCH_DOMAIN error message. A file domain is inactive when none of its filesets is mounted. In this case, the rmvol command does not remove the volume. If there is not enough free space on other volumes in the file domain to accept the offloaded files from the departing volume, the rmvol utility moves as many files as possible to free space on other volumes. Then a message is sent to the console indicating that there is not enough space to complete the procedure. The files that were not yet moved remain on the original volume. You can interrupt the rmvol process without damaging your file domain. AdvFS will stop removing files from the volume. Files already removed from the volume will remain in their new location. Interrupting an rmvol operation with the kill command can leave the volume in an inaccessible state. If a volume does not allow new allocations after an rmvol operation, use the chvol command with the -A option to reac- tivate the volume. RESTRICTIONS
You cannot run the rmvol utility while the defragment, balance, rmfset, or rmvol utility is running on the same domain. You must be the root user to use this utility. EXAMPLES
The following example removes a volume from an active file domain called accounts_dmn. The file domain contains two volumes, /dev/disk/dsk1c and /dev/disk/dsk2c. This example removes volume /dev/disk/dsk1c from the file domain: # rmvol /dev/disk/dsk1c accounts_dmn The /etc/fdmns/accounts_dmn subdirectory now has only one entry, the entry for /dev/disk/dsk2c. The following example removes one volume from a three-volume file domain. Each volume in the accounts_dmn file domain contains one segment of /usr/myfile, which is a three-way striped file: # rmvol /dev/disk/dsk3c accounts_dmn rmvol: Removing volume '/dev/disk/dsk3c' from domain 'accounts_dmn' This volume contains one stripe segment of /usr/myfile, which will be moved to another volume in the file domain that already con- tains a stripe segment of /usr/myfile. Do you want to continue? (y/n):y One volume in the accounts_dmn file domain now contains two stripe segments of myfile, which is no longer an optimally striped file. FILES
Specifies the command path. Contains file domain names and devices. SEE ALSO
addvol(8), advfs(4), advscan(8), fdmns(4), mkfdmn(8), stripe(8) rmvol(8)
All times are GMT -4. The time now is 08:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy