01-31-2011
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
I would like to a long list of files up to a given date. I've tried:
ls -al > filelist
but this command gives me all the files. I've also have tried the find command:
find . -mtime -10 -type f -print > filelist
This gives me information on active file within the past 10 days and... (2 Replies)
Discussion started by: rlh
2 Replies
2. Solaris
hi folks,
I've been googling for quite some time, but still can't find anything near it...my problem is the following:
for useradministration in our company we are using ssh/sudo, now whenever I try to add users (we have quite a number of users) with useradd -G groupname for secondary group I... (4 Replies)
Discussion started by: poli
4 Replies
3. UNIX for Advanced & Expert Users
hi,
which Unix/C function can i use to retrieve all group names with a particular group id?
The following C code prints out the group id number of a particular group name:
------------------------------------------------------------------------
#include <stdio.h>
#include <grp.h>
int... (3 Replies)
Discussion started by: Andrewkl
3 Replies
4. Shell Programming and Scripting
How do I get this to work?
cat somefile | grep "-rw-r--r-- 1 root wheel 287 Sep 10 15:12 shells~"
This is the the desired output
-rw-r--r-- 1 root wheel 287 Sep 10 15:12 shells~
I basically want an exact match of the line I am grepping for, the special characters and... (5 Replies)
Discussion started by: streetfighter2
5 Replies
5. Shell Programming and Scripting
I have a file in the following format. Groups of data merge together and the group number is indicated above each group.
1
adrf
dfgr
dfg
2
dfgr
dfgr
3
dfef
dfr
fd
4
fgrt
fgr
fgg
5
fgrt
fgr (3 Replies)
Discussion started by: Lucky Ali
3 Replies
6. Shell Programming and Scripting
Hi All
I do have a file like this with 6 columns. Groups of data merge together and the group number is indicated above each group.
1
1 12 26 289 3.2e-027 GCGTATGGCGGC
2 12 26 215 6.7e+006 TTCCACCTTTTG
3 9 26 175 ... (1 Reply)
Discussion started by: Lucky Ali
1 Replies
7. Solaris
Hello,
When listing the file systems (using ls -ltr) , if the group names are longer the group name is getting truncated.
Can someone help with the script which would display the truncated group name?
I appreciate if someone could help in this regard. (1 Reply)
Discussion started by: mike12
1 Replies
8. UNIX for Dummies Questions & Answers
Hello,
When listing the file systems (using ls -ltr) , if the group names are longer the group name is getting truncated.
Can someone help with the script which would display the truncated group name?
I appreciate if someone could help in this regard. (3 Replies)
Discussion started by: mike12
3 Replies
9. Shell Programming and Scripting
Hi,
I have a query regarding execution of a sql query having long listing of parameters ..I need to execute this query inside a shell script.
The scenario is like....
Suppose I have a file abc.txt that has the card numbers..it could be in thousands..
then I need to fire a query like
... (12 Replies)
Discussion started by: vsachan
12 Replies
10. SCO
I am downloading a zip file that contain files that are very long. I am trying to process them, but cannot. I can move the files from one directory to another at the shell prompt, but not within a shell script, I get a stat error.
The files look somewhat like this;
... (5 Replies)
Discussion started by: trolley
5 Replies
LEARN ABOUT HPUX
ug_display_width
ug_display_width(3C) ug_display_width(3C)
NAME
ug_display_width() - get current display width for user and group names
SYNOPSIS
DESCRIPTION
The function returns the current display width for user and group names. This value determines how many bytes of a user or group name that
system and conforming applications will display.
On a system with long user and group names enabled, the default display width for the system is set with the command (see lugadmin(1M)).
Users can override the default value by setting the environment variable to an integer value in the range to
Application Usage
System and conforming applications use the return value (current display width) for formatted output as follows:
Long user and group names are not configured on the system.
Display user and group names as per default settings.
Long user and group name are enabled but display user and group names
as per default settings. For user and group names longer (in bytes) than the default allowable length, truncate the
name to the maximum default length and replace the last printed character with a plus sign
If the name is longer (in bytes) than the current display width,
truncate the name to this length (in bytes) and replace the last printed character with a plus sign
EXTERNAL INFLUENCES
Environment Variables
If it is set and long user and group names are enabled,
it overrides the width that is specified by the command for all system and conforming applications that write formatted output.
RETURN VALUE
returns one of the following values:
Long user and group names are not enabled, or an internal error occurred.
Long user and group names are enabled but set to default value.
The current display width for long user and group names.
WARNINGS
It is recommended that you do not modify the file directly. Doing so could cause incorrect behavior.
FILES
If this file is present,
the system is enabled for long user and group names; otherwise, it is not. This file contains the default display width, as set
with the command.
SEE ALSO
lugadmin(1M).
ug_display_width(3C)