Just to clarify, the text file created on the sun computer was created by hand (ie typed out) simply to test some of the routines. The original full text files are station lists that are obtained by copying and pasting from a web browser into a text file. In the past, on the sun system, this had never been a problem. After I scp'd the files from the sun system to the linux system, the sort command no longer parsed them the same way.
I've scp'd the file from the sun computer (generated there) to the linux computer, and ran the sort, but it still produces the same incorrect output. As far as I know, there is no copy and paste going on now.
I can't imagine that this is caused by the difference between GNU 7.4 and 7.5.
Thanks!
---------- Post updated 08-19-10 at 11:36 AM ---------- Previous update was 08-18-10 at 11:10 PM ----------
My LC_COLLATE environment variable was set to "en_IE.utf8". I set that instead as "C", for POSIX ASCII sort as in Unix environments, and the sort command now works as I would expect on my input file.
Ok, I'm confused.
Can someone answer these (stupid) questions please for me?
1. What is the difference between unix and linux?
2. Is FreeBSD a unix distribution?
3. If not, then what is Unix? I actually gone to Unix.com because I thought this is it's official website where I could download... (1 Reply)
OK, I've used various versions of UNIX(Solaris, HPUX, etc..) over the years. Now the organization I work for is leaning towards more Linux based systems(Redhat, Suse, etc..)
I do see differences in in comands and how to accomplish basic adminstration, but nothing mind blowing.
So, what is it... (5 Replies)
:confused: Hi All
Can anyone help me in finding the answer of the question mentioned below.
What is the difference between Unix & linux ?
Thanks in Advance to all
CSaha (1 Reply)
Sir ,
Can any body explain the difference between linux , Unix and AIx on command Reference all the command on AIx and unix is same or not
please reply (2 Replies)
To make it easier, i gave following example. It is not homework or classwork. Instead, i have a huge csv file dump from tsql with 15 columns and around 300 rows. I was able to extract content that needs to be really converted. Here is the extract:
ES FP,B1ES FP,70000,I,SL22,SL22 (70000)
ES... (0 Replies)
To make it easier, i gave following example. It is not homework or classwork. Instead, i have a huge csv file dump from tsql with 15 columns and around 300 rows. I was able to extract content that needs to be really converted. Here is the extract:
ES FP,B1ES FP,70000,I,SL22,SL22 (70000)
ES... (8 Replies)
Discussion started by: nike27
8 Replies
LEARN ABOUT LINUX
basename
BASENAME(1) User Commands BASENAME(1)NAME
basename - strip directory and suffix from filenames
SYNOPSIS
basename NAME [SUFFIX]
basename OPTION
DESCRIPTION
Print NAME with any leading directory components removed. If specified, also remove a trailing SUFFIX.
--help display this help and exit
--version
output version information and exit
EXAMPLES
basename /usr/bin/sort
Output "sort".
basename include/stdio.h .h
Output "stdio".
AUTHOR
Written by David MacKenzie.
REPORTING BUGS
Report basename bugs to bug-coreutils@gnu.org
GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
General help using GNU software: <http://www.gnu.org/gethelp/>
Report basename translation bugs to <http://translationproject.org/team/>
COPYRIGHT
Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO dirname(1), readlink(1)
The full documentation for basename is maintained as a Texinfo manual. If the info and basename programs are properly installed at your
site, the command
info coreutils 'basename invocation'
should give you access to the complete manual.
GNU coreutils 8.5 February 2011 BASENAME(1)