Sponsored Content
Full Discussion: how to change my file
Top Forums Shell Programming and Scripting how to change my file Post 302285447 by ranjeetmenon on Monday 9th of February 2009 02:31:13 AM
Old 02-09-2009
If your contents are in file "a", and your new file is "b":

tr "\n" " " <a > b
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Help with multiple file rename - change case of part of file name

Hi there, I hope someone can help me with this problem : I have a directory (/var/www/file/imgprofil) which contains about 10000 JPG files. They have a naming convention thus : prefix-date-key-suffix.jpg they all have the prefix p-20050608- then AAAA is a 4 letter code the suffix is... (7 Replies)
Discussion started by: steve7
7 Replies

2. UNIX for Dummies Questions & Answers

How to change the file modification time of a file on nfs mount point

Hi I am accessing a file on nfs mounted device, after completing using of the file, i am tring to restore the access time and modification times of the file. So i got the previous modified time of the file using stat() function and trying to set the date and time for the file, To set these... (6 Replies)
Discussion started by: deepthi.s
6 Replies

3. Shell Programming and Scripting

how to change the current file processing to some other random file in awk ?

Hello, say suppose i am processing an file emp.dat the field of which are deptno empno empname etc now say suppose i want to change the file to emp.lst then how can i do it? Here i what i attempted but in vain BEGIN{ system("sort emp.dat > emp.lst") FILENAME="emp.lst" } { print... (2 Replies)
Discussion started by: salman4u
2 Replies

4. Shell Programming and Scripting

ksh; Change file permissions, update file, change permissions back?

Hi, I am creating a ksh script to search for a string of text inside files within a directory tree. Some of these file are going to be read/execute only. I know to use chmod to change the permissions of the file, but I want to preserve the original permissions after writing to the file. How can I... (3 Replies)
Discussion started by: right_coaster
3 Replies

5. Shell Programming and Scripting

Help i want to change the data of one file and apend it into 2nd file.

Hi All, Please help i have written an ksh script, where i am actually take count of lines in one file and want to update this count to 2nd field of a new file and apend the this into an existing file. Note the below script is in for loop -------- I am apending few records in a file... (7 Replies)
Discussion started by: iamnoone
7 Replies

6. Shell Programming and Scripting

add line in file and change file name

HI I have 100 files in below folder:- /home/lkj/TEST File name like below undo_ARL01003_120907-155022.mos undo_ARL01006_120908-155042.mos i want replace one first line of each file to pt all i want change file name as below. ARL01003.mos ARL01006.mos Thanks (2 Replies)
Discussion started by: asavaliya
2 Replies

7. Shell Programming and Scripting

Change the file name and copy old file content to new file names.

Hi, I have a files in a directory as below :- ls -1 mqdepth-S1STC02 proc-mq-S1STC01 proc-mq-S1STC02 proc-mq-S1STC03 Whereever i have S1STC i need to copy them into new file with file name S2STC. expected output :- ls -1 mqdepth-S2STC02 proc-mq-S2STC01 proc-mq-S2STC02... (3 Replies)
Discussion started by: satishmallidi
3 Replies

8. Shell Programming and Scripting

Trying to take file numbers from a file, pass them to sed to change strings in corresponding lines

I have a bunch of file numbers in the file 'test': I'm trying the above command to change all the instances of "H" to "Na+" in the file testsds.pdb at the line numbers indicated in the file 'test'. I've tried the following and various similar alternatives but nothing is working: cat test |... (3 Replies)
Discussion started by: crunchgargoyle
3 Replies

9. Shell Programming and Scripting

Change in the file

Hi, I have a file which has wrong time format and we want to correct it before we load it. WRONG FORMAT : 93:0:00 CORRECT FORMAT :09:30:00 If you notice the 0 at the front is missing. Its the case always. (6 Replies)
Discussion started by: varun22486
6 Replies

10. UNIX for Beginners Questions & Answers

How to change name of the file with first line of the file which has some unwanted text in it?

I have a log file, which i have divided into 14 files using csplit, the file looks like below test-000000 test-000001 #and so on until 14 now I want all the 14 files generated to be renamed as the some part of test in first line of the file how can i eliminate the unwanted text? sample... (5 Replies)
Discussion started by: Sekhar419
5 Replies
Mono(Mono 1.1.x)														  Mono(Mono 1.1.x)

NAME
monodis - CIL image content dumper and disassembler. SYNOPSIS
monodis [-h] [--help] [--output=FILENAME] [--mscorlib] [--assembly] [--assemblyref] [--classlayout] [--constant] [--customattr] [--declsec] [--event] [--exported] [--fields] [--file] [--forward-decls] [--genericpar] [--implmap] [--interface] [--manifest] [--marshal] [--member- ref] [--method] [--methodimpl] [--methodsem] [--methodspec] [--module] [--moduleref] [--mresources] [--presources] [--nested] [--param] [--parconst] [--property] [--propertymap] [--standalonesig] [--typedef] [--typeref] [--typespec] [--blob] [--strings] [--userstrings] [FILES...] DESCRIPTION
The monodis program is used to dump the contents an ECMA/ISO CIL image (contained in .EXE files that contain extended PE/COFF CIL code). To roundtrip assemblies using ilasm, it is best to use the --output argument, as that will make monodis save the embedded resources in files that can later be properly embedded back by ilasm. Additionally, the tool can be used to dump the contents of the various ECMA CIL metadata tables. OPTIONS
The following Generic options are supported: --help , -h Displays usage instructions. --output=FILENAME Write output into FILENAME and dump any embedded managed resources. --mscorlib For non-corlib assemblies, use "mscorlib" as the assembly name. This is useful for round-tripping the IL with ilasm. --show-method-tokens Display tokens for disassembled methods. OPTIONS TO DISPLAY METADATA TABLES
The following options are used to display metadata tables instead of disassembling the CIL image. --assembly Dumps the contents of the Assembly table. --assemblyref Dumps the contents of the AssemblyRef table. --classlayout Dumps the contents of the ClassLayout table. --constant Dumps the contents of the Constant table. --customattr Dumps the contents of the CustomAttribute table. --declsec Dumps the contents of the DeclSec table. --event Dumps the contents of the Event table. --exported Dumps the contents of the ExportedType table. --fields Dumps the contents of the Field table. --file Dumps the contents of the File table. --forward-decls Dumps forward declarations for classes. --genericpar Dumps the contents of the GenericParam table. --implmap Dumps the contents of the ImplMap table. --interface Dumps the contents of the InterfaceImpl table. --manifest Dumps the contents of the ManifestResource table. --marshal Dumps the contents of the FieldMarshal table. --memberref Dumps the contents of the MemberRef table. --method Dumps the contents of the MethodDef table. --methodimpl Dumps the contents of the MethodImpl table. --methodspec Dumps the contents of the MethodSpec table. --methodsem Dumps the contents of the MethodSemantics table. --module Dumps the contents of the Module table. --moduleref Dumps the contents of the ModuleRef table. --mresources Saves all the managed resources embedded in the assembly into the current directory. To get a list of the embedded resources use the --manifest option. --presources Prints offsets and names of manifest resources embedded in the assembly. --nested Dumps the contents of the NestedClass table. --param Dumps the contents of the Param table. --parconst Dumps the contents of the GenericParameterConstraint table. --property Dumps the contents of the Property table. --propertymap Dumps the contents of the PropertyMap table. --standalonesig Dumps the contents of the StandAloneSig table. --typedef Dumps the contents of the TypeDef table. --typespec Dumps the contents of the TypeSpec table. --typeref Dumps the contents of the TypeRef table. --blob Dumps the entire contents of the blob stream as hex. --strings Dumps the contents of the Strings heap. --userstrings Dumps the contents of the User-Strings heap If no flags are specified the program dumps the content of the image in a format that can be used to rountrip the code. ENVIRONMENT VARIABLES
MONO_PATH Provides a search path to mono and mint where to look for library files. Directories are separated by the platform path separator (colons on unix). Example: /home/username/lib:/usr/local/mono/lib AUTHOR
monodis was written by Miguel de Icaza, Paolo Molaro and Dietmar Maurer. SEE ALSO
pedump(1) Mono(Mono 1.1.x)
All times are GMT -4. The time now is 09:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy