10-24-2017
Sorry for the delay.
I had to download a sed which works on Windows10.
Yes, it works and "does the job". "Cleans" up all the punctuations
Thanks a lot.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I build several files by using the cut command to grab select fields(columns) from a really bid csv file. Each file is one column of data. I then put them together using paste command. Here is the code built in tcsh:
cut -d , -f 1 some.csv > 1.csv
cut -d , -f 10 some.csv > 10.csv
paste 1.csv... (2 Replies)
Discussion started by: yankee428
2 Replies
2. Shell Programming and Scripting
Hi,
I have the input file having data as follow:
file1.txt
001 aaa_1:abcd
002 bbb_2:abcd
I want output as,
001xabcd
002xabcd
Here iam trying to replace "{1 space}{alphanumeric string with underscore}{:}" with characrter "x".
I tried to achieve this using sed;but Iam not getting this... (5 Replies)
Discussion started by: gopalss
5 Replies
3. Shell Programming and Scripting
Hi everyone,
I am new to the world of shell script programming.
I have a file named Fnd1.txt which has the contents as below.
I need to replace the \t with the tab space. Can any one help me
to write a perl scipt for this.
USA45V1\tG\t341029
USAV1T1\tG\t450545
USAREJ1\tG\t572645... (5 Replies)
Discussion started by: vinay123
5 Replies
4. Shell Programming and Scripting
Is there a way to do a find and replace in a .gz file in a single script ?
I can always unzip, find and replace and then zip it again but would hate to do this everytime.
Thanks !
Vivek (1 Reply)
Discussion started by: vashah
1 Replies
5. Shell Programming and Scripting
Hi -
I am looking for a replacing a string in a in multiple *.sql files in directory with a new string without using a temporary file
Normally I can use sed command as below
for W in ls `FILE*.sql`
do
sed 's/OLD/NEW/g' $W > TEMPFILE.dat
mv TEMPFILE.dat $W
done
But Here in my... (9 Replies)
Discussion started by: raghutapal
9 Replies
6. Shell Programming and Scripting
Hi Everyone,
I am new to this forum and new to sed/awk programming too !!
I need to find particular string in file1(text file) and replace it with a value from another text file(file2) the file2 has only one line and the value to be replaced with is in the second column.
file 1:
(assert (=... (21 Replies)
Discussion started by: paramad
21 Replies
7. Shell Programming and Scripting
Legends,
I have a file /tmp/list.txt
I want to find "/bin/" and replace it with "/log/"
I tried the follwoing but no luck
Sandy: /tmp> perl -pi -e 's/\/bin\/\/log\/' /tmp/list.txt >> /tmp/try
Substitution pattern not terminated at -e line 1.
AND,
Sandy: /tmp> perl -pi -e... (2 Replies)
Discussion started by: sdosanjh
2 Replies
8. Shell Programming and Scripting
Dear Shell Expert,
I have requirement of replacing passwd field in number of files based on username in them.
The matching username and "new" password in available in a separate file. below is the sample for both.
#sample of one of the file content, red highlighted field are username and... (20 Replies)
Discussion started by: KDDubai333
20 Replies
9. Shell Programming and Scripting
Hello Forum.
I have a file called abc.sed with the following commands;
s/1/one/g
s/2/two/g
...
I also have a second file called abc.dat and would like to substitute all occurrences of "1 with one", "2 with two", etc and create a new file called abc_new.dat
sed -f abc.sed abc.dat >... (10 Replies)
Discussion started by: pchang
10 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
I am having below sample data in a file.
I need to find all the line form this file with word ABC and i need to replace the characters at position 120 which is "CO:BOGFDUI"(30chars) in the lines with blank space.
I have tried using grep to find the word with ABC (grep ABC filename),... (3 Replies)
Discussion started by: abhi_123
3 Replies
LEARN ABOUT DEBIAN
french-conjugator
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)