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
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
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
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
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
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
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
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
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
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
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
LEARN ABOUT XFREE86
displays
DISPLAYS(5) File Formats Manual DISPLAYS(5)
NAME
displays - Display Configuration File
DESCRIPTION
The interactive graphics programs Caesar, Magic, and Gremlin use two separate terminals: a text terminal from which commands are issued,
and a color graphics terminal on which graphical output is displayed. These programs use a displays file to associate their text terminal
with its corresponding display device.
The displays file is an ASCII text file with one line for each text terminal/graphics terminal pair. Each line contains 4 items separated
by spaces: the name of the port attached to a text terminal, the name of the port attached to the associated graphics terminal, the phos-
phor type of the graphics terminal's monitor, and the type of graphics terminal.
An applications program may use the phosphor type to select a color map tuned to the monitor's characteristics. Only the std phosphor type
is supported at UC Berkeley.
The graphics terminal type specifies the device driver a program should use when communicating with its graphics terminal. Magic supports
types UCB512, AED1024, and SUN120. Other programs may recognize different display types. See the manual entry for your specific applica-
tion for more information.
A sample displays file is:
/dev/ttyi1 /dev/ttyi0 std UCB512
/dev/ttyj0 /dev/ttyj1 std UCB512
/dev/ttyjf /dev/ttyhf std UCB512
/dev/ttyhb /dev/ttyhc std UCB512
/dev/ttyhc /dev/ttyhb std UCB512 (R)
In this example, /dev/ttyi1 connects to a text terminal. An associated UCB512 graphics terminal with standard phosphor is connected to
/dev/ttyi0.
FILES
Magic uses the displays file ~cad/lib/displays. Gremlin looks in /usr/local/displays.
SEE ALSO
magic(1)
3rd Berkeley Distribution 2/19/85 DISPLAYS(5)