Search Results

Search: Posts Made By: Prega
1,115
Posted By Prega
Thanks guys.
Thanks guys.
1,115
Posted By Prega
[Solved] Reusing a 'NOT' command
Hi Guys

I'm trying to search for all lines that that do not contain the dash (-) in it.

eg - I have the following list of numbers.I want to see those that donot contain the (-) in it.In this...
4,237
Posted By Prega
Hi sk1418 Thanks for your reply.Both of your...
Hi sk1418

Thanks for your reply.Both of your commands work.I need the second command :)

I'm extremly new to unix.Please could you explain command 2.It will help me a lot going forward.

sed...
4,237
Posted By Prega
Hi vbe Thanks for the reply. Yes this...
Hi vbe

Thanks for the reply.

Yes this is always true.File1 i.e Test1 will always contain the first line "BSC" which I don't want.So when i'm doing the diff between the two files I'm hoping to...
4,237
Posted By Prega
Diff command with a condition
Hi

I have 2 files test1 & test2.

Test1 contains :
BSC
AFCN

Test2 contains:
AFCN

I than use the following command :

diff file1 file2

which displays than displays : 2d1
< BSC
...
2,280
Posted By Prega
Thanks guys.I have tried the command diff -y...
Thanks guys.I have tried the command
diff -y file1 file2 |wc -l

and i get a return of 2.I want to view the difference only if number is greater than 2
In my case i get a return of 2 so I would...
2,280
Posted By Prega
Re:using the diff command
Hi Guys

I have a situation where I would like to use the diff command but I would like to see "number" of differences and than send it through and if statement and than view the difference if...
1,877
Posted By Prega
Thanks for reponse Scrutinizer. !A[$0]++ if...
Thanks for reponse Scrutinizer.

!A[$0]++ if A[$0]=0 or "" then perform the default action, i.e. print $0. Afterwards increment the value of A[$0] (++)

Sorry to be a pain but how does( if...
1,877
Posted By Prega
Thanks Scrutinizer. Could you please...
Thanks Scrutinizer.

Could you please explain how the code works.

I'm not too sure whats happening - $0=$5" "$7}!A[$0]++

Thanks
1,877
Posted By Prega
Hi Thanks for all the help.I really...
Hi

Thanks for all the help.I really appreciate it.

I wanted how would I alter this command - awk -F'[/"]' '{print $5,$7}' inputFile such that it does not print duplicates.

Thanks
7,109
Posted By Prega
Hi radoulov Thanks.When I ran the command...
Hi radoulov

Thanks.When I ran the command it worked.I wanted to know when creating a script how do you point this command to the correct directory.

e.g - all the files are stored in a...
7,109
Posted By Prega
Filename pattern count
Hi

I have the following files in a directory -

ds_pl_W_Test
ds_pl_list_Test
ds_pl_list_Test
ds_pl_listl_Test
ds_pl_file_Test
ds_pl_xx_Test

I would like to count the number files in...
1,877
Posted By Prega
Thanks Guys
Thanks Guys
1,877
Posted By Prega
Extracting and printing data
Hi

I have the following data :

<Cell id="34A" ref="ds:/BTS:34/Cells/Cell:34A"/>
<Cell id="34B" ref="ds:/BTS:34/Cells/Cell:34B"/>
<Cell id="34C"...
12,161
Posted By Prega
Hi Anurag. Many Tanks for the speedy...
Hi Anurag.

Many Tanks for the speedy response.I have seen this thread but i'm not sure how the loop works.Please could help me understand as I have 3 more question that is of similar type which I...
12,161
Posted By Prega
How to count Unique Values from a file.
Hi

I have the following info in a file -
<Cell id="25D"/>
<Cell id="26A"/>
<Cell id="26B"/>
<Cell id="26C"/>
<Cell id="27A"/>
<Cell id="27B"/>
...
Showing results 1 to 16 of 16

 
All times are GMT -4. The time now is 08:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy