Hi All,
I am having following file and I want to delete 1 row last column.
Current File Content:
================
procedure test421 put_line
procedure test321 test421
procedure test521 test321
procedure test621 test521
Expected File Content:
===========================
procedure... (3 Replies)
I have file which as 12 columns and values like this
1,2,3,4,5
a,b,c,d,e
b,c,a,e,f
a,b,e,a,h
if you see the first column has duplicate values, I need to identify (print it to console) the duplicate value (which is 'a') and also remove duplicate values like below. I could be in two... (5 Replies)
I am a newbie to shell scripting ..
I have a .csv file. It has 1000 some rows and about 7 columns...
but before I insert this data to a table I have to parse it and clean it ..basing on the value of the first column..which a string of phone number type...
example below..
column 1 ... (2 Replies)
Hi,
I want to delete rows that have 0 at column 4.
The file looks like this:
chr01 13 61 2
chr01 65 153 0
chr01 157 309 1
chr01 313 309 0
chr01 317 469 1
chr01 473 557 0
I want to delete all rows with a 0 at column 4
chr01 13 61 2
chr01 157 309 1
chr01 ... (3 Replies)
Hi,
My input file is this way
1.1 0.0 2.4 3.5
7.9 1.8 22.3 4.7 8.9
0.9 1.3 0.0 3.4 5.6
0.0 1.1 2.2 0.0 0.0
1.1 0.0 0.0 3.4 5.6
I would like to delete the entire row, if either of 2nd and 3rd columns are 0.0.
Please note that my values are all decimal values.
So, my output would... (4 Replies)
Hello,
I am new to Linux environment , I working on Linux script which should send auto email based on the specific condition from log file. Below is the sample log file
Name m/c usage
abc xxx 10
abc xxx 20
abc xxx 5
xyz ... (6 Replies)
Hi,
I have an input file as shown below:
20140102;13:30;FR-AUD-LIBOR-1W;2.495
20140103;13:30;FR-AUD-LIBOR-1W;2.475
20140106;13:30;FR-AUD-LIBOR-1W;2.495
20140107;13:30;FR-AUD-LIBOR-1W;2.475
20140108;13:30;FR-AUD-LIBOR-1W;2.475
20140109;13:30;FR-AUD-LIBOR-1W;2.475... (2 Replies)
Dear folks
I have a map file of around 54K lines and some of the values in the second column have the same value and I want to find them and delete all of the same values. I looked over duplicate commands but my case is not to keep one of the duplicate values. I want to remove all of the same... (4 Replies)
Discussion started by: sajmar
4 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