I am trying to execute this but with no luck
---------- Post updated at 09:29 PM ---------- Previous update was at 04:51 PM ----------
I have a ASCII null separated file as shown in the example and what I am trying to do is to replace the Null separator with | (pipe) without affecting the nulls in the individual fields like "Jungle Hill" ,"City Road" & "SE23 3UX"
Last edited by vbe; 11-30-2015 at 12:56 PM..
Reason: code tags please
In my server migration requirement, I need to compare if one file on old server is exactly the same as the corresponding file on the new server.
For diff and comm, the inputs need to be sorted. But I do not want to disturb the content of the file and need to find byte-to-byte match.
Please... (4 Replies)
Hi,
I want to replace a field in a text delimited file with the actual number of records in the same file.
HDR|ABCD|10-13-2008 to 10-19-2008.txt|10-19-2008|XYZ
DTL|0|5464-1|0|02-02-2008|02-03-2008||||F|||||||||
DTL|1|5464-1|1|02-02-2008|02-03-2008|1||JJJ... (3 Replies)
Hello All,
I have a file with thousands of records:
eg:
|000222|123456987|||||||AARONSON| JOHN P|||PRIMARY |P
|000111|567894521|||||||ATHENS| WILLIAM k|||AAAA|L
Expected:
|000222|123456987|||||||AARONSON| JOHN |P|||PRIMARY |P
|000111|567894521|||||||ATHENS| WILLIAM |k|||AAAA|L
I... (6 Replies)
Hi
I have an input CSV file which contains some values
Format of file is as follows:
32R01000000003144476;32R01000000029054270;1000;6000;12/12/2007;0382521276;REG;Régulari
I just need to validate it whether it is ';' seperated ie (if any other seperator is used it shld give an error)
How do... (5 Replies)
Hi,
I need to split the fields in some text strings into separate variables.
The fields are separated by pipes.
The strings look roughly like this:
CUSTNAME|hostname|userid|gecos field|staff|disabled||SUDO
Currently I can do it using something like cut -d"|" -f1, but when I put that into... (4 Replies)
Hi,
I have a pipe delimited file as below and I need to replace the 2nd column of each line with null values.
1|10/15/2011|fname1|lname1
2|10/15/2012|fname2|lname2
3|10/15/2013|fname3|lname3
Output file:
1||fname1|lname1
2||fname2|lname2
3||fname3|lname3
I tried this
... (2 Replies)
I have a pipe delimited file and I'm trying to write a script that will give the character/byte positions of each pipe in the file. There may be some simple way but I don't know what it is... Can someone help with this?
Ex: file has output below
abc|def|ghi|
I want the script to tell the... (1 Reply)
Discussion started by: basz808
1 Replies
LEARN ABOUT BSD
mwrite
MWRITE(1) General Commands Manual MWRITE(1)NAME
mwrite - low level write (copy) a Unix file to MSDOS
SYNOPSIS
mwrite [ -tnvm ] unixfile msdosfile
mwrite [ -tnvm ] unixfile [ unixfiles... ] msdosdirectory
DESCRIPTION
In the first form, mwrite copies the specified Unix file to the named MSDOS file. The second form of the command copies multiple Unix
files to the named MSDOS directory.
Mwrite will allow the following command line options:
t Text file transfer. Mwrite will translate incoming line feeds to carriage return/line feeds.
n No warning. Mwrite will not warn the user when overwriting an existing file.
v Verbose mode. Display the new filename if the Unix filename requires conversion.
m Preserve the file modification times.
If the target file already exists, and the -n option is not in effect, mwrite asks whether or not to overwrite the file.
Reasonable care is taken to create a valid MSDOS filename. If an invalid name is specified, mwrite will change the name (and display the
new name if the verbose mode is set).
MSDOS subdirectory names are are supported with either the '/' or '' separator. The use of the '' separator or wildcards will require
the names to be enclosed in quotes to protect them from the shell.
The mcd command may be used to establish the device and the current working directory (relative to MSDOS), otherwise the default is A:/.
SEE ALSO mcd(1), mcopy(1), mread(1)BUGS
Unlike MSDOS, the destination directory may not be omitted.
local MWRITE(1)