Sponsored Content
Full Discussion: Find missed numbers
Top Forums Shell Programming and Scripting Find missed numbers Post 302773845 by dtdt on Thursday 28th of February 2013 09:56:42 PM
Old 02-28-2013
Find missed numbers

I have a file as follows:

1
3
7
12
78
...
999998
1000000

I want to find out all numbers not in the file above and put into another file like

2
4
5
6
8
9
10
11
13
...
999999

thank you
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

asked question about script before missed ansewr..

linux fedora core2 :) i am trying to write a script to clear, date, pwd and tty a linux termnal or konsole.. when I test the tty against $0 i am, getting a premission denied on the terminal that I am trying to printf to.. I tried using an awk command, test condition, an if then fi clause, but... (6 Replies)
Discussion started by: moxxx68
6 Replies

2. Shell Programming and Scripting

to find numbers using awk

suppose u have a file 23 33 44 66 55 88 Another file 49 34 49 90 So to find where these numbers lie between in the first file output shud be while using second file and search for the first file 44 66 - 23 33 44 66 - (1 Reply)
Discussion started by: cdfd123
1 Replies

3. Shell Programming and Scripting

to find numbers in a string

I writing my script and got stuck in this function. Can someone help me? I need to extract out the numbers inside a string. Ex: INPUT -> OUTPUT abcdef123 -> 123 abc123def -> 123 123abcdef -> 123 a123bc45d -> 123 45 abcdefghi -> -1 Thank you! (12 Replies)
Discussion started by: fongthai
12 Replies

4. HP-UX

vgchgid missed one disk

Hi, Suppose I have 3 disks c0t0d0, c0t0d1, and c0t0d2 all with the *same* VGID. I then run: # vgchgid /dev/rdsk/c0t0d0 /dev/rdsk/c0t0d1 (notice I *accidentally* skipped the third disk!) How would I fix this so that all 3 disks have the same VGID again? I'm looking for step-by-step... (7 Replies)
Discussion started by: apra143
7 Replies

5. Shell Programming and Scripting

find the last word with all numbers?

Hi, I was trying to extract the last word with all numbers using awk. like the below example. I am looking for a pattern using awk. desired result: (13 Replies)
Discussion started by: hitmansilentass
13 Replies

6. Shell Programming and Scripting

AWK regex to find only numbers

Hi guys I need to find both negative and positive numbers from the following text file. And i also dont need 0. 0 8 -7 -2268 007 -07 -00 -0a0 0a0 -07a0 7a00 0a0 Can someone please give a regex to filter out the values in red. I tried a few things in awk but it didnt work... (9 Replies)
Discussion started by: sridanu
9 Replies

7. Linux

Apache folder missed

Hi, I am confused on apache service. Please advice me There is no apache directory in my linux box. Even I cant find out httpd.conf file also. But If browse my Hostname in Internet Explor, I can able to apache service there. Please How it is working .. This file is available in... (1 Reply)
Discussion started by: Mani_apr08
1 Replies

8. Programming

RegEx find numbers above 25000

Hello, I am using the Sublime Plugin LogHighlight. I can use RegEx there to highlight some lines in sublime. Now I need to find every line, that has a number of above 25000. the lines look like this: smart_sdl.result: 8947 smart_sdm.result: 8947 smart_sdn.result: 25000 Currently I am... (3 Replies)
Discussion started by: blend_in
3 Replies

9. UNIX for Beginners Questions & Answers

Script That Find Numbers Less Than 10

We have an existing script called "slots.sh" that prints a few numbers. I want to have another shell script that looks if there is any number from this output that is less than 10. If it does find a number that is less than 10, it then emails to me the output of "slot. sh", if it is equal to 10 or... (7 Replies)
Discussion started by: forextrafun
7 Replies
cpufreqd-get(1) 														   cpufreqd-get(1)

NAME
cpufreqd-get - Issues "get" commands to cpufreqd. SYNTAX
cpufreqd-get [-l] PARAMETERS
-l list applied Profiles for all cpus. DESCRIPTION
cpufreqd-get issues a command to cpufreqd and reads the returned output. When run without arguments it will issue a "LIST_PROFILES" com- mand, useful for usage with cpufreqd-set. See the PARAMETERS above for more. COMMANDS
LIST_PROFILES cpufreqd-get Name (#1): On Demand High Active on CPU#: 0, 1 Governor: ondemand Min freq: 1000000 Max freq: 1833000 Name (#2): On Demand Low Governor: ondemand Min freq: 1000000 Max freq: 1333000 LIST_APPLIED_PROFILES cpufreqd-get -l CPU#0: "High Speed 1" ondemand 731500-997500 Near the name (between the parenthesis) you can find the index number to use when setting a specific profile with cpufreqd-set. AUTHORS
Mattia Dongili <malattia@linux.it> SEE ALSO
cpufreqd-set(1), cpufreqd(8), cpufreqd.conf(5) Mattia Dongili 2.2.0 cpufreqd-get(1)
All times are GMT -4. The time now is 02:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy