Sponsored Content
Top Forums UNIX for Dummies Questions & Answers LINUX SORT command chops results Post 302618233 by Corona688 on Tuesday 3rd of April 2012 06:09:26 PM
Old 04-03-2012
Is this a Windows text file? It will be full of pointless carriage returns which will look odd when displayed in a terminal.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to sort find results

Hi-- Ok. I have now found that: find -x -ls will do what I need as far as finding all files on a particular volume. Now I need to sort the results by the file's modification date/time. Is there a way to do that? Also, I notice that for many files, whereas the man for find says ls is... (8 Replies)
Discussion started by: groundlevel
8 Replies

2. UNIX for Dummies Questions & Answers

Linux Sort command

Hello! Can anybody explain in laymen terms what the (+) option in the sort command for Linux does? Please. Thanks in advance!!:D (1 Reply)
Discussion started by: itisijayare
1 Replies

3. Shell Programming and Scripting

Help with sort folder results

Here is the code, but the list is not sorted properly (alphabetically)? <?php function folderlist(){ $startdir = './'; $ignoredDirectory = '.'; $ignoredDirectory = '..'; if (is_dir($startdir)){ if ($dh = opendir($startdir)){ while (($folder = readdir($dh)) !== false){ if... (0 Replies)
Discussion started by: mrlayance
0 Replies

4. UNIX for Dummies Questions & Answers

linux sort command produces strange output

cat a .a ba .b bb .c bc sort a .a .b ba bb bc .c NOTE: .a and .b appears before ba and bb, where as .c appears after bc. In general (3 Replies)
Discussion started by: ajb
3 Replies

5. UNIX for Dummies Questions & Answers

sort find results

Hi, I have a problem with a shell script. The script should find all .cpp and .h files and list them. With: for file in `find $src -name '*.h' -o -name '*.cpp' it gives out this: H:\FileList\A\E\F\G\newCppFile.cpp H:\FileList\header01.h H:\FileList\B\nextCppFile.cpp ... (4 Replies)
Discussion started by: shellBeginner75
4 Replies

6. Linux

sort command in centos linux os

Iam working on centos os. Iam not able to sort records without option Please help me out Jayaprakash B. (1 Reply)
Discussion started by: jpachar
1 Replies

7. Homework & Coursework Questions

linux sort command

This is the question being asked: (Sort your data file by last name first, then by the first name second - save as first_last.) I am not quite sure of the type of sort I am being asked to perform. I have read the man pages of the sort command a few times, as well as searching online for possible... (10 Replies)
Discussion started by: demet8
10 Replies

8. UNIX for Advanced & Expert Users

Sort command results are different in Redhat 4 vs Redhat 5

Hi, I am having a text file with the following contents ########### File1 ########### some page1.txt text page.txt When I sort this file on Red Hat 5, then I get the following output ########### File1 ########### page1.txt page.txt some (3 Replies)
Discussion started by: sarbjit
3 Replies

9. UNIX for Beginners Questions & Answers

Strange sort -r results

Hi Folks - I have this file that looks like this: outbox/logs/Client_1042.log outbox/logs/Client_941.log outbox/logs/Client_942.log outbox/logs/Client_943.log outbox/logs/Client_944.log And this is my code: #!/bin/bash _OUTBOX_BIN="outbox/logs/" _NAME="Client" _TEMP="temp.txt"... (9 Replies)
Discussion started by: SIMMS7400
9 Replies

10. UNIX for Beginners Questions & Answers

Inconsistent results using sort function

Could you please advise on the following: I have two space-delimited files with 9 and 10 columns, respectively, with exactly the same values in column 1. However, the order of column 1 differs between the two files, so I want to sort both files by column 1, so that I can align them and... (6 Replies)
Discussion started by: aberg
6 Replies
uugetty(8)						      System Manager's Manual							uugetty(8)

NAME
uugetty - Sets the terminal type, modes, speed, and line. SYNOPSIS
/usr/lib/uucp/uugetty [-h] [-t time] [-r] [-c file] line [speed_label [terminal [line_discipline] ] ] The uugetty utility sets the terminal type, modes, speed, and line discipline. FLAGS
Hold the carrier during the initialization phase; do not hang up. Timeout after time seconds and drop the line if nothing is typed while trying to login. Specifies that uugetty should wait for a character before it displays a login message, thus preventing two uugetty com- mands from looping and allowing the line to be shared by uucico, cu, and tip. Specifies that file should be checked instead of /etc/uuget- tydefs. DESCRIPTION
The uugetty command sets and manages terminals by setting up speed, terminal flags, and the line discipline. If command flags are pro- vided, uugetty adapts the system to those specifications; uugetty prints the login prompt, waits for the user to enter a username, and invokes the login command. The uugetty command provides all the features of the getty command, but also provides support through the -r flag for using the line with the uucico, cu, ct, and tip commands. The line can thereby be used in both directions. The uugetty command enables users to log in, but if the line is free, the uucico, cu, ct, and tip commands can be used for dialing out. The implementation depends on the fact that the uucico, cu, ct, and tip commands create lock files when devices are used. When uugetty first reads characters, the status of the lock file indicates whether the line is being used by uucico, cu, ct, or tip, or by someone trying to log in. The line argument specifies the /dev/entry for the terminal line. It can be entered as a relative pathname or an absolute pathname. The speed_label argument is a pointer into the /etc/uugettydefs file where the definitions for speed and other associated flags are located. If this argument is not specified, uugetty uses the first entry in the file. The terminal argument specifies the name of the terminal type. This argument is used to set the TERM environment variable for the user who logs in from this terminal. The line_discipline argu- ment specifies the name of the line discipline. When the -r flag is used, the user may have to key several carriage returns before the login message is displayed. When uucico attempts to log in, the following login script informs it that several carriage returns may be necessary before the login message is displayed, "" d d d in:--in:login sequence where login sequence is whatever is normally used for the login sequence: An entry for an intelligent modem or direct line that has a uugetty on each end must use the -r flag. The following is an /etc/inittab entry using uugetty on an intelligent modem or direct line: 30:2:respawn:/usr/lib/uucp/uugetty -r -t 60 tty12 1200 FILES
Specifies the command path The terminal line database file. This uses the same format as /etc/gettydefs. File which specifies the ini- tialization processes. Lock files used by uugetty, uucico, cu, ct, and tip to keep other commands from using the same terminal line. RELATED INFORMATION
Commands: uucico(8), getty(8), init(8), ct(1) cu(1), tip(1), login(1), stty(1) Files: gettydefs(4), inittab(4), tty(7) delim off uugetty(8)
All times are GMT -4. The time now is 04:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy