hi
i have a line
"abc,def,ghi,abc,def ,ghi,abc,def,ghi,abc,def ,ghi,abc,def,ghi,abc"
I want to print the no of words, words separated by comma
please help (3 Replies)
Hi, im having a problem with xargs, i want to cout word of each line in file, and i HAVE to use xargs, i tried:
cat file | xargs wc -w .....that uses all words in file like name of files and passed then to wc so it worte wc :somewordformfile is not i afile or directory
cat file | xargs -I{} wc... (3 Replies)
I have a file which will have rows like shown below,
ST*820*316054716
RMR*IV*11333331009*PO*40.31
REF*IV*22234441009*xsss471-2762
DTM*003*091016
ENT*000006
RMR*IV*2222234444*PO*239.91
REF*IV*1234445451009*LJhjlkhkj471-2762 </SPAN>
DTM*003*
091016
RMR*IV*2223344441009*PO*40.31... (18 Replies)
Hi Guys,
I have a file like this:
wwwe 1 ioie ewew yyy uuu 88
erehrlk 4 ihoiwhe lkjhassad lkhsad yyy mmm 45
jhash lhasdhs lkhsdkjsn ouiyrshroi oihoihswodnw oiyhewe yyy ggg 77
I want to remove everything after "yyy" and including "yyy" from each line in the file.
So I want:... (2 Replies)
Hi Guys, :p
I have a file like this:
2010-04-25 00:00:30,095 INFO - ]- start process U100M4
2010-04-25 00:00:30,096 DEBUG - ] -- call EJB
2010-04-25 00:00:30,709 INFO - - end processU100M4
2010-04-25 00:00:30,710 DEBUG - got message=Sorry
I want to out put format.
2010-04-25... (5 Replies)
Gurus,
I have a file containing lines like this :
Now, number of words in each line varies. My need is, if a word repeats in a line get it printed. Also total number of repeats.
So, the output would be :
Any help would be highly appreciated.
Thanks & Regards (5 Replies)
Hi Folks :)
I have a .txt file with thousands of words. I'm trying to sort the lines in order based on number of words per line.
Example
from:
word
word word word
word word
word word word word
word
word word word
word word
to desired output:
word (2 Replies)
Hi All,
I need one help to replace particular words in file based on if finds another words in that file .
i.e.
my self is peter@king.
i am staying at north sydney.
we all are peter@king.
How to replace peter to sham if it finds @king in any line of that file.
Please help me... (8 Replies)
Discussion started by: Rajib Podder
8 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