10-12-2010
@DGPickett
The line terminator for text files in unix is one character: linefeed.
The line terminator for text files in MSDOS is two characters: carriage-return, linefeed.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a requirement where i need to write a script to create the new file from the given input file with the data in reverse order (bottom to top)
Sample data:
Input File--------------
Java
VB
Oracle
Teradata
Informatica
Output file:-----------------
Informatica
Teradata
Oracle... (3 Replies)
Discussion started by: srilaxmi
3 Replies
2. Shell Programming and Scripting
Im trying to develop a shell script that will change the content order of the file.
For example I have a file that says
a
b
c
d
I want to change this to be
d
c
b
a
Im trying to use sed to this by reading the file and then inserting each line at the top
#!/usr/bin/ksh
... (3 Replies)
Discussion started by: MBGPS
3 Replies
3. Shell Programming and Scripting
Hi -
I have a file with lots of lines in that I need to order based on the number of commas!
e.g the file looks something like :-
cn=john,cn=users,cn=uk,dc=dot,dc=com
cn=john,cn=users,dc=com
cn=users,cn=groups,dc=com
cn=john,cn=admins,cn=users,cn=uk,dc=dot,dc=com... (4 Replies)
Discussion started by: sniper57
4 Replies
4. Shell Programming and Scripting
My script(3 arguments $1 = folder,$2 extension,$3 string) should do the following things:
-Enter in the folder of $1(if exists).
-Put ls *.$2 > temp.txt ( I use a temp file to store the result of ls command and if $2 = txt in this file I'll have all the .txt files of the folder)
-Now I want to... (2 Replies)
Discussion started by: Max89
2 Replies
5. IP Networking
Hi,
We have smb client running on two of the linux boxes and smb server on another linux system. During a backup operation which uses smb, read of a file was allowed while write to the same file was going on.Also simultaneous writes to the same file were allowed.Following are the settings in the... (1 Reply)
Discussion started by: swatidas11
1 Replies
6. Solaris
Does anyone know if it's possible to specify the mount order of local and remote file systems? I'd like to mount a local ZFS file system on top of an NFS mount automatically and have that repeated on every reboot.
I've checked man pages and Google, but can't find anything that addresses,... (6 Replies)
Discussion started by: Monty51
6 Replies
7. Shell Programming and Scripting
I have a multiple file with the following name
like.
file_0.csv
file_1.csv
file_2.csv
file_3.csv
file_4.csv
file_5.csv
file_6.csv
file_7.csv
file_7.csv
file_8.csv
file_9.csv
file_10.csv
file_11.csv
file_12.csv
file_13.csv
file_14.csv (2 Replies)
Discussion started by: rakesh_arxmind
2 Replies
8. Shell Programming and Scripting
Dear Friends,
I am looking for a shell script to merge input files into one file .. here is my idea:
1st paramter would be outfile file (all input files content)
read all input files and merge them to input param 1
ex: if I pass 6 file names to the script then 1st file name as output file... (4 Replies)
Discussion started by: hyd1234
4 Replies
9. Shell Programming and Scripting
Hello,
I have a shell script through which I am executing .sql file and spooling the result of Query from .sql . I want to spool the result in ascending order. Is there any parameter to be set to print result in ascending or descending order.
Thanks in advance. (4 Replies)
Discussion started by: Aparna.N
4 Replies
10. Shell Programming and Scripting
Hi ,
I'm facing a different behaviour with one of my shell script for last few days. It was working good before that.
here is my code for the script FileRemove.sh
#get the file name#
file1=$1
file2=$2
rm $file1 # delete the old file
mv $file2 <target path> #move the new file to the target... (5 Replies)
Discussion started by: poova
5 Replies
LEARN ABOUT REDHAT
xmtextfieldgetsubstring
XmTextFieldGetSubstring(library call) XmTextFieldGetSubstring(library call)
NAME
XmTextFieldGetSubstring -- A TextField function that retrieves a copy of a portion of the internal text buffer
SYNOPSIS
#include <Xm/TextF.h>
int XmTextFieldGetSubstring(
Widget widget,
XmTextPosition start,
int num_chars,
int buffer_size,
char *buffer);
DESCRIPTION
XmTextFieldGetSubstring retrieves a copy of a portion of the internal text buffer of a TextField widget. The function copies a specified
number of characters from a given start position in the internal text buffer into a buffer provided by the application. A NULL terminator
is placed at the end of the copied data.
The size of the required buffer depends on the maximum number of bytes per character (MB_CUR_MAX) for the current locale. MB_CUR_MAX is a
macro defined in stdlib.h. The buffer should be large enough to contain the substring to be copied and a NULL terminator. Use the following
equation to calculate the size of buffer the application should provide:
buffer_size = (num_chars* MB_CUR_MAX) + 1
(void)
widget Specifies the TextField widget ID.
start Specifies the beginning character position from which the data will be retrieved. This is an integer number of characters from
the beginning of the text buffer. The first character position is 0 (zero).
num_chars Specifies the number of characters to be copied into the provided buffer.
buffer_size
Specifies the size of the supplied buffer in bytes. This size should account for a NULL terminator.
buffer Specifies the character buffer into which the internal text buffer will be copied.
For a complete definition of TextField and its associated resources, see XmTextField(3).
RETURN
XmCOPY_SUCCEEDED
The function was successful.
XmCOPY_FAILED
The function failed because it was unable to copy the specified number of characters into the buffer provided. The buffer size
may be insufficient. The contents of buffer are undefined.
XmCOPY_TRUNCATED
The requested number of characters extended beyond the internal buffer. The function copied characters between start and the end
of the widget's buffer and terminated the string with a NULL terminator; fewer than num_chars characters were copied.
RELATED
XmTextField(3) and XmTextFieldGetSubstringWcs(3).
XmTextFieldGetSubstring(library call)