Sorry for bothering again. I did some tests with your command and I found a small problem:
When the strings that are set as boundaries for my xlf file paths (ie, "fullpath:" and "-cfver") are truncated because of a carriage return in the file, then the command does not work.
For example, in the following two cases the path is not found because the strings are truncated:
Can some body tell me how to print number of line from a particular file, with sed. ?
Input file format
AAAA
BBBB
CCCC
SDFFF
DDDD
DDDD
Command to print line 2 and 3 ?
BBBB
CCCC
And also please tell me how to assign column sum to variable.
I user the following command it... (1 Reply)
Hi,
I want to print only lines in between two strings and not the strings using awk.
Eg:
OUTPUT
top 2
bottom 1
left 0
right 0
page 66
END
I want to print into a new file only
top 2
bottom 1
left 0... (4 Replies)
Ok so I can use awk to match a pattern and print the whole line with print $0. Is there any way to just tell awk to print every line of output when the pattern matches?
I'm having it wait for the word error and then print that entire line. But what I actually need to see is all the following... (9 Replies)
I have a file1.txt
file1.txt
F-120009210","Felix","U-M-F-F-F-","white","yes","no","U-M-F-F-F-","Bristol","RI","true"
F-120009213","Fluffy","U-F-","white","yes","no","M-F-","Warwick","RI","true"
U-120009217","Lity","U-M-","grey","yes","yes","","Fall River","MA","true"... (4 Replies)
I have a output log file, that I want to extract some temperature measurement data.
I want to AWK on the words "show chassis environment" in the original file, and extract that entire line, and then the 3rd to 10th lines after the one I AWK'd, into a seperate output file.
Here is an example... (3 Replies)
im using the code below to monitor a file:
gawk '{
a += gsub("(^| )accepted( |$)", "&")
a += gsub("(^| )open database( |$)", "&")
} END {
for (i in a)
printf("%s=%s\n", i, a)
}' /var/log/syslog
the code is searching the syslog file for the string "accepted" and "open... (2 Replies)
URGENT HELP IS NEEDED!!
I am looking to move matching lines (01 - 07) from File1 and 77 tab the matching string from File2, to File3.txt. I am almost done but
- Currently, script is not printing lines to File3.txt in order.
- Also the matching lines are not moving out of File1.txt
... (1 Reply)
from the CLI on a Mac, if you type networksetup -listallnetworkservices then you get results in a multi-line paragraph that look something like this:
networksetup -listallnetworkservices
An asterisk (*) denotes that a network service is disabled.
Wi-Fi
Display Ethernet
Bluetooth DUN... (7 Replies)
Discussion started by: hungryd
7 Replies
LEARN ABOUT DEBIAN
nuke
NUKE(8) System Manager's Manual NUKE(8)NAME
nuke - launch nuclear weapons at mapped USENET sites
SYNOPSIS
/etc/nuke [-y yield] [-a height] [-hcm] sitename...
DESCRIPTION
Nuke employs the `missile coordinate' fields in the USENET map database and Internet connections to a server interfaced with AUTOVON to lob
nuclear weapons at other UNIX sites, specified by name. The default warhead is a single 25KT groundburst tac nuke; options support other
combinations of warhead size, type and deployment.
The -y option specifies a yield. The argument must be a number suffixed by K or M, for kiloton or megaton respectively. Yield arguments
above 255M are quietly ignored.
The -a option specifies an air-burst height in meters.
The -h option specifies thermonuclear (hydrogen) weapons.
The -c option specifies cobalt-jacketed warheads for permanent site interdiction.
The -m option, useful with multiple-site nuke calls, invokes code which optimizes delivery using MIRVed warheads to minimize launches.
In accordance with the normal UNIX design philosophy nuke does not prevent you from nuking yourself.
FILES
/usr/lib/maps/* USENET map file database
BUGS
If a target site has given only nearest-city coordinates in its map entry, incorrect targeting and significant collateral casualties may
result.
Heavy use of nuke may cause EMP effects which interfere with Internet service.
NOTE
This command is restricted to super-users only.
AUTHOR
Eric S. Raymond <esr@thyrsus.com>
UNIX 13 October 1991 NUKE(8)