I know this must be really easy, but i can't get it to work
I've got a perl script, with a file.
I want to print an empty line, and the following doesn't seem to work:
print nameoffile "\n"
thanks for your help!! (3 Replies)
Hi,
I have an dir which has 50K file, some of them are empty. I want to delete the empty file from the dir. I am planning to use the following command.
ls -l | grep " 0 " | awk '{print $9}'
I can copy this to an file and then how do I use this file to delete the empty files.... Any help... (2 Replies)
Hi all,
I have one CSV file(MasterFile.csv) consists of two columns.
"./incoming/ABC.CSV","./incoming/ABC_CONTROL.txt"
"./incoming/PQR.CSV","./incoming/PQR_CONTROL.txt"
"./incoming/123.CSV","./incoming/123_CONTROL.txt"
I have written a script to read the MasterFile.csv.Here i want to... (4 Replies)
Hi
Trying to do like this :
echo "$variable1\n $(cat file.txt)"
but it only adds one time. When I run this cmd again with different variable it only replaces line of variable1.
How to add constantly line into first line in file ? (3 Replies)
I can't seem to get sed to allow me to insert text in the first line of an empty file. I have a file.txt that is a 0 byte file. I want sed to insert " fooBar" onto the first line. I've tried a few options and nothing seems to work. They work just fine if there's text in the file tho. Help? (4 Replies)
Hi,
I am new to Sed /awk commands. using that i want to add new empty line after every line in a file by leaving first three lines. So, can any one help me out how to achieve this.
Example:
---------
Input Filename: file1.txt
Input Data:
--------Report--------
Date:20-10-03... (4 Replies)
Hi All,
I have a file.txt which seems like having three lines.
wc -l file.txt
3 file.txt
In fact, once it is open in text editor, this file has four lines where the last line is empty. how can i delete this last empty line of the file.txt? I tried the codes below so far but they... (6 Replies)
Hello,
I need a program that read a file line by line and prints out lines 1, 2 & 3 after an empty line... An example of entries in the file would be:
SRVXPAPI001 ERRO JUN24 07:28:34 1775
REASON= 0000, PROCID= #E506 #1065: TPCIPPR, INDEX= 003F
... (8 Replies)
Discussion started by: Ferocci
8 Replies
LEARN ABOUT HPUX
rmdel
rmdel(1) General Commands Manual rmdel(1)NAME
rmdel - remove a delta from an SCCS file
SYNOPSIS
SID file ...
DESCRIPTION
The command removes the delta specified by the SID from each named SCCS file. The delta to be removed must be the newest (most recent)
delta in its branch in the delta chain of each named SCCS file. In addition, the SID specified must be that of a version being edited for
the purpose of making a delta (i.e., if a p-file (see get(1)) exists for the named SCCS file, the SID specified must appear in any entry of
the p-file).
If a directory is named, behaves as though each file in the directory were specified as a named file, except that non-SCCS files (last com-
ponent of the path name does not begin with and unreadable files are silently ignored. If a name of is given, the standard input is read;
each line of the standard input is taken to be the name of an SCCS file or directory to be processed; non-SCCS files and unreadable files
are silently ignored. When is specified on the command line, all following arguments are treated as file names.
The permissions to remove a delta are either (1) if you make a delta you can remove it; or (2) if you own the file and directory you can
remove a delta.
EXTERNAL INFLUENCES
Environment Variables
determines the locale for the interpretation of text as single-byte and/or multi-byte characters.
determines the language in which messages are displayed.
also determines the local language equivalent of the affirmative string ("yes").
If or is not specified in the environment or is set to the empty string, the value of is used as a default for each unspecified or empty
variable. If is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of
If any internationalization variable contains an invalid setting, behaves as if all internationalization variables are set to "C". See
environ(5).
International Code Set Support
Single-byte and multi-byte character code sets are supported.
DIAGNOSTICS
Use sccshelp(1) for explanations.
FILES
See delta(1).
See delta(1).
SEE ALSO delta(1), get(1), sccshelp(1), prs(1), sccsfile(4).
STANDARDS CONFORMANCE rmdel(1)