ok i asked around to a few ppl and they said to use sed or awk to do what i want.. but i cant figure out how to use it like that..
anyway i have a text file that is 10k lines long.. i need to move text from the end of a line after the ? and move it to the front of the line then add a | after it.... (3 Replies)
Hello experts,
I ve a text file I want to go to particular line . what is the best way to do this in c ?
I am tried as follows
fseek ( fh, pos, SEEK_SET);
but this functions moves the file pointer according to a number of bytes. Unfortunately I don't know the exact byte... (7 Replies)
Hi,
I have a file called /bb/bin/rstrt.
I need to move the line/entry "ccpm_load_shared_memory" after the entry
"initcorp". The problem is that there are several entries for "initcorp" in this file and I need the entry to be moved only after the first instance of "initcorp"
Is there a way... (5 Replies)
I'm rather new to scripting, and despite my attempts at finding/writing a script to do what I need, I have not yet been successful.
I have a file named "list.txt" of arbitrary length with contents in the following format:
/home/user/Music/file1.mp3
/home/user/Music/file2.mp3... (21 Replies)
I have a folder with about 4000 files in it. I need to extract the files that contain a certain line of text to another directory.
for example files with 'ns1.biz.rr.com' need to be extracted to the directory above or some other directory.
I tried using the following but was not successful. (6 Replies)
Can somebody help me with a script ....
Read a file /etc/inittab
find the string starting with rcml and move it entirely towards the end of file.
rcml:2:once:/usr/sni/aix52/rc.ml > /dev/console 2>&1
I basically want to change the startup sequence. (2 Replies)
I have a script with this statement:
/usr/xpg4/bin/awk -F"" 'NR==FNR{s=$2;next}{printf "%s\"%s\"\n", $0, s}' LOOKUP.TXT finallistnew.txt >test.txt
I want to include logic or an additional step that says if there is no data in field 3, move the whole line out of test.txt into an additional... (9 Replies)
Hi all!
I need some help in changing a text file. I have the following text file:
1,050406259214736,00010,5000,MZM,V050,20131231,EMIG
2,Available,20061126T10:40:15,vs,,
2,Used,20110813T12:32:35,,825351585,1411012901443027
1,050410256649750,00010,5000,MZM,V050,20131231,EMIG
... (2 Replies)
Hi,
I am trying to extract lines from a text file given a text file containing line numbers to be extracted from the first file. How do I go about doing this? Thanks! (1 Reply)
Hi,
I have a following file and it has only one occurrence of line that says "Output view:". It could be in middle somewhere ( i don't know the exact location ). I want to move it as the first line of the file.
Input
AAA
BBBB
CCCC
Output view:
XXXX
YYYY
ZZZZ
Output should be:
Output... (13 Replies)
Discussion started by: jakSun8
13 Replies
LEARN ABOUT DEBIAN
net::dns::sec::tools::bootstrap
BootStrap(3pm) User Contributed Perl Documentation BootStrap(3pm)NAME
Net::DNS::SEC::Tools::BootStrap - Optional loading of Perl modules
SYNOPSIS
use Net::DNS::SEC::Tools::BootStrap;
dnssec_tools_load_mods(
PerlModule => 'Additional help/error text'
);
DESCRIPTION
The DNSSEC-Tools package requires a number of Perl modules that are only needed by some of the tools. This module helps determine at run-
time, rather than at installation time, if the right tools are available on the system. If any module fails to load,
dnssec_tools_load_mods() will display an error message and calls exit(). The error message describes how to install a module via CPAN.
The arguments to dnssec_tools_load_mods() are given in pairs. Each pair is a module to try to load (and import) and a supplemental error
message. If the module fails to load, the supplemental error message will be displayed along with the installation-via-CPAN message. If
the error message consists of the string "noerror", then no error message will be displayed before the function exits.
CAVEATS
The module will try to import any exported subroutines from the module into the main namespace. This means that the BootStrap.pm module is
likely to not be useful for importing symbols into other modules. Work-arounds for this are:
- import the symbols by hand
dnssec_tools_load_mods(
PerlModule => 'Additional help/error text'
);
import PerlModule qw(func1 func2);
func1(arg1, arg2);
- call the fully qualified function name
dnssec_tools_load_mods(
PerlModule => 'Additional help/error text'
);
PerlModule::func1(arg1, arg2);
COPYRIGHT
Copyright 2006-2012 SPARTA, Inc. All rights reserved. See the COPYING file included with the DNSSEC-Tools package for details.
AUTHOR
Wes Hardaker <hardaker@users.sourceforge.net>
SEE ALSO
http://www.dnssec-tools.org/
perl v5.14.2 2012-01-27 BootStrap(3pm)