10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file comp.pkglist which mention package version and release . In 'version change' and 'release change' line there are two versions 'old' and 'new' Version Change: --> Release Change: -->
cat comp.pkglist
Package list: nss-util-devel-3.28.4-1.el6_9.x86_64
Version Change: 3.28.4 -->... (1 Reply)
Discussion started by: Paras Pandey
1 Replies
2. Shell Programming and Scripting
Shell : bash
OS : Oracle Linux 6.4
I want to save the ouput of a nohup command to file other than nohup.out . Below are my 3 attempts.
For both Attempt1 and Attempt2 , the redirection logs the output correctly to the output file. But I get the error "ignoring input and redirecting stderr to... (7 Replies)
Discussion started by: kraljic
7 Replies
3. Shell Programming and Scripting
Hi,
I have a list of zipped files. I want to grep for a string in all files and get a list of file names that contain the string. But without unzipping them before that, more like using something like gzcat.
My OS is:
SunOS test 5.10 Generic_142900-13 sun4u sparc SUNW,SPARC-Enterprise (8 Replies)
Discussion started by: apenkov
8 Replies
4. Shell Programming and Scripting
I am attempting to grep an exact string from a series of files within a directory and append that output to the filename when it is present in the file. I've been after this all day with no luck. Thanks for your help in advance :wall:. (4 Replies)
Discussion started by: JC_1
4 Replies
5. Shell Programming and Scripting
Hi ,
i'm trying to create a code for the belwo scenario.
i have a data in a file file.txt like below.
ram
dept
comp
shyam
field
comp
Now i need write a code to find the string which is always 2 lines before the string "comp"
Can you please help me in this.
Thanks in advance (15 Replies)
Discussion started by: p.bhaskar
15 Replies
6. Shell Programming and Scripting
Hi,
1_strings file contains
$ cat 1_strings
/home/$USER/Src
/home/Valid
/home/Review$ cat myxml
<projected value="some string" path="/home/$USER/Src">
<input 1/>
<estimate value/>
<somestring/>
</projected>
<few more lines >
<projected value="some string" path="/home/$USER/check">... (4 Replies)
Discussion started by: greet_sed
4 Replies
7. Shell Programming and Scripting
Hi,
I have one shell script, which run another one script inside in nohup mode. I want to search one string from the nohup.out file in the same shell script itself .Can anyone help me??
Please find the code below:
total_ear=`cd ear ; ls *.ear | wc -l | tr -d ' '`
for ear in `cd ear ; ls... (1 Reply)
Discussion started by: ckchelladurai
1 Replies
8. Shell Programming and Scripting
hi everyone,
1.txt
12
34
56
2.txt
456----aa
abc;b;b;b
34;a;a;a;a
output is
456----aa
34;a;a;a;a (11 Replies)
Discussion started by: jimmy_y
11 Replies
9. Shell Programming and Scripting
Hi all,
I would want to recieve notification only if there are sessions block in our databases.
This is my script, but it's not working. No matter what is the contents in the $OUTFILE, I get emails.
/usr/bin/cat $OUTFILE | read selected
if
then
echo "No session is blocked"
else
... (7 Replies)
Discussion started by: *Jess*
7 Replies
10. Shell Programming and Scripting
Hello guys - I am new to Unix.
I am trying to understand how to grep a perticular string in todays file?
I am trying this syntax but not getting what I am looking for:
% grep `date '+%d/%b/%Y'`
For instance there are 2 files generated today with same data. I am trying to find them and... (21 Replies)
Discussion started by: DallasT
21 Replies
NOHUP(1) User Commands NOHUP(1)
NAME
nohup - run a command immune to hangups, with output to a non-tty
SYNOPSIS
nohup COMMAND [ARG]...
nohup OPTION
DESCRIPTION
Run COMMAND, ignoring hangup signals.
--help display this help and exit
--version
output version information and exit
If standard input is a terminal, redirect it from /dev/null. If standard output is a terminal, append output to 'nohup.out' if possible,
'$HOME/nohup.out' otherwise. If standard error is a terminal, redirect it to standard output. To save output to FILE, use 'nohup COMMAND
> FILE'.
NOTE: your shell may have its own version of nohup, which usually supersedes the version described here. Please refer to your shell's doc-
umentation for details about the options it supports.
GNU coreutils online help: <http://www.gnu.org/software/coreutils/> Report nohup translation bugs to <http://translationproject.org/team/>
AUTHOR
Written by Jim Meyering.
COPYRIGHT
Copyright (C) 2013 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
The full documentation for nohup is maintained as a Texinfo manual. If the info and nohup programs are properly installed at your site,
the command
info coreutils 'nohup invocation'
should give you access to the complete manual.
GNU coreutils 8.22 June 2014 NOHUP(1)