Sponsored Content
Top Forums Shell Programming and Scripting UNIX-how to find out the numeric value Post 302950611 by RudiC on Monday 27th of July 2015 06:04:54 AM
Old 07-27-2015
Please use code tags as required by forum rules!

How or where are those strings stored? In a file? One or more shell variables?
What's your system (OS, shell)?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to find a file in UNIX without find command?

given a start directory,a filename,how to find it? (3 Replies)
Discussion started by: bluo
3 Replies

2. AIX

unix updates- Where can I find unix updates online for IBM servers?

I have a Unix based server running Sagitta and the server is giving me an error of 4b10004 and my research tells me this is an EPROM issue, which means the processor needs to be flashed or repaired. Once up and running where can I go to get updates for Unix? (1 Reply)
Discussion started by: crainer
1 Replies

3. Shell Programming and Scripting

Perl code to differentiate numeric and non-numeric input

Hi All, Is there any code in Perl which can differentiate between numeric and non-numeric input? (11 Replies)
Discussion started by: Raynon
11 Replies

4. Shell Programming and Scripting

Little bit weired : Find files in UNIX w/o using find or where command

Yes , I have to find a file in unix without using any find or where commands.Any pointers for the same would be very helpful as i am beginner in shell scritping and need a solution for the same. Thanks in advance. Regards Jatin Jain (10 Replies)
Discussion started by: jatin.jain
10 Replies

5. UNIX for Dummies Questions & Answers

UNIX to find the unix mail id

Hi all, Need you assistace. is there any command available in UNIX to find the unix mail id ? tried using 'mail' but no use kindly helpe me out. Thanks in advance. manas (2 Replies)
Discussion started by: manas6
2 Replies

6. UNIX for Dummies Questions & Answers

Find and Replace random numeric value with non-numeric value

Can someone tell me how to change the first column in a very large 17k line file from a random 10 digit numeric value to a non numeric value. The format of lines in the file is: 1702938475,SNU022,201004 the first 10 numbers always begin with 170 (6 Replies)
Discussion started by: Bahf1s
6 Replies

7. Shell Programming and Scripting

Find and delete files and folders which are n days older from one unix server to another unix server

Hi All, Let me know how can i find and delete files from one unix server to another unix server which are 'N' days older. Please note that I need to delete files on remote unix server.So, probably i will need to use sftp, but question is how can i identify files and folders which are 'N'... (2 Replies)
Discussion started by: sachinkl
2 Replies

8. Shell Programming and Scripting

find numeric duplicates from 300 million lines....

these are numeric ids.. 222932017099186177 222932014385467392 222932017371820032 222932017409556480 I have text file having 300 millions of line as shown above. I want to find duplicates from this file. Please suggest the quicker way.. sort | uniq -d will... (3 Replies)
Discussion started by: pamu
3 Replies

9. Shell Programming and Scripting

Find the numeric value in a string and then check the max. value

hi, i have a string " 00000069 ThreadMonitor W WSVR0606W: Thread "WebContainer : 43|null" (00000069) was previously rep orted to be hung but has completed. It was active for approximately 47533430 milliseconds. There is/are 43 thread(s) in tot al in the server that still may be hung." ... (4 Replies)
Discussion started by: lovelysethii
4 Replies

10. Shell Programming and Scripting

How to get a numeric value from Oracle to UNIX variable without spaces?

Hi, I am using the below code to get a numeric value from oracle to unix variable: BD_RC_CNT=`sqlplus -s ${WMD_DM_CONNECT} <<EOF set heading off set pagesize 0 Select count(*) from wmd_bad_data where proc_id = ${PROC_ID} and file_id = ${FILE_ID} and file_dt =... (7 Replies)
Discussion started by: Arun Mishra
7 Replies
newgrp(1)						      General Commands Manual							 newgrp(1)

NAME
newgrp - Changes primary group identification of a shell process SYNOPSIS
newgrp [-l] [group] Obsolete Synopsis newgrp [-] [group] Note The C shell has a built-in version of the newgrp command. If you are using the C shell, and want to guarantee that you are using the com- mand described here, you must specify the full path /usr/bin/newgrp. See the csh(1) reference page for a description of the built-in com- mand. STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: newgrp: XCU5.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. OPTIONS
Changes the login environment to what would be expected if the user logged in again. Changes the login environment to what would be expected if the user logged in again. (Obsolescent) OPERANDS
A group name from the group database or a non-negative numeric group ID. Specifies the group ID to which the real and effective group IDs will be set. If group is a non-negative numeric string and exists in the group database as a group name, the numeric group ID associated with that group name will be used as the group ID. DESCRIPTION
The newgrp command changes the primary group identification of the current shell process to group. You remain logged in and the current directory is unchanged, but calculations of access permissions to files are performed with respect to the primary group ID. If you do not specify group, newgrp changes the group identification back to that specified for the current user in the /etc/passwd file. Only exported environment variables retain their values after you invoke newgrp. Otherwise, variables with a default value are reset to that default. If a password is required for the specified group, and you are not listed as a member of that group in the group database, you are prompted to enter the correct password for that group. If you are listed as a member of that group, no password is requested. If no password is required for the specified group, only users listed as members of that group can change to that group. [Tru64 UNIX] Only a user with superuser authority can change the primary group of the shell process to one to which that user does not belong. [Tru64 UNIX] When you invoke the newgrp command from a shell, the shell executes the command without forking a new process. Therefore, the shell you were using when you issued the newgrp command is unavailable after the newgrp command finishes. NOTES
[Tru64 UNIX] The newgrp command is also a built-in command for csh. There is no convenient way to enter a password into the group data- base. Use of group passwords is not encouraged because by their very nature they encourage poor security practices. EXIT STATUS
If newgrp succeeds in creating a new shell execution environment, whether or not the group identification was changed successfully, the exit status will be the exit status of the shell. Otherwise, a non-zero exit value is returned. The exit status of newgrp is generally inapplicable. ENVIRONMENT VARIABLES
The following environment variables affect the execution of newgrp: Provides a default value for the internationalization variables that are unset or null. If LANG is unset or null, the corresponding value from the default locale is used. If any of the internationalization variables contain an invalid setting, the utility behaves as if none of the variables had been defined. If set to a non-empty string value, overrides the values of all the other internationalization variables. Determines the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as opposed to multibyte characters in arguments). Determines the locale for the format and contents of diagnostic messages written to standard error. Determines the location of message catalogues for the processing of LC_MESSAGES. FILES
Group names declared on the system Password file SEE ALSO
Commands: csh(1), groups(1), id(1), login(1), Bourne shell sh(1b), POSIX shell sh(1p) Files: group(4), passwd(4) Standards: standards(5) newgrp(1)
All times are GMT -4. The time now is 11:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy