I am trying to write a python script that executes a command to screen scrub results below
I will appreciate it very much if you can help me with a python script that can
pick the percentage USAGE in the second column based on the supplied queue number in the first column
When i run this from the command prompt nothing shows up
I was able to get this screen scrub done using php preg_match_all
but i want to do the same with the re module in python.
Please suggestions and help will be very much appreciated
Hi ,
I am trying to write a mod_header module rule which will look a specific url (https://partner.testing.com) and rewrite it. The header line is given below. where the url comes in between of the line. i know ^ expression can be used for match the beginning of the line. but not sure how to... (3 Replies)
Hello All,
I'm trying to extract the lines between two consecutive elements of an array from a file.
My array looks like:
problem_arr=(PRS111 PRS213 PRS234)
j=0
while } ]
do
k=`expr $j + 1`
sed -n "/${problem_arr}/,/${problem_arr}/p" problemid.txt
---some operation goes... (11 Replies)
Hi all,
How am I read a file, find the match regular expression and overwrite to the same files.
open DESTINATION_FILE, "<tmptravl.dat" or die "tmptravl.dat";
open NEW_DESTINATION_FILE, ">new_tmptravl.dat" or die "new_tmptravl.dat";
while (<DESTINATION_FILE>)
{
# print... (1 Reply)
CA_RELEASE has a value of 6. I need to check if that this is a numeric value. if not error.
source $CA_VERSION_DATA
if * ]
then
echo "CA_RELESE $CA_RELEASE is invalid"
exit -1
fi
+ source /etc/ncgl/ca_version_data
++ CA_PRODUCT_ID=samxts
++ CA_RELEASE=6
++ CA_WEEK_NO=7
++... (3 Replies)
Hi,
Could anybody explain why will evaluate to true for a string that is not null, not empty string, and has at least one non-space char?
My understanding is that ^ means exclude all chars inside . So I thought it should mean anything except space.
This seems a big mystery to me. (9 Replies)
Hi all,
I'm working with flex (version 2.5.4a) on GNU/linux. I need to frame a regular expression which would match cases where word "file" does not occur. Negated character class wont work for me because they enforce "or" clause between different chars (so something like wont work). I would like... (5 Replies)
hello all.. I'm a bit new to this site.. and I hope to learn alot.. but I've been having a hard time figuring this out. I'm horrible with regular expressions.. so any help would be greatly appreciated.
I have a file with a list of names like this: LASTNAME, FIRSTNAME, MIDDLEINITIAL
how can... (5 Replies)
Is it possible to combine a regular expression with a aritmetical expression? For example, taking a 8-numbers caracter sequece and casting each output of a grep, comparing to a constant.
THX! (2 Replies)
scrub-files(1) GNU Telephony scrub-files(1)NAME
scrub-files - securely erase files by filling with random data first.
SYNOPSIS
scrub [options] paths...
DESCRIPTION
This command is used to securely erase files. This is accomplished by filling the file with random data in pre-sized chunks. Multiple
passes of random data may also be used. The pre-sized chunks are used to remove information about exact original file size. Other options
include random renaming of the original file before deletion and the use of truncation to break down meta-data on what blocks in the file
system were originally associated with a securely deleted file. This is specifically intended to make it harder to perform forensic analy-
sis on securely erased files.
OPTIONS --blocksize size
Set the default block size (in 1 k increments) for scrub-files to use when writing random data. This effects both the final file
length, which will be aligned to the specified size, and the way the truncate option decomposes files. The default is 1k.
--follow
Dereference and follow symlinks, erasing the target file.
--passes=count
The number of passes used when writing random data. The default is 1 pass.
--recursive
If argument is a directory, recursively scan directory and any subdirectory contents as arguments.
--rename
Rename the file randomly before deletion to clear persistant inode data.
--truncate
Decompose the file through truncation to break down file system page maps.
--verbose
Display each file being processed to the console.
--help Outputs help screen for the user.
AUTHOR
scrub-files was written by David Sugar <dyfet@gnutelephony.org>.
REPORTING BUGS
Report bugs to bug-commoncpp@gnu.org.
COPYRIGHT
Copyright (C) 2010 David Sugar, Tycho Softworks.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
GNU uCommon January 2010 scrub-files(1)