Sponsored Content
Top Forums Shell Programming and Scripting Logic to separate the first name in the file Post 302999500 by ricky-row on Wednesday 21st of June 2017 12:49:45 PM
Old 06-21-2017
But my requirement is to look for a file in the location and if not has to create it first, if it is available I have to append these values in the end of the file. in different format, not directly.
like
ex
after the 1st function, I will be getting output as abc.list, xyz.list, cd-ef.list, gfd.list in a directoy named info.

apart from this output I need another file, let it be the same name you mentioned as outputfile. In this output file.
If I open the file it should have.
Code:
NAME= abc
TYPE=doc
NAME=xyz
TYPE=doc
NAME=cd-ef
TYPE=doc
NAME=gfd
TYPE=doc

here TPYE can be hardcoded.

Sorry to trouble, As, I am a newbee, I am struggling a lot.
 

We Also Found This Discussion For You

1. Shell Programming and Scripting

Shell script (sh file) logic to compare contents of one file with another file and output to file

Shell script logic Hi I have 2 input files like with file 1 content as (file1) "BRGTEST-242" a.txt "BRGTEST-240" a.txt "BRGTEST-219" e.txt File 2 contents as fle(2) "BRGTEST-244" a.txt "BRGTEST-244" b.txt "BRGTEST-231" c.txt "BRGTEST-231" d.txt "BRGTEST-221" e.txt I want to get... (22 Replies)
Discussion started by: pottic
22 Replies
mdu(1)							      General Commands Manual							    mdu(1)

Name
       mdu - display the amount of space occupied by an MSDOS directory

Note of warning
       This  manpage  has been automatically generated from mtools's texinfo documentation, and may not be entirely accurate or complete.  See the
       end of this man page for details.

Description
       Mdu is used to list the space occupied by a directory, its subdirectories and its files. It is similar to the du command on Unix.  The unit
       used are clusters.  Use the minfo command to find out the cluster size.

       mdu [-a] [ msdosfiles ... ]

       a      All files.  List also the space occupied for individual files.

       s      Only list the total space, don't give details for each subdirectory.

See Also
       Mtools' texinfo doc

Viewing the texi doc
       This  manpage  has  been automatically generated from mtools's texinfo documentation. However, this process is only approximative, and some
       items, such as crossreferences, footnotes and indices are lost in this translation process.  Indeed, these items have no appropriate repre-
       sentation  in  the manpage format.  Moreover, not all information has been translated into the manpage version.	Thus I strongly advise you
       to use the original texinfo doc.  See the end of this manpage for instructions how to view the texinfo doc.

       *      To generate a printable copy from the texinfo doc, run the following commands:

		     ./configure; make dvi; dvips mtools.dvi

       *      To generate a html copy,	run:

		     ./configure; make html

       A premade html can be found at `http://www.gnu.org/software/mtools/manual/mtools.html'

       *      To generate an info copy (browsable using emacs' info mode), run:

		     ./configure; make info

       The texinfo doc looks most pretty when printed or as html.  Indeed, in the info version certain examples are difficult to read due  to  the
       quoting conventions used in info.

mtools-4.0.18							      09Jan13								    mdu(1)
All times are GMT -4. The time now is 02:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy