I've been searching around here and other places, but can't put this together...
I've got a unique list of words in file 1 (one word on each line).
I need to delete each line in file2 that begins with the word in file1.
I started this way, but want to know how to use file1 words instead... (13 Replies)
Hi Guru's,
I need to create 3 files with the contents "ABC" using single command.
Iam using:
echo "ABC" > file1.txt file2.txt file3.txt
the above command is not working. pls help me...
With Regards / Ganapati (4 Replies)
I have one base file, and multiple target files-- each have uniform line structure so no need to use grep to find things-- can just define sections by line number.
My question is quite simple-- can I use sed to copy a defined block of lines (say lines 5-10) from filename1.txt to overwrite an... (3 Replies)
I have a diff command that does what I want but when comparing large text/log files, it uses up all the memory I have (sometimes over 8gig of memory)
diff file1.txt file2.txt | grep '^<'| awk '{$1="";print $0}' | sed 's/^ *//'
Is there a better more efficient way to find the lines in one file... (5 Replies)
Hi All,
I have a file1.txt where the index of the columns are placed. I want to get the columns from file2.txt corresponding to these index numbers.
I was usually using
awk '{print $5, $6, $2, $3, ...}' file2.txt > output.txt
However, this list is very long. So, i want to read the... (4 Replies)
This is appending a column.
My question is fairly simple. I have a program generating data in a form like so:
1 20
2 22
3 23
4 12
5 43
For ever iteration I'm generating this data. I have the basic idea with cut -f 2 fileA.txt | paste -d >> FileB.txt ???? I want FileB.txt to grow, and... (4 Replies)
Hi All,
I have to arrange one of the text file by deleting specific lines.
cat file1.txt
3595 3595 -0.00842773 -0.0085077 0.00368851
12815 12815 -0.00929239 0.00439785 0.0291697
3747 3747 -0.00974353 0.00228922 0.0225058
3574 3574 -0.00711399 -0.00315748 0.0141206
....
12734... (7 Replies)
I have very limited coding skills but I'm wondering if someone could help me with this. There are many threads about matching strings in two files, but I have no idea how to add a column from one file to another based on a matching string.
I'm looking to match column1 in file1 to the number... (3 Replies)
I want to add/append the info in the following format to my.txt file.
20130702|abcd20130702.txt FN|SN|DOB
I tried the below script but it throws me some exceptions.
<#!/bin/sh
dt = date '+%y%m%d'members;
echo $dt+|+members+$dt;
/usr/bin/awk -f
BEGIN { FS="|"; OFS="|"; } { print... (6 Replies)
Dear all,
I have a huge txt file (DATA.txt) with the following content . From this txt file, I want the following output using some shell script.
Any help is greatly appreciated.
Greetings,
emily
DATA.txt (snippet of the huge text file)
407202849... (2 Replies)
Discussion started by: emily
2 Replies
LEARN ABOUT ULTRIX
lang
lang(5int)lang(5int)Name
lang - language names
Description
The language support databases used by are stored in the directory If either the language support databases are moved or you specify your
own language support database, it is necessary to set the INTLINFO environment variable to the new location of these tables. The syntax of
this environment variable is identical to See the reference page for more information.
Should you want to create your own database, use the reference page and the Guide to Developing International Software as references for
what information your database should contain. After you create the database, you can specify it by using the international compiler,
The following table defines the supplied settings of the LANG and LC_ environment variables.
---------------------------------------------------------------------
Database Language Territory Codeset Use
---------------------------------------------------------------------
ENG_GB.MCS English United Kingdom DEC MCS VT200 series
FRE_FR.MCS French France
GER_DE.MCS German Germany
ENG_GB.8859 English United Kingdom ISO Latin-1 VT300 series
FRE_FR.8859 French France
GER_DE.8859 German Germany
ENG_GB.646 English United Kingdom ISO 646 VT100 series
FRE_FR.646 French France
GER_DE.646 German Germany
---------------------------------------------------------------------
In addition to the default collation definition for the GER_DE.nnn language, Digital provides a character collation table that collates
information using the German telephone directory ordering of data. The following example shows how to set the variable to use this table
with the ISO Latin-1 codeset:
LC_COLLATE = GER_DE.8859@P_TELEPHONE
See Alsoic(1int), intro(3int), nl_langinfo(3int), setlocale(3int), environ(5int)
Guide to Developing International Software
lang(5int)