Sponsored Content
Full Discussion: change 43% to 43.5
Top Forums Shell Programming and Scripting change 43% to 43.5 Post 302085798 by nortypig on Sunday 20th of August 2006 02:48:57 AM
Old 08-20-2006
Tools change 43.5% to 43.5

I have a column in % and I want to display it as a one decimal place number for sorting - what function would I be looking at for dropping the % sign?

Last edited by nortypig; 08-20-2006 at 04:15 AM..
 

8 More Discussions You Might Find Interesting

1. Cybersecurity

How to change ip ?

hi , Is there anyway to change ip on sco5.04 i tried using netconfig on the prompt but gives me error . how do u manually change ip cant use acoadmin and netconfig .... thx art (2 Replies)
Discussion started by: art_malabanan
2 Replies

2. Post Here to Contact Site Administrators and Moderators

Want to change my Name

Hello, Pls change my login name to Awadhesh instead of awadhesh if possible. it will be more better if it become Awadhesh Pandey. Thanks a lot. Awadhesh (2 Replies)
Discussion started by: Awadhesh
2 Replies

3. Shell Programming and Scripting

change wc -l

Hi, I would like realize a script that it can change " wc -l" with "wc -l | sed 's/ //g'", but my problem is that i can have a pipe ,a variable ( many variable different) or a file after wc -l ?how i could test this several case ? wc -l | cut -d' ' -f1` if wc -l ${F} | awk... (1 Reply)
Discussion started by: francis_tom
1 Replies

4. Homework & Coursework Questions

change

bh,lg.yu.,fgh,ry,.tyl,tyk,ty,ty,ty,. (7 Replies)
Discussion started by: frankycool
7 Replies

5. Shell Programming and Scripting

ksh; Change file permissions, update file, change permissions back?

Hi, I am creating a ksh script to search for a string of text inside files within a directory tree. Some of these file are going to be read/execute only. I know to use chmod to change the permissions of the file, but I want to preserve the original permissions after writing to the file. How can I... (3 Replies)
Discussion started by: right_coaster
3 Replies

6. Shell Programming and Scripting

Change the content of files but not change the date

I have 100 files in a directory , all the files have a word "error" and they are created in different date . Now I would like to change the word from "error" to "warning" , and keep the date of the files ( that means do not change the file creation date after change the word ) , can advise what can... (0 Replies)
Discussion started by: ust3
0 Replies

7. Shell Programming and Scripting

Change the content of files but not change the date

I have 100 files in a directory , all the files have a word "error" and they are created in different date . Now I would like to change the word from "error" to "warning" , and keep the date of the files ( that means do not change the file creation date after change the word ) , can advise what can... (7 Replies)
Discussion started by: ust3
7 Replies

8. SCO

How to change raid controller driver ? (hardware change)

Hello I'm trying to virtualize an instance of Sco Unix 5.0.5 in VirtualBox (called VM-A) , but sco I have problems set to launch with the new raid controller . The physical machine has a raid controller adaptec (alad driver) but VirtualBox uses buslogic (blc driver) What ... (3 Replies)
Discussion started by: flako
3 Replies
ls(1)							      General Commands Manual							     ls(1)

Name
       ls - list and generate statistics for files

Syntax
       ls [ options ] name ...

Description
       For each directory argument, lists the contents of the directory.  For each file argument, repeats the file name and gives any other infor-
       mation you request with the options available.  By default, the list is sorted alphabetically.  When no	argument  is  given,  the  current
       directory  is  listed.	When several arguments are given, files are listed first, followed by directories and the files within each direc-
       tory.  Options are listed below.

Options
       -1   Displays one entry per line.  This is the default when output is not to a terminal.

       -a   Displays all entries including those beginning with a period (.).

       -C   Forces multicolumn output for pipe or filter.  This is the default when the output is to a terminal.

       -c   Uses time of last file status change (ctime), reflecting file creation, mode, etc., for sorting (with the -t option) or printing (with
	    the -l option) rather than the time of file modification or access. See also the -t and -u options.

       -d   Displays names of directories only, not contents.  Use this option with -l to get the status of a directory.

       -F   Marks  directories	with  trailing	slash (/), sockets with a trailing equal sign (=), symbolic links with a trailing at sign (@), and
	    executable files with a trailing asterisk (*).

       -f   Displays names in the order they exist in directory.  For further information, see Entries	beginning  with  a  period  (.)  are  also
	    listed.  This option overrides the -l, -t, -s, and -r options.

       -g   Displays assigned group ID (used with -l only).  Default is assigned owner ID.

       -i   Displays the i-number for each file in the first column of the report.

       -L   Lists  the	information,  if  the file is a symbolic link, for the file or directory the link references rather than that for the link
	    itself.

       -l   Lists the mode, number of links, owner, size in bytes, and time of last modification (mtime) for each file.  If the file is a  special
	    file, the size field contains the major and minor device numbers instead of the size.  If the file is a symbolic link, the pathname of
	    the linked-to file is printed, preceded by ``->''.

	    The mode field consists of 11 characters.  The first character indicates the type of entry:

	    d if the entry is a directory
	    b if the entry is a block-type special file
	    c if the entry is a character-type special file
	    l if the entry is a symbolic link
	    s if the entry is a socket
	    - if the entry is a plain file

	    The next 9 characters are interpreted as three sets of three characters each.  The first set of three characters refers to file-access
	    permissions  for  the user; the next set, for the user-group; and the last set, for all others.  The permissions are indicated as fol-
	    lows:

	    r if the file is readable
	    w if the file is writable
	    x if the file is executable
	    - if the indicated permission is not granted.

	    The group-execute permission character is given as s if the file has the set-group-id bit set; likewise, the  user-execute	permission
	    character is given as s if the file has the set-user-id bit set.

	    The last character of the mode (normally `x' or `-') is t if the 1000 bit of the mode is on.  See for the meaning of this mode.

       -q   Forces  the printing of nongraphic characters in file names as the question mark character (?).  This is the default when output is to
	    a terminal.

       -R   Recursively lists all subdirectories.

       -r   Sorts entries in reverse alphabetic or time order.

       -s   Displays the size in kilobytes of each file.  This is the first item listed in each entry.

       -t   Sorts by time modified (most recently modified first) instead of by name. See also the -c and -u options.

       -u   Uses the time of last access (atime) instead of last modification for sorting (with the -t option) or printing (with the -l option).

Restrictions
       The output device is assumed to be 80 columns wide.

       New line and tab are considered printing characters in file names.

       The option setting based on whether the output is a teletype is undesirable as "ls -s" is much different than "ls -s |lpr".  On	the  other
       hand, not doing this setting would make old shell scripts which used ls almost certain to fail.

Files
       Used to obtain user id's for ls -l

       Used to obtain group id's for ls -g

See Also
       stat(2)

																	     ls(1)
All times are GMT -4. The time now is 04:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy