I have a delimited file. Each line consists of 5 fields separated by commas.so each line should consists of 4 commas. But due to some quality issue few lines consists of extra comma. need to print those odd lines.
need an unix command to find out those lines
Last edited by Scrutinizer; 01-24-2020 at 03:36 PM..
Reason: code tags
my input file(.txt) has the information like
-------------------------------------
WS=123hi4
wd=WAST,RDP
------------------------------------
i need out like
----------------------------------
"where WS='123hi4' and wd in ('WAST','RDP')" (2 Replies)
Hi,
I am trying to truncate word after comma in a file ONLY if there are already 2 words BEFORE comma. If there is one word or 3 or more words BEFORE comma, then I have to leave the data AS IS. See below for example.
Input File :
John Smith, Manager
Smith, John Frank
J F K... (2 Replies)
without using conventional file searching commands like find etc, is it possible to locate a file if i just know that the file that i'm searching for contains a particular text like "Hello world" or something? (5 Replies)
Hi
Can any one pls tell me how to grep this line
POPULATION,69691,20120509
I want the number 69691 from the above line.
How to grep from the first comma till the next comma.
Thank You.:confused: (8 Replies)
Hi,
I'm dealing with an issue and losing a lot of hours figuring out how i would solve this.
I have an input file which looks like this:
('BLABLA +200-GRS','Serviço ','TarifaçãoServiço','wap.bla.us.0000000121',2985,0,55,' de conversão em escada','Dia','Domingos')
('BLABLA +200-GRR','Serviço... (6 Replies)
Hello there,
I have a comma separated csv , and all the text field is wrapped by double quote. Issue is some text field contain comma as well inside double quote. so it is difficult to process.
Input in the csv file is ,
1,234,"abc,12,gh","GH234TY",34
I need output like below,... (8 Replies)
I,
I have a file and i need to replace comma and blank space with comma and 0.
cat file.txt
a,5
b,1
c,
d,
e,4
I need the output as
cat file.txt
a,5
b,1
c,0
d,0 (4 Replies)
I have a comma delimited file of major codes and descriptions. I want to replace all occurrences of spaces with underscores up to the first comma (only in the first field), but not replace spaces following the comma. For instance I have the following snippet of the file:
EK ED,Elementary and... (7 Replies)
Hi Experts,
Please support
I have below data in file in comma seperated, but 4th column is containing comma in between numbers, bcz of which when i tried to parse the file the column 6th value(5049641141) is being removed from the file and value(222.82) in column 5 becoming value of column6.
... (3 Replies)
can anyone help me!!!! How to I parse the CSV file
file name : abc.csv (csv file) The above file containing data like
abv,sfs,,hju,',',jkk wff,fst,,rgr,',',rgr ere,edf,erg,',',rgr,rgr I have a requirement like i have to extract different field and assign them into different... (4 Replies)
Discussion started by: J.Jena
4 Replies
LEARN ABOUT SUNOS
dfmounts_nfs
dfmounts_nfs(1M) System Administration Commands dfmounts_nfs(1M)NAME
dfmounts_nfs - display mounted NFS resource information
SYNOPSIS
dfmounts [ -F nfs] [-h] [server...]
DESCRIPTION
dfmounts shows the local resources shared through NFS, along with the list of clients that have mounted the resource. The -F flag may be
omitted if NFS is the only file system type listed in the file /etc/dfs/fstypes.
dfmounts without options, displays all remote resources mounted on the local system, regardless of file system type.
The output of dfmounts consists of an optional header line (suppressed with the -h flag) followed by a list of lines containing whitespace-
separated fields. For each resource, the fields are:
resource server pathname clients ...
where
resource Does not apply to NFS. Printed as a hyphen (-).
server Specifies the system from which the resource was mounted.
pathname Specifies the pathname that must be given to the share(1M) command.
clients Is a comma-separated list of systems that have mounted the resource.
OPTIONS -F nfs Specifies the nfs-FSType.
-h Suppress header line in output.
server Displays information about the resources mounted from each server, where server can be any system on the network. If no
server is specified, the server is assumed to be the local system.
FILES
/etc/dfs/fstypes
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWnfscu |
+-----------------------------+-----------------------------+
SEE ALSO mount(1M), share(1M), unshare(1M), attributes(5)SunOS 5.10 6 Nov 2000 dfmounts_nfs(1M)