Dear all,
what I need to do is extract an entries list from a file and remove some entries based on a white list present on other file, then output into result.txt file.
Example:
Code:
source.txt:
12345 text1 text2 text3 text4
123 text1 text2 text3 text4
678 text1 text2 text3 text4
987 text1 text2 text3 text4
456 text1 text2 text3 text4
Code:
whitelist.txt
123
987
Code:
output o
Hi !
I need some help with a script I am writing.
I am trying to compare two files, the first file being in this format :
Code:
Header1
Text1-1
Text1-2
Text1-3
Header2
Text2-1
etc...
For each header, I want to check if it appears in the second file, and if it is the case print the header and the three corresponding lines of text.
I found several methods for finding the header in the second f
Hi All,
I have a text file which is currently formatted like this:
Code:
TEXT1
***
TEXT2
***
TEXT3
***
I want text before *** to go into separate files.
How to add, subtract, multiply and divide 2 different numbers from 2 different form. Pls help me. The code i think is way too simple example: (Result.text = result) (Text1.text = number from form2)(Text2,text = Number from form3). the code i think is like this and this one is not working:
Public Sub Command1_Clicked()
Result.text = Val(Text1.Text) + Val(Text2.text)
I need to remove lines from a text file based on pattern but I need to keep the first n lines of that pattern.
Input
% 1
% 2
% 3
% 4
% 5
text1
text2
text3
output
%1
%2
text1
text2
text3
I used sed /^%/d file but it deletes all the lines starting with %, sed 3,/^%/d doesn't help either. I need to keep first n lines of the pattern and delete the rest
This is an unexpected behavior in Thunar: The templates must reside in the ~/templates folder.The problem is that they must be real files, not symlinks.- If ~/templates is a symlink to another folder (for instance ~/Dropbox/templates).
Hello,
I am trying to modify 2 files, to yield results in a 3rd file.
File-1 is a 8-columned file, separted with tab.
Code:
1234:1 xyz1234 blah blah blah blah blah blah
1234:1 xyz1233 blah blah blah blah blah blah
1234:1 abc1234 blah blah blah blah blah blah
n/a RRR0000 blah blah blah blah blah blah
n/a RRR0000 blah blah blah blah blah blah
9876:2 htg234 blah blah blah blah blah b
Hi all,
Here is my problem:
I'm testing a login script for our mac Machines.
Hello,
Is there a quick awk one-liner for this extraction?:
file1
Code:
49389 text55
52211 text66
file2
Code:
59302 text1
49389 text2
85939 text3
52211 text4
13948 text5
Desired output
Code:
49389 text2
52211 text4
Thanks!!