Sponsored Content
Operating Systems Linux Red Hat files having Script which works behind "who" & "w" commands Post 302586137 by bitlord on Friday 30th of December 2011 08:38:33 AM
Old 12-30-2011
That's a nice one line but it would be easier to just do this.

Code:
me@RHEL5-5:~$ which w;which who
/usr/bin/w
/usr/bin/who

 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

"nohup" and "&" commands

Why would anyone ever type in a command like this: nohup command & nohup lets you logout of your telnet session so why add "&" to run it in the background? (1 Reply)
Discussion started by: xadamz23
1 Replies

2. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

3. Shell Programming and Scripting

Unix commands delete all files starting with "X" except "X" itself. HELP!!!!?

im a new student in programming and im stuck on this question so please please HELP ME. thanks. the question is this: enter a command to delete all files that have filenames starting with labtest, except labtest itself (delete all files startign with 'labtest' followed by one or more... (2 Replies)
Discussion started by: soccerball
2 Replies

4. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

5. Shell Programming and Scripting

finding the strings beween 2 characters "/" & "/" in .txt file

Hi all. I have a .txt file that I need to sort it My file is like: 1- 88 chain0 MASTER (FF-TE) FFFF 1962510 /TCK T FD2TQHVTT1 /jtagc/jtag_instreg/updateinstr_reg_1 dff1 (TI,SO) 2- ... (10 Replies)
Discussion started by: Behrouzx77
10 Replies

6. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

7. UNIX for Beginners Questions & Answers

Extract delta records using with "comm" and "sort" commands combination

Hi All, I have 2 pipe delimited files viz., file_old and file_new. I'm trying to compare these 2 files, and extract all the different rows between them into a new_file. comm -3 < sort file_old < sort file_new > new_file I am getting the below error: -ksh: sort: cannot open But if I do... (7 Replies)
Discussion started by: njny
7 Replies

8. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

9. Shell Programming and Scripting

find files in sub dir with tag & add "." at the beginning [tag -f "Note" . | xargs -0 {} mv {} .{}]

I am trying find files in sub dir with certain tags using tag command, and add the period to the beginning. I can't use chflags hidden {} cause it doesn't add period to the beginning of the string for web purpose. So far with my knowledge, I only know mdfind or tag can be used to search files with... (6 Replies)
Discussion started by: Nexeu
6 Replies
SCITOOLS(1)						      General Commands Manual						       SCITOOLS(1)

NAME
scitools - run a SciTools command SYNOPSIS
scitools command [OPTIONS] DESCRIPTION
The scitools script takes a command and runs a corresponding utility. The available commands are listed below. file2interactive Utility for taking a set of Python statements in a file and creating the corresponding interactive Python shell session. floatdiff Script for examining differences in regression tests involving floating-point numbers. Used in [1]. regression Simple front-end script to SciTools' Regression module. Used in [1]. ps2mpeg Utility for turning a set of PostScript files into an MPEG movie, using mpeg_encode or ppmtompeg. profiler Script for simplifying the execution of Python's profiling tools. Used in [1]. rename Script for renaming a set of files by substituting one string or regular expression with another. subst Script for subsituting a phrase by another in a set of files. Accepts regular expressions. Treated in [1]. replace Script for subsituting a phrase by another in a set of files. Does not use regular expressions, just plain text (well suited for substituting text with much use of backslashes, curly braces, and other special characters in regular expressions (e.g., LaTeX text). movie Script for creating a movie file from a sequence of image files (frames). By default an HTML file for displaying the image (PNG) files are made. pyreport Processes a Python script and pretty prints the results using LateX. If the script uses show() commands (from scitools.easyviz) they are caught by pyreport and the resulting graphs are inserted in the output pdf. Comments lines starting with "#!" are interpreted as rst lines and pretty printed accordingly in the pdf. [1] H. P. Langtangen: Python Scripting for Computational Science. Third edition, second printing. Springer, 2009. OPTIONS
-h, --help Show usage for all commands and exit. BUGS
Send comments, questions, bug reports etc. to scitools@googlegroups.com. LICENSE
SciTools is licensed under the new BSD license. AUTHOR
SciTools is written by Hans Petter Langtangen <hpl@simula.no>, Johannes Ring <johannr@simula.no>, Ilmar Wilbers <ilmarw@simula.no>, and Rolv E. Bredesen <rolv@simula.no>. This manual page is written by Johannes Ring <johannr@simula.no>. SCITOOLS(1)
All times are GMT -4. The time now is 11:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy