04-09-2019
Quote:
Originally Posted by
Sagar Singh
I have 13 text files and almost all of them contain the same string.
but some file has diffrent string inside.
I want to send that file which has a diffrent string inside
Hello Sagar,
Request you to please do always provide 3 important things required by the forums.
1st- Sample of Input_file(which has your sample input(s) etc) in CODE TAGS.
2nd- Sample of your expected output(which should come after running script/code) in CODE TAGS too.
3rd- Most important thing, your efforts. We encourage all users to add their efforts which they have put in order to solve their own problems in their posts in CODE TAGS, don't bother either your written code(s) are correct or wrong just post them in your posts and when you get guidance from this community then you could see where you were lacking or missing the things etc and that's the thought behind it(LEARNING).
Kindly do mention all details mentioned above clearly in your post and do let us know I am pretty sure you will get good guidance on this site, Keep learning, keep sharing on this site, cheers
Thanks,
R. Singh
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a string which contains following information:
<SZ.T><P ALIGN="CENTER"><FONT FACE="Arial, Helvetica, sans-serif" SIZE="+3">Bundesregierung nimmt sich dicke Deutsche vor</FONT></P></SZ.T>
<SZ.UT><P ALIGN="CENTER"><FONT SIZE="+1"><I> Seehofer und Schmidt planen Kampagne gegen... (3 Replies)
Discussion started by: trek
3 Replies
2. UNIX for Dummies Questions & Answers
How do I search for files that dont contain a certain string? I am currently trying
find ./logs -size +1c -exec grep -l 'Process Complete' {} \; -exec ls -l {} \; >
$TOD
Which gives me files that are reater han 0 file size and contain the string 'Process complete' but I want files that DONT... (13 Replies)
Discussion started by: tonydsam
13 Replies
3. 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
4. Linux
Hi all,
I have a question..
Here is my requirement..I have 500 files in a path say /a/b/c
I have some numbers in a file which are comma seperated...and I wanted to check if the numbers are present in the FileName in the path /a/b/c..if the number is there in the file that is fine..but if... (1 Reply)
Discussion started by: us_pokiri
1 Replies
5. Shell Programming and Scripting
Hi,
I want find multiple string in one file using find coomand.
And keeping it in one variable.grep is not working. (5 Replies)
Discussion started by: vivek1489
5 Replies
6. UNIX for Dummies Questions & Answers
Hi
I want know "How to find a file if we dont know exact location of file ?"
Thanks,
Tushar Joshi:) (9 Replies)
Discussion started by: tusharjoshi
9 Replies
7. Shell Programming and Scripting
Dear all,
I need your help, I have file like this:
file1:23456
01910964830098775635
34567
01942809546554654323
67589
26546854368698023653
09778
58716868568576876878
08675
86178546154065406546
08573
54165843543054354305
.
.file2:
23456 25
34567 26
67589 27 (2 Replies)
Discussion started by: attila
2 Replies
8. Shell Programming and Scripting
Hi All,
I'm trying to insert a string into a file at a specific location.
I'd like to add a string after the parent::__construct(); in my file.
<?php if (! defined('BASEPATH')) exit('No direct script access allowed');
class MY_Controller extends CI_Controller {
function... (6 Replies)
Discussion started by: jjkilpatrick
6 Replies
9. Shell Programming and Scripting
Hello
I would like to get know how to do this:
I got a big file (about 1GB) and I need to find a string (for instance by grep )
and then find all records in this file based on a string.
Thanks for advice.
Martin (12 Replies)
Discussion started by: mape
12 Replies
10. 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
LEARN ABOUT DEBIAN
plptex3
PLPTEX3(3plplot) PLplot API PLPTEX3(3plplot)
NAME
plptex3 - Write text inside the viewport of a 3D plot.
SYNOPSIS
plptex3(x, y, z, dx, dy, dz, sx, sy, sz, just, text)
DESCRIPTION
Writes text at a specified position and inclination and with a specified shear within the viewport. Text is clipped at the viewport bound-
aries. The reference point of a string lies along a line passing through the string at half the height of a capital letter. The position
of the reference point along this line is determined by just, and the reference point is placed at world coordinates (x, y, z) within the
viewport. The inclination and shear of the string is specified in terms of differences of world coordinates making it easy to write text
parallel to a line in a graph.
Redacted form: plptex3(x, y, z, dx, dy, dz, sx, sy, sz, just, text)
This function is used in example 28.
ARGUMENTS
x (PLFLT, input)
x coordinate of reference point of string.
y (PLFLT, input)
y coordinate of reference point of string.
z (PLFLT, input)
z coordinate of reference point of string.
dx (PLFLT, input)
Together with dy and dz, this specifies the inclination of the string. The baseline of the string is parallel to a line joining
(x, y, z) to (x+dx, y+dy, z+dz).
dy (PLFLT, input)
Together with dx and dz, this specifies the inclination of the string.
dz (PLFLT, input)
Together with dx and dy, this specifies the inclination of the string.
sx (PLFLT, input)
Together with sy and sz, this specifies the shear of the string. The string is sheared so that the characters are vertically par-
allel to a line joining (x, y, z) to (x+sx, y+sy, z+sz). If sx = sy = sz = 0.) then the text is not sheared.
sy (PLFLT, input)
Together with sx and sz, this specifies shear of the string.
sz (PLFLT, input)
Together with sx and sy, this specifies shear of the string.
just (PLFLT, input)
Specifies the position of the string relative to its reference point. If just=0., the reference point is at the left and if
just=1., it is at the right of the string. Other values of just give intermediate justifications.
text (const char *, input)
The string to be written out.
AUTHORS
Geoffrey Furnish and Maurice LeBrun wrote and maintain PLplot. This man page was automatically generated from the DocBook source of the
PLplot documentation, maintained by Alan W. Irwin and Rafael Laboissiere.
SEE ALSO
PLplot documentation at http://plplot.sourceforge.net/resources.
August, 2012 PLPTEX3(3plplot)