06-09-2017
I bet you have a DOS line terminator (<CR>, ^M, \r, 0x0D) in there ...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm working on formatting some attendance data to meet a vendors requirements to upload to their system. With some help on the forums here, I have the data close. But they've since changed what they want.
The vendor wants me to submit three fields to them. Field 1 is the studentid field,... (4 Replies)
Discussion started by: axo959
4 Replies
2. UNIX for Dummies Questions & Answers
hi forums
i need help with a little problem i am having.
i need to count the number of fields that are in a saved variable so i can use that number to make a different function work properly.
is there a way of doing this without using SED/AWK?
anything would be greatly appreciated (4 Replies)
Discussion started by: strasner
4 Replies
3. Shell Programming and Scripting
Hi Gurus,
Have a file seperated by "~" and no of fields is 104. When i try to run awk, it erros out.
awk: record `B~A31~T24_STF~~~2009...' has too many fields
Any idea how can i extract a specific filed with this many fields in a row.
Kindly help (3 Replies)
Discussion started by: srivat79
3 Replies
4. Shell Programming and Scripting
I have a CSV file with a variable number of fields per record. How do I print lines of a certain number of fields only? Several permutations of the following (including the use of escape characters) have failed to retrieve the line I'm after (1,2,3,4)...
$ cat myfile
1,2,3,4
1,2,3
$ # Print... (1 Reply)
Discussion started by: cs03dmj
1 Replies
5. Shell Programming and Scripting
I want to use awk to split fields and put them into a file
but I don't know the number of fields
for example, in the following line
Ports: 22/filtered/tcp//ssh///, 53/open/tcp//tcpwrapped///, 111/filtered/tcp//rpcbind///, 543/filtered/tcp//klogin///, 544/filtered/tcp//kshell///,... (3 Replies)
Discussion started by: esolvepolito
3 Replies
6. Shell Programming and Scripting
Hi,
With:
# VALUES="one~two~~~"
# echo $VALUES | awk 'BEGIN {FS="~"} {print NF}'
5
I can determine the number of fields.
How to determine the number of fields with a value ?
In this case 2.
Thanks in advance,
ejdv (6 Replies)
Discussion started by: ejdv
6 Replies
7. Shell Programming and Scripting
Hy!
I need to post-process some data files which have variable (and periodic) number of fields. For example, I need to square (data -> data*data) the folowing data file: -5.34281E-28 -3.69822E-29 8.19128E-29 9.55444E-29 8.16494E-29 6.23125E-29
4.42106E-29 2.94592E-29 1.84841E-29 ... (5 Replies)
Discussion started by: radudownload
5 Replies
8. UNIX for Dummies Questions & Answers
Hi,
input:
AA|BB|CC
DD|EE
FF
what I am trying to get:
AA|BB|CC
DD|EE|
FF||
I tried to create first an UDF for printing repeats, but I think I have an issue with my END section or my array:
function repeat(str, n, rep, i)
{
for(i=1 ;i<n;i++)
rep=rep str
return rep
}
... (6 Replies)
Discussion started by: beca123456
6 Replies
9. Shell Programming and Scripting
If a file has following kind of data, comma delimited
1,2,3,4
1
1
1,2,3,4
1,2
2
2,3,4
My required output must have only 4 columns with comma delimited
1,2,3,4
111,2,3,4
1,222,3,4
I have tried many awk command using ORS="" but couldnt progress (10 Replies)
Discussion started by: mdkm
10 Replies
10. UNIX for Beginners Questions & Answers
Hi,
Below are the sample files. x.txt is from an Excel file that is a list of users from Windows and y.txt is a list of database account.
$ head -500 x.txt y.txt
==> x.txt <==
TEST01 APP_USER_PROFILE
USER03 APP_USER_PROFILE
TEST02 APP_USER_EXP_PROFILE
TEST04 APP_USER_PROFILE
USER01 ... (3 Replies)
Discussion started by: newbie_01
3 Replies
LEARN ABOUT OSF1
dxmtools
dxmtools(1) General Commands Manual dxmtools(1)
NAME
dxmtools - DOS Tools Graphical User Interface for manipulating files on an MSDOS diskette
SYNOPSIS
/usr/bin/X11/dxmtools
OPTIONS
DESCRIPTION
The DOS Tools application, dxmtools, uses a graphical user interface to copy files to and from an MSDOS formatted diskette to manipulate
files on that diskette, in the same manner as the mtools(1) commands, which are accessed from the command line interface.
The DOS Tools application accepts the standard X11 resource options. For more information, see the X(1X) reference page
Use the DOS Tools application to: Copy a diskette file to Tru64 UNIX Copy Tru64 UNIX files to the diskette Create a directory on the
diskette Delete diskette files Format a diskette Change the diskette volume label Change the archive, read-only, hidden, and system
attribute bits on a diskette file Display the contents of a diskette file Find a diskette file by its name, size, or attribute settings
Rename a diskette file.
MSDOS filenames are optionally composed of a drive letter followed by a colon, optional subdirectories, and a filename. Subdirectory names
can use either the '/' or '' separator. The current working directory relative to the diskette is A:/.
The regular expression pattern matching routines follow the UNIX-style rules. For example, an asterisk (*), in place of asterisks separated
by a dot (.) that is *.*, matches all MSDOS files. The archive, hidden, read-only, and system attribute bits are ignored during pattern
matching.
The DOS Tools application requires a diskette properly installed on the system.
The DOS Tools application addresses a device named /dev/disk/floppy; a symbolic link between the diskette device and /dev/disk/floppy is
required.
Online help is available for the dxmtools application. To get help, click on any Help button or use the Help pull-down menu.
The DOS Tools application can be invoked from:
The CDE Application Manager.
Application Group: Desktop_Apps
Desktop_Apps Subgroup: dxmtools
EXAMPLES
Invoke the DOS Tools application from the command line. /usr/bin/X11/dxmtools Open the DOS Tools help volume from the command line without
running the application. /usr/dt/bin/dthelpview -h /usr/dt/appconfig/help/C/dxmtools.sdl
FILES
DOS Tools executable DOS Tools Help Volume Symbolic link for diskette drive.
SEE ALSO
Commands: ln(1), mattrib(1), mcd(1), mcopy(1), mdel(1), mdir(1), mlabel(1), mmd(1), mrd(1), mread(1), mren(1), mtools(1), mtype(1),
mwrite(1), X(1X)
Diskette interface: fd(7)
Utilities: MAKEDEV(8), mknod(8)
dxmtools(1)