Using the ksh, I'm reading by line and grabbing the value in the 2nd column ($2). I want to use this value and search the second file to find a line with a match. If it is found I want to grab the value of column 1 ($1) of the second file during that read
Result
Can anyone give me some insight as to how this can be done?
Good day!
I am trying to learn how to use the "sed" editor, to perform multiple edits on multiple files in multiple directories.
I have one script that tries to call up each file and process it according to the edits listed in a second script. I am using a small input text to test these, at... (12 Replies)
Dear Experts
Why we always hear that unix operating system is Multi User and Multi task. What does these two means. I have looked at some books and documents but couldn't find aclear explenation. Can we say Windows operating system is also multi user and multi task??
Thanks for your help in... (6 Replies)
Hi all
Some yeras ago (1994) I had a utility that bundled up multiple files into a big file with a seperator lines. Automatically loaded this temp file into vi - which allowed you to edit all the files. then when you :wq or ZZ vi it saved all the files bak to their appropriate file names and got... (0 Replies)
I am an Awk newbie and cannot wrap my brain around my problem:
Given multi-line records of varying lengths separated by a blank line I need to skip the first two lines
of every record and extract every-other line in each record unless the first line of the record has the word "(CONT)" in the... (10 Replies)
Hello there,
I am writting a scrip with in shell (#!/bin/sh) and I need to copy 5 times the same file into different names:
cp xsec.1.11 xsec.1.12
cp xsec.1.11 xsec.1.13
cp xsec.1.11 xsec.1.14
cp xsec.1.11 xsec.1.15
cp xsec.1.11 xsec.1.16
and I have to do that for several file.... (6 Replies)
I have a file with data records separated by multiple equals signs, as below.
==========
RECORD 1
==========
RECORD 2
DATA LINE
==========
RECORD 3
==========
RECORD 4
DATA LINE
==========
RECORD 5
DATA LINE
==========
I need to filter out all data from this file where the... (2 Replies)
Hi,
I have a problem where I need to make this input:
nameRow1a,text1a,text2a,floatValue1a,FloatValue2a,...,floatValue140a
nameRow1b,text1b,text2b,floatValue1b,FloatValue2b,...,floatValue140b
look like this output:
nameRow1a,text1b,text2a,(floatValue1a - floatValue1b),(floatValue2a -... (4 Replies)
Hello,
I extracted a list of files in a directory with the command ls . However this is not my computer, so the ls functionality has been revamped so that it gives the filesizes in front like this :
This is the output of ls command : I stored the output in a file filelist
1.1M... (5 Replies)
I am trying to write a large X app. I have successfully modified my xorg.conf to setup 4 monitors on an NVIDIA Quatro5200. I am trying to modify a simple hello world application to open a window on three of the four monitors. depending on the changes to loop the window creation section and event... (2 Replies)
HTML::FormFu::Inflator::CompoundDateTime(3pm) User Contributed Perl Documentation HTML::FormFu::Inflator::CompoundDateTime(3pm)NAME
HTML::FormFu::Inflator::CompoundDateTime - CompoundDateTime inflator
SYNOPSIS ---
element:
- type: Multi
name: date
elements:
- name: day
- name: month
- name: year
inflator:
- type: CompoundDateTime
# get the submitted value as a DateTime object
my $date = $form->param_value('date');
DESCRIPTION
For use with a HTML::FormFu::Element::Multi group of fields.
Changes the input from several fields into a single DateTime value.
By default, expects the field names to be any of the following:
year
month
day
hour
minute
second
nanosecond
time_zone
METHODS
field_order
Arguments: @order
If your field names doesn't follow the convention listed above, you must provide an arrayref containing the above names, in the order they
correspond with your own fields.
---
element:
- type: Multi
name: date
elements:
- name: m
- name: d
- name: y
inflator:
- type: CompoundDateTime
field_order:
- month
- day
- year
strptime
Arguments: \%args
Arguments: $string
Optional. Define the format that should be used if the DateTime object is stringified.
Accepts a hashref of arguments to be passed to "new" in DateTime::Format::Strptime. Alternatively, accepts a single string argument,
suitable for passing to "DateTime::Format::Strptime->new( pattern => $string )".
---
inflator:
- type: CompoundDateTime
strptime:
pattern: '%d-%b-%Y'
locale: de
---
inflator:
- type: CompoundDateTime
strptime: '%d-%m-%Y'
AUTHOR
Carl Franks
LICENSE
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-01-23 HTML::FormFu::Inflator::CompoundDateTime(3pm)