Aloha! I have just over 1k of users that have permissions that they shouldn't under our system. I need to parse a provided list of usernames, check their permissions file, and strip the permissions that they are not allowed to have. If upon the permissions strip they are left with no permissions,... (6 Replies)
what is the sed command to remove the first two characters of every line of a text file?
each line of the text file has the same amount of characters, and they are ALL NUMERIC. there are hundreds of lines though.
for example,
>cat file1.txt
10081551
10081599
10082234
10082259
20081134... (20 Replies)
Hello, this is probably a simple request but I've been toying with it for a while.
I have a large list of devices and commands that were run with a script, now I have lines such as:
a-router-hostname-C#show ver
I want to print everything up to (and excluding) the # and everything after it... (3 Replies)
Hello everyone,
This is my first posting. I have read the rules of this forum. I have searched many various threads and haven't found one that applies to my situation or suggestions to fix the issue. I do appreciate the help.
I am trying to execute a basic UNIX script in a Solaris... (4 Replies)
First of all let it be said that I hate sed. Every time I think I've got it figured out it proves me wrong. There, now with that out of the way here's my problem that I'm hoping one of you smart people can solve:
I have a file full of lines like this:
If x=1 then /* this is an if statement */... (10 Replies)
Hi there, my first post, so you might find my noobness ;)
I need help to fix a thing,
find /mnt/fs01/gfx/ -iname "*.rar" > gfx.txt
Gives this contained textfile:
/mnt/fs01/gfx/toba/toba.rar
/mnt/fs01/gfx/zeta/zimba.rar
/mnt/fs01/gfx/brashe/getha.rar
And now the tricky part (for... (3 Replies)
Trying to use sed to, in-place, remove specific text from a file. Since there are / in the text I use | to escape that character. Thank you :).
sed -i -e 's|xxxx://www.xxx.com/xx/xx/xxx/.*/|' /home/cmccabe/list
sed: -e expression #1, char 51: unterminated `s' command (4 Replies)
Hello,
How can I remove partial duplicates and manipulate text in bash using either awk, grep or sed? Thanks.
Input:
ted,"foo,bar,zoo"
john-son,"foot,ben,zoo"
bob,"bar,foot"
Expected Output:
foo,ted
bar,ted
zoo,ted
foot,john-son
ben,john-son (4 Replies)
In the awk below I am trying to cp and paste each matching line in f2 to $3 in f1 if $2 of f1 is in the line in f2 somewhere. There will always be a match (usually more then 1) and my actual data is much larger (several hundreds of lines) in both f1 and f2. When the line in f2 is pasted to $3 in... (4 Replies)
Discussion started by: cmccabe
4 Replies
LEARN ABOUT DEBIAN
tap::formatter::junit::session
TAP::Formatter::JUnit::Session(3pm) User Contributed Perl Documentation TAP::Formatter::JUnit::Session(3pm)NAME
TAP::Formatter::JUnit::Session - Harness output delegate for JUnit output
DESCRIPTION
"TAP::Formatter::JUnit::Session" provides JUnit output formatting for "TAP::Harness".
METHODS
_initialize($arg_for)
Over-ridden private initializer, so we can accept a new "passing_todo_ok" argument at instantiation time.
result($result)
Called by the harness for each line of TAP it receives.
Internally, all of the TAP is added to a queue until we hit the start of the "next" test (at which point we flush the queue. This
allows us to capture any error output or diagnostic info that comes after a test failure.
close_test()
Called to close the test session.
Flushes the queue if we've got anything left in it, dumps the JUnit to disk (if necessary), and adds the XML for this test suite to our
formatter.
dump_junit_xml($testsuite)
Dumps the JUnit for the given XML $testsuite, to the directory specified by "PERL_TEST_HARNESS_DUMP_TAP".
add_testcase($case)
Adds an XML test $case to the list of testcases we've run in this session.
xml()
Returns a new "XML::Generator" to generate XML output. This is simply a shortcut to "$self->formatter->xml()".
AUTHOR
Graham TerMarsch <cpan@howlingfrog.com>
COPYRIGHT
Copyright 2008-2010, Graham TerMarsch. All Rights Reserved.
This is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
TAP::Formatter::JUnit.
perl v5.14.2 2012-03-12 TAP::Formatter::JUnit::Session(3pm)