You get a useless use of cat award with useless use of backticks on the side. There's almost never a good reason to do this when the shell has a faster, simpler builtin without the unpredictable side-effects(data gets silently ignored, or program dies with 'too many arguments', or spaces cause the line to split early, etc, etc, etc)
Hello,
I cannot figure this one out. I would like to do the following. I have a line that has 7 words. It is possible that the line can have 20 words too. I always want to show the 9th word and beyond. The 9th word will always change so I do not have something to search for, so I think... (1 Reply)
Hi
I am a rookie and I would like to know how to make a script that prints as a output lines between two lines let say first variable is a :
Mon Aug 31 09:00:00 2009 CET
and the last line is
Tue Sep 08 09:00:00 2009 CET
also
lets say third line from
Mon Aug 31 09:00:00... (3 Replies)
Dear All
I want to search string "1000" from input file and if it found i want remove line that contain 1000 and also remove 3 line above it and 2 line below it.
INPUT FILE:
BHAT-D 2
aaa
ID CODE GS UPDATE MODE LANG MCO MCL NUMPAGES
50 ... (7 Replies)
I need to get total number of hdisk not assigned to any VGs.
PDC # lspv |grep None |awk '{print $1}' |wc
131 131 1099
So, it shows 131 hdisks.
I need to look at the individual hdisk fget_config info like below:
PDC # fget_config -Av |grep hdisk230
hdisk230 dac1 229... (4 Replies)
Hi ,
1)i want to display specific line number using tail command.
e.g. display 10 line from end.
Please help...
2)Want to display line 10 to 15 (from end)using tail command) (2 Replies)
This is Input - starts with Storage Group Name and ends with Shareable and the loop continues all I need is Storage group name and Alu numbers in the below output format requested.
Storage Group Name: abcd
Storage Group UID: 00:00:000:00:0:0:0
HBA/SP Pairs:
HBA UID ... (6 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
What single command line would you enter to get the following output?
8140 drwxr-xr-x 9 root bin 18 Jan 20... (6 Replies)
This could be a really dummy question.
I have a log text file.
What unix command to extract line from specific string to another specific string.
Is it something similar to?:
more +/"string" file_name
Thanks (4 Replies)
I pass a number to my script. Passing "1" below.
./getfile.sh 1
echo "User entered: $1"
ls -ltr *.conf | sed -n '$p'
I wish to use ls -ltr i.e list files in ascending order of time the latest showing at the bottom of the output.
Number 1 should get me the last row of ls -ltr output i.e... (9 Replies)
Discussion started by: mohtashims
9 Replies
LEARN ABOUT DEBIAN
prips
PRIPS(1) BSD General Commands Manual PRIPS(1)NAME
prips -- print the IP addresses in a given range
SYNOPSIS
prips [-c] [-d delim] [-e exclude] [-f format] [-i incr] start end
prips [-c] [-d delim] [-e exclude] [-f format] [-i incr] CIDR-block
prips -h
DESCRIPTION
The prips tool can be used to print all of the IP addresses in a given range. It can enhance tools that only work on one host at a time,
e.g. whois(1).
The prips tool accepts the following command-line options:
-c Print the range in CIDR notation.
-d delim
Set the delimiter to the character with ASCII code delim where 0 <= delim <= 255.
-e <x.x.x,x.x>
Exclude ranges from the output.
-f format
Set the format of addresses (hex, dec, or dot).
-h Show summary of options.
-i incr
Set the increment to 'x'.
ENVIRONMENT
The prips tool's operation is not influenced by any environment variables.
FILES
The prips tool's operation is not influenced by any files.
EXAMPLES
Display all the addresses in a reserved subnet:
prips 192.168.32.0 192.168.32.255
The same, using CIDR notation:
prips 192.168.32/24
Display only the usable addresses in a class A reserved subnet using a space instead of a newline for a delimiter:
prips -d 32 10.0.0.1 10.255.255.255
Display every fourth address in a weird block:
prips -i 4 192.168.32.7 192.168.33.5
Determine the smallest CIDR block containing two addresses:
prips -c 192.168.32.5 192.168.32.11
DIAGNOSTICS
The prips utility exits 0 on success, and >0 if an error occurs.
SEE ALSO ipsc(1), gipsc(1)STANDARDS
No standards were harmed in the writing of the prips tool.
HISTORY
The prips tool was originally written by Daniel Kelly and later adopted by Peter Pentchev. This manual page was originally written by Juan
Alvarez for the Debian GNU/Linux system and later added to the prips distribution and converted to mdoc format by Peter Pentchev.
AUTHORS
Daniel Kelly <dan@vertekcorp.com>
Juan Alvarez <jalvarez@fluidsignal.com>
Peter Pentchev <roam@ringlet.net>
BUGS
Please report any bugs in the prips tool to its current maintainer, Peter Pentchev.
BSD March 1, 2011 BSD