folks,
In my working directory, there a multiple large files which only contain one line in the file. The line is too long to use "grep", so any help?
For example, if I want to find if these files contain a string like "93849", what command I should use?
Also, there is oder_id number... (1 Reply)
Hi All,
I have a text file below. How do i grab all the data between "05T00NPQSMR1" and "****" using awk ? Pls note that the text lines may not be fixed and text content is dynamic. Pls help. Thanks
Below is my code where $LOT_SUFFIX is my shell variable.
awk '/'"$LOT_SUFFIX"'/,/blah/'... (16 Replies)
Hello Everyone,
I'm trying to write a python script that will go to the following website and grab all the data on the page. The page refreshes regularly and the number of flights is different.
Untitled Document
What I wanted to do was grab all the data (except for top three row containing... (5 Replies)
Hello Honourable Members,
I stuck into one issue, my server is migrating from UNIX to linux and ptree command does not work there.
I was working with pstree command in linux and need some help regarding the same.
suppose i have one line for example:
ram (121)--- sita... (3 Replies)
I tried searching the forums, but couldn't find anything relevant to my question.
I have an xml file like the following:
<topLevel numberBlock="BLOCK1">
<item="content1" title="Content 1">
<RefPath="path/to/file1.txt />
</item>
<item"content2" title="Content 2" >... (4 Replies)
Hi Unix Gurus,
I need to grep for a block that is between a start and end keyword and then in between I need to find and replace a keyword.
for eg: I need to search between Test = 000; and Test = 000; and find K9 and replace with M9
INPUT FILE
Define {
Replace = K9;
Test =... (6 Replies)
in my file which is a rather long log file it contains many text and tables and there is one table with 15 columns and I am interested to read in the value in column6 and its corresponding value in column2. Trouble is I do not know how to script it as the line number various between different log... (8 Replies)
I need to send email to receipient in each block of data in a file which has the sender address under TO and just send that block of data where it ends as COMPANY.
I tried to work this out by getting line numbers of the string HELLO but unable to grab the next block of data to send the next... (5 Replies)
Hello Everyone,
I am very new to the world of regular expressions. I am trying to use grep/sed for the following:
Input file is something like this and there are multiple such files:
abc
1
2
3
4
5
***END***
abc
6
7
8
9
***END***
abc
10 (2 Replies)
Discussion started by: shellnewuser
2 Replies
LEARN ABOUT OSX
disklabel
disklabel(8) BSD System Manager's Manual disklabel(8)NAME
disklabel -- manipulate and query an Apple Label disk label
SYNOPSIS
disklabel -create disk-device [-msize=size] [property=value] [...]
disklabel -status disk-device
disklabel -properties disk-device [property[=value]] [...]
disklabel -destroy disk-device
DESCRIPTION
The disklabel utility manipulates ``Apple Label'' partition metadata. ``Apple Label'' partitions allow for a disk device to have a consis-
tent name, ownership, and permissions across reboots, even though uses a dynamic pseudofilesystem for /dev.
The ``Apple Label'' partition uses a set of metadata (as a plist) in a reserved area of the partition. This metadata describes the owner,
name, and so forth.
When -create is used, the -msize argument can specify the size of metadata area; the default is 128Kbytes. The default size unit is bytes,
but the following suffixes may be used to multiply by the given factor: ``b'' (512), ``k'' (1024), ``m'' (1048576), and ``g'' (1073741824).
Although any key-value pair can be specified for the properties, certain keys are used by the system:
owner-uid The user (as either a string or numeric value) to own the device.
owner-gid The group (as either a string or numeric value) associated with the device.
owner-mode The permissions (as a numeric value) for the device.
dev-name The name for the device.
If the owner-uid and owner-gid properties are given as strings, the utility will attempt to look up the names (as users or groups, as appro-
priate), and will store the numeric values in the metadata. If it cannot find the names, and the values are not given as numbers, it will
print an error, and not store the key/value pairs in the metadata.
The owner-mode property may be given in decimal, or in octal by using a preceding ``0'' (e.g., ``0666'').
Any property may be forced to be treated as a string by enclosing it in double-quotation marks; bear in mind that shell escapes will probably
be necessary in this sitation.
The -properties directive can print out all keys (if no arguments are given), a requested set of keys (if a list of key names is given), or
can modify (or add) keys (if a key-value pairs are given).
also maintains a checksum of the metadata; the -status directive verifies this checksum.
EXAMPLES
The following example will create a device with 1MByte of metadata area, owned by fred, with a device name of fred, and be writable by fred:
disklabel -create /dev/rdisk1s1 -msize=1M owner-uid=fred dev-name=fred owner-mode=0644
The following example will then print out the key-value pairs from the above:
disklabel -properties /dev/rdisk1s1
SEE ALSO pdisk(8)BSD September 3, 2004 BSD