I think the thread name is fine actually, because it contains the word "strange"!
-f is not the only one. I've been asked how to delete files called
etc.
But it's certainly useful to know.
And it's probably worth mentioing in case anyone has as file called * (somehow!) that "rm -- *" is bad!
"find" is also useful for deleting them
[/code]
Hi everybody,
Does anyone knows what is that strange file below:"disk_query"
?? What else does we know about it and how big is it?
Thanks
# uname -a
HP-UX coolp01 B.10.20 A 9000/785 2014535552 two-user license
# pwd
/var/sam
# ls -l
total 158
-rw-rw-rw- 1 root sys ... (1 Reply)
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)
I will try to provide as many details as possible but this one has me scratching my head...
A few months ago I was asked to set up a test syslog server for internal use only. I chose to go the following route for simplicity:
1. I used Gentoo Linux so that I could have the most stripped down... (5 Replies)
Hi All,
I am writing some data's into a file from C++ program. The files which i am writing is of fixed length . say 232 in length per line.
I am writing as . my c code is as
... (0 Replies)
Hi folks
I am facing a strange error while splitting a '|' delimited file 'file1' based on column '3'. (File is 40 columns wide).
I wish to create as many files 'file_n' from the file 'file1' as distinct values of the column '3'; in 'file1'
eg: file1:
qwe|qweqw|123|fg... (3 Replies)
hi
i have file (a metadata type file ) in this format
record
string("|") isxml ;
string("|") billing_type ;
string("|") billing_type_desc ;
string("|") ods_create_date ;
string("|") ods_update_date ;
string("|") event_key ;
string("|") target_pid ;
string("|") open_date ;
string("|")... (5 Replies)
I have two files
file1.txt
angie
mary
susan
file2.txt
angie blond
mary brunnet
susan red
christine blackI want to get this output
angie blond
mary brunnet
susan redI write
grep --file=file1.txt file2.txtand i get no results
i also wrote
cat file1.txt|while read line... (19 Replies)
Hello unix users :)
I am trying to grep a string from a file that both the file and the string may have characters in them that are quite... strange, like würzburger.
Well, bash reads this as
W%C3%BCrzburger
For example, if i do
wget W%C3%BCrzburger
the output is:
--2012-01-08... (2 Replies)
I have a strange situation of sorting and merging two files based on similar columns
previusly both files has same count of records so, I made below way which is working fine until they reduced the count of one files .
I.e. some times the count of records of both will same and some times it... (16 Replies)
Hello,
I have a x86 Solaris server running on VMWare. c1t0d0 is root disk of 40 GB. I am not able to find, where space is being consumed. It just available space is 2.6 GB only. There is no quota or reservation set. Can somebody give me some pointer to fix it ?
-bash-3.2# zpool list
NAME ... (6 Replies)
Discussion started by: solaris_1977
6 Replies
LEARN ABOUT DEBIAN
ppix::editortools::renamepackage
PPIx::EditorTools::RenamePackage(3pm) User Contributed Perl Documentation PPIx::EditorTools::RenamePackage(3pm)NAME
PPIx::EditorTools::RenamePackage - Change the package name
SYNOPSIS
my $munged = PPIx::EditorTools::RenamePackage->new->rename(
code => "package TestPackage;
use strict;
BEGIN {
$^W = 1;
}
1;
",
replacement => 'NewPackage'
);
my $new_code_as_string = $munged->code;
my $package_ppi_element = $munged->element;
DESCRIPTION
This module uses PPI to change the package name of code.
METHODS
new()
Constructor. Generally shouldn't be called with any arguments.
rename( ppi => PPI::Document $ppi, replacement => Str ) =item rename( code => Str $code, replacement => Str )
Accepts either a "PPI::Document" to process or a string containing the code (which will be converted into a "PPI::Document") to
process. Replaces the package name with that supplied in the "replacement" parameter and returns a "PPIx::EditorTools::ReturnObject"
with the new code available via the "ppi" or "code" accessors, as a "PPI::Document" or "string", respectively.
Croaks with a "package name not found" exception if unable to find the package name.
SEE ALSO
This class inherits from "PPIx::EditorTools". Also see App::EditorTools, Padre, and PPI.
perl v5.14.2 2012-03-11 PPIx::EditorTools::RenamePackage(3pm)