i have a input file which does not have a delimiter
All i Need to do is to identify a line and extract the data from it and run the loop again and need to ensure that it was not extracted earlier
Input file
------------
abcd 12345 egfhijk ip 192.168.0.1 CNN.com
abcd 12345 egfhijk ip... (12 Replies)
Hello,
I have got one file with more than 120+ million records(35 GB in size). I have to extract some relevant data from file based on some parameter and generate other output file.
What will be the besat and fastest way to extract the ne file.
sample file format :--... (2 Replies)
Hello
i have go the following result from performing 2 testing using the same file.
I have used unix script to extract the result because the files are many as shown below.
01_gravity.f.tcov 7 3 42.86
02_gravity.f.tcov 9 4 80.86... (4 Replies)
Hi,
I have long string in 2nd field, as shown below:
REF1 | CLESCLJSCSHSCSMSCSNSCSRSCUDSCUFSCU7SCV1SCWPSCXGPDBACAPA0DHDPDMESED6
REF2 | SBR4PCBFPCDRSCSCG3SCHEBSCKNSCKPSCLLSCMCZXTNPCVFPCV6P4KL0DMDSDSASEWG
I have a group of fixed patterns which can occur in these long strings & only... (11 Replies)
Hi all,
I got a file that contains the following content, Actually it is a part of the file content,
Installing XYZ XYZA Image, API 18, revision 2
Unzipping XYZ XYZA Image, API 18, revision 2 (1%)
Unzipping XYZ XYZA Image, API 18, revision 2 (96%)
Unzipping XYZ XYZA Image, API 18,... (7 Replies)
Hello,
Using the information in file 1, I would like to extract from file2 all rows which matchs in column 3.
file 1
1233
1230
1231
1232
file2
65733.00 19775.00 1220
65733.00 19793.00 1220
65733.00 19801.00 1220
65733.00 19809.00 1231
65733.00 19817.00 ... (2 Replies)
Hi All,
I am having a file like below . Basically when SB comes in the text with B. I have to take the word till SB. When there only B I should take take till B. Tried for cut it by demilter but not able to build the logic
SB- CD B_RESTO SB_RESTO CRYSTALS BOILERS -->There SB and B so I... (6 Replies)
Discussion started by: arunkumar_mca
6 Replies
LEARN ABOUT OSX
getfileinfo
GETFILEINFO(1) BSD General Commands Manual GETFILEINFO(1)NAME
/usr/bin/GetFileInfo -- get attributes of files and directories
SYNOPSIS
/usr/bin/GetFileInfo [-P -a[<attribute-letter>] | -c | -d | -m | -t] file ...
DESCRIPTION
/usr/bin/GetFileInfo is a tool to get the file attributes.
With no flags, GetFileInfo retrieves all information about the file. If exactly one option is provided, GetFileInfo retrieves and displays
just that information; supplying more than one is an error.
Flags:
-P Acts on a symlink file instead of the file the symlink resolves to.
-a[<attribute-letter>]
Gets a file's attribute bits where <attribute-letter> is one of the following:
a Alias file
b Has bundle
c Custom icon (allowed on folders)
d Located on the desktop (allowed on folders)
e Extension is hidden (allowed on folders)
i Inited - Finder is aware of this file and has given it a location in a window. (allowed on folders)
l Locked
m Shared (can run multiple times)
n File has no INIT resource
s System file (name locked)
t "Stationery Pad" file
v Invisible (allowed on folders)
z Busy (allowed on folders)
The value of a single attribute is printed as 0 for off or false, 1 for on or true. If no attribute letter is specified, the
value of all attributes is returned, with lowercase letters representing off or false, and uppercase representing on or true.
-t Gets the file type, a string of exactly four characters. If the type is not set, these will display as an empty pair of quo-
tation marks. Directories do not have types, so the type will be skipped if all information is being displayed; specifying -t
for a directory is an error.
-c Gets the file's creator, a string of four characters enclosed in quotation marks. If the creator is not set, these will dis-
play as an empty pair of quotation marks. Directories do not have creators, so the creator will be skipped if all information
is being displayed; specifying -c for a directory is an error.
-d Gets the creation date, a string of the form "mm/dd/yyyy hh:mm:ss" in 24-hour clock format.
-m Gets the modification date, a string of the form "mm/dd/yyyy hh:mm:ss" in 24-hour clock format.
RETURN VALUES
0 success
1 syntax error
2 any other error
SEE ALSO SetFile(1)EXAMPLES
The following command line gets and prints the creator for the "Late Breaking News" file:
/Developer/Tools/GetFileInfo -c "Late Breaking News"
This command line prints the modification date of "myFile":
/Developer/Tools/GetFileInfo -m myFile
Mac OS X September 27, 2005 Mac OS X