Sponsored Content
Top Forums Shell Programming and Scripting Creating a master file of conjugated verbs by concatenating root and inflection from separate files Post 303011291 by gimley on Tuesday 16th of January 2018 08:47:04 AM
Old 01-16-2018
Dear Don Cragun,
Thanks for taking time off to reply. As usual, I hunted for this specific issue but could not find an answer. I hope I did not miss out the solution.
I have awk/sed and perl on my machine. Am waiting for the Fall Creator Update to be able to use Linux on my computer, which will make life easier for me.
Many thanks

---------- Post updated at 08:47 AM ---------- Previous update was at 08:43 AM ----------

Hello,
I found the answer. Thanks for alerting me:
Code:
awk 'FNR==NR {S[$1];next} {printf "%s", $1; for (s in S) printf ",%s%s", $1, s; printf "\n"}' suffs root

It was very stupid of me. Sorry for the bother. Thanks once again.
This User Gave Thanks to gimley For This Post:
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Break a file into separate files

Hello I am facing a scenario where I have a file with XML content and I am running shell script over it. But the problem is the XML is getting updated with new services. In the below scenario, my script takes values from the xml file from one service name say ABCD. Since there are multiple, it is... (8 Replies)
Discussion started by: chiru_h
8 Replies

2. Shell Programming and Scripting

Concatenating Files In A Year/Month/Day File Structure

Hi Im trying to concatenate a specific file from each day in a year/month/day folder structure using Bash or equivalent. The file structure ends up like this: 2009/01/01/products 2009/01/02/products .... 2009/12/31/products The file I need is in products everyday and I need the script to... (3 Replies)
Discussion started by: Grizzly
3 Replies

3. Shell Programming and Scripting

Concatenating lines of separate files using awk or sed

For example: File 1: abc def ghi jkl mno pqr File 2: stu vwx yza bcd efg hij klm nop qrs I want the reult to be: abc def ghistu vwx yza jkl mno pqrbcd efg hij klm nop qrs (4 Replies)
Discussion started by: tamahomekarasu
4 Replies

4. UNIX for Dummies Questions & Answers

creating separate directories according to file extension and keeping file in different directory as

unix program to which a directory name will be passed as parameter. This directory will contain files with various extensions. This script will create directories with the names of the extention of the files and then put the files in the corresponding folder. All files which do not have any... (2 Replies)
Discussion started by: Deekay.p
2 Replies

5. UNIX for Dummies Questions & Answers

Creating a file where the owner and group is not root

Hi, I'm the root user on my computer, but I'm writing a script that does a lot of file handling. Every time I create a file or directory it automatically requires root privileges. Is there a way I can just create a file that the user can access without a password? For example in my script I... (20 Replies)
Discussion started by: jdilts
20 Replies

6. Shell Programming and Scripting

Concatenating 3 files into a single file

I have 3 files File1 C1 C2 c3 File 2 C1 c2 c3 File 3 C1 c2 c3 Now i want to have File1 as C1 c2 c3 I File2 as C1 c2 c3 O File3 as c1 c2 c3 D and these 3 files should be concatenated into a single file how can it be done in unix script? (3 Replies)
Discussion started by: Codesearcher
3 Replies

7. UNIX Desktop Questions & Answers

How can I replicate master master and master master MySQL databse replication and HA?

I have an application desigend in PHP and MySQl running on apache web server that I is running on a Amazon EC2 server Centos. I want to implement the master-master and master slave replication and high availability disaster recovery on this application database. For this I have created two... (0 Replies)
Discussion started by: Palak Sharma
0 Replies

8. Shell Programming and Scripting

Creating lemmatised forms by concatenating two files

Dear all, I am working on a noun, adjectiveand verb lemmatiser for Sindhi which will eventually be put up as open source for generic use. The tool will take a word and provide all possible forms of the word. To achieve this I have identified the root forms and the eventual suffixes which could... (3 Replies)
Discussion started by: gimley
3 Replies

9. Programming

creating separate output file for each input file in python

Experts, Need your help for this. Please support My motive is to create seperate output file for each Input Files(File 1 and File2) in another folder say(/tmp/finaloutput) Input files File 1(1.1.1.1.csv) a,b,c 43,17104773,3 45,17104234,4 File 2(2.2.2.2.csv) a,b,c 43,17104773,1... (2 Replies)
Discussion started by: as7951
2 Replies
french-conjugator(1)													      french-conjugator(1)

NAME
french-conjugator - conjugate French verbs SYNOPSIS
echo aimer | french-conjugator > result.txt DESCRIPTION
french-conjugator reads the infinitive form of French verbs from the command line or from standard input and writes (to standard output) the complete conjugation of those verbs, if they are known. The standard input is not read if verbs are passed as command-line arguments. Each mode and tense is introduced by a line that starts with a hyphen and a space, and ends with a colon. The mode and tense in that line are always in English, regardless of the user's current locale. (This is meant to facilitate automatic parsing of the output. For a French user interface, see the GNOME application and applet.) The conjugation is ended with a line that only contains a hyphen. If the given verb is unknown or not in the infinitive form, only this line is written. The command flushes its output buffer after finishing each answer. This allows the command to be easily called from another program through two pipes. The command starts by loading its database from XML files (stored typically in /usr/share/verbiste). This takes some time, so it is a good idea to have the command answer many requests instead of running it for each request. The verbiste library's source archive contains Perl and Java example programs that illustrate this technique. There must not be any leading or trailing white spaces on the lines read by the command. In the past participle tense, four lines are written: they correspond in order to the masculine singular, masculine plural, feminine singu- lar and feminine plural. OPTIONS
--help display a help page and exit --version display version information and exit --lang=L select the language to use (fr for French or it for Italian); French is the default language --mode=M only display mode M, where M can be infinitive, indicative, conditional, subjunctive, imperative or participle --tense=T only display tense T, where T can be present, past, imperfect or future --pronouns show the pronouns --utf8 assume that the terminal uses the UTF-8 encoding instead of Latin-1 (ISO-8859-1); try this option if Verbiste claims not to know a verb that contains an accented character --all-infinitives print the infinitive form of all the verbs in the knowledge base, one per line, unsorted; other command-line arguments are ignored EXAMPLES
$ french-conjugator aimer - infinitive present: aimer - indicative present: aime aimes aime aimons aimez aiment - indicative imperfect: aimais aimais aimait [...] - participle past: aime aimes aimee aimees - LICENSE
This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. AUTHOR
See the verbiste(3) manual page. BUGS
See the verbiste(3) manual page. SEE ALSO
verbiste(3), french-deconjugator(1). April 28th, 2012 french-conjugator(1)
All times are GMT -4. The time now is 01:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy