Hi ,
I have a file called "X" . the content of X are
X
--
abc
def
and i have a file called "Y" , the content of Y are
Y
--
erty
sdss
s
abc
sfs
def
I need to check if the content of file X is contained in Y.Only unix (7 Replies)
hi guys, im learning so be gentle...
i'm wanting to write a script to read in a customer number.
in order that the code is robust i want to check
1) the length of the value entered (4 characters)
2) that all characters entered are numeric between the values 1 to 3
3) that a value is... (1 Reply)
Hello everyone, I'm trying the best way to implement a check on a variable ... in particular I need to assess the content of characters and numbers , I tried on various manuals bash scripting but I could not figure out how to do ... any help? (3 Replies)
I have a shell script that takes a file and uses "syncsort" to sort contents.
I want to add a condition to check whether the input file is textual or binary format. If textual, the "syncsort" will be used to sort the files contents. Otherwise, the sorting process will be skipped.
Note that the... (3 Replies)
Hi all,
I need to write an automated bash shell script which performs such operations:
1. Grep the header of everyline with the initial of "T" in "FILE_A"
2. Perform a for loop,
Count the numbers of comma in the line of code,
if (no. of comma < 17)
ADD the comma until 17;
... (2 Replies)
Hi everybody!
I wonder if I could see some text content of a website, via command line...
That could be very helpful, in order to automatize a lot of projects im working on.
thx a lot (2 Replies)
Hi,
I have a text file in the below format.
$cat my_paramater_file.txt
'
$$ETL_EXTRACT_DATE=07/17/2011 17:55:05.000000
'
$
Would like to write script based on the below requirements.
1. The file should not be 0 byte.
2. The content of the file should be 4 lines and the... (1 Reply)
I would like to write a shell script to do the following , would advise how to make it ? very thanks
1. Connect LDAP server ( Id : user , password : pass )
2. check the field "user_account_create_date" in the LDAP server , the format of data in this field in LDAP is ABC20130922 ( 22 Sep ,... (3 Replies)
hi all,
i had the below script
x=`cat input.txt |wc -1`
awk 'NR>1 && NR<'$x' ' input.txt > output.txt
by using above script i am able to remove the head and tail part from the input file and able to append the output to the output.txt but if i run it for second time the output is... (2 Replies)
Hi all,
i have a logfile which is continuously being updated. I have built a script to check for a specific content and if it is found, it sends a string into a file. Here's the current script:
#!/bin/bash
logfile=/opt/jboss-eap-6.3/standalone/log/server.log
tail -fn0 $logfile | \... (7 Replies)
Discussion started by: nms
7 Replies
LEARN ABOUT DEBIAN
dist::zilla::plugin::generatefile
Dist::Zilla::Plugin::GenerateFile(3pm) User Contributed Perl Documentation Dist::Zilla::Plugin::GenerateFile(3pm)NAME
Dist::Zilla::Plugin::GenerateFile - build a custom file from only the plugin configuration
VERSION
version 4.300020
SYNOPSIS
In your dist.ini:
[GenerateFile]
filename = todo/master-plan.txt
is_template = 1
content = # Outlines the plan for world domination by {{$dist->name}}
content =
content = Item 1: Think of an idea!
content = Item 2: ?
content = Item 3: Profit!
DESCRIPTION
This plugin adds a file to the distribution.
You can specify the content, as a sequence of lines, in your configuration. The specified content might be literal, or might be a
Text::Template template.
Templating of the content
If you provide a "is_template" parameter of "1", The content will also be run through Text::Template. The variables $plugin and $dist will
be provided, set to the GenerateFile plugin and the Dist::Zilla object respectively.
ATTRIBUTES
filename
This attribute names the file you want to generate. It is required.
content
The "content" attribute is an arrayref of lines that will be joined together with newlines to form the file content.
is_template
This attribute is a bool indicating whether or not the content should be treated as a Text::Template template. By default, it is false.
AUTHOR
Ricardo SIGNES <rjbs@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-06-21 Dist::Zilla::Plugin::GenerateFile(3pm)