11-25-2016
@rbatte1: I guess the OP poster wants a new console window opened, which is logged into a different host AND placed in a certain directory - at least this would make sense, but we don't know for sure.
Of course there are several ways to achieve this, but unless we don't know the exact requirements, there is no point in making suggestions.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How i can combine output of two commands in one file.......i tried this but it is not working although each command is working good seperately.....
head -1 filename | tail -1 filename
i think there is problem with command concatenator? (16 Replies)
Discussion started by: 33junaid
16 Replies
2. UNIX for Dummies Questions & Answers
Hi,
i tried to combine grep with find and it didnt work
grep 'find dirname filename"
i also would like that the file will be sorted in the way.
thanks a lot. (2 Replies)
Discussion started by: Spoiler
2 Replies
3. Shell Programming and Scripting
How would I combine two nawk commands together without calling up nawk twice. Just like the sed -e command
nawk '$3>=from&&$3<=to' from="$STIME" to="$ETIME" | nawk '{$5="";$6=""}1' (2 Replies)
Discussion started by: numele
2 Replies
4. Shell Programming and Scripting
I'm working with a file with an xml structure. I'd like to parse it down to just the bits i want. Here is and example of the file
<message id="96352877" method="status">
<date rfc="Sat, 12 Mar 2011 16:13:15 -0600" unix="1299967995" />
<services>
<service id="facebook"... (4 Replies)
Discussion started by: Erulisseuiin
4 Replies
5. Shell Programming and Scripting
sed -e :a -e 's/<*>//g;/</N;//ba' a2.html -removes html tags
and
sed -i 's/YOURS TRULY/Joe Bob/' a2.html
Replaces a string with another string
can i make it into one string? (2 Replies)
Discussion started by: boyboy1212
2 Replies
6. Shell Programming and Scripting
Hi Team,
I am getting input like below
$ ps -ef | grep pmon | grep -v asm | grep -v grep
oracle 3246 1 0 00:03 ? 00:00:01 ora_pmon_racora1
oracle 4367 1 0 00:03 ? 00:00:01 ora_pmon_test1
oracle 6893 1 0 00:03 ? 00:00:01 ora_pmon_gipora1... (6 Replies)
Discussion started by: kamauv234
6 Replies
7. Shell Programming and Scripting
Hey everyone,
I am working in an environment where the different users can use ksh or csh. My situation is that I need the same result with one single command line.
I am searching for the real path the file is in.
My ksh input and output
ts2:ts2adm> cd $(dirname $(which sapcontrol)); pwd -P... (2 Replies)
Discussion started by: h1kelds
2 Replies
8. Shell Programming and Scripting
my code:
gawk 'NR>'"${LASTLINENUM}"' && NR<='"${LINEENDNUM}"'' ${LOGFILE} | gawk '{l=$0;} /'"${STRING1}"'/ && /'"${STRING2}"'/ {for (i=NR-'"${BEFOREGLAF}"'; i<=NR+'"${AFTERGLAF}"'; i++) o=i; t++;} END { for(i=1; i<=NR; i++) if (o) print l; print t+=0;}'
i would like to combine this into one... (5 Replies)
Discussion started by: SkySmart
5 Replies
9. Shell Programming and Scripting
Hi,
Can someone please guide me how to combine the following two awk calls in one?
I noticed that it is very often situation for me, and I think that it can be replaced with one awk call.
The question is more general, not the exact one.
echo "A B C/D" | awk '{print $3}' | awk -F/ '{print... (4 Replies)
Discussion started by: mirusnet
4 Replies
10. Shell Programming and Scripting
Hello,
I have the following code. I wonder if it can be combined into 1 command.
y=`ls -1| tail -n 1`
m=${y%.abc}
Thank you. (3 Replies)
Discussion started by: april
3 Replies
LEARN ABOUT DEBIAN
news::scan::poster
News::Scan::Poster(3pm) User Contributed Perl Documentation News::Scan::Poster(3pm)
NAME
News::Scan::Poster - keep track of posters to a newsgroup
SYNOPSIS
use News::Scan::Poster;
my $poster = News::Scan::Poster->new($news_scan_article_obj);
DESCRIPTION
This module provides a class whose objects can be used to keep track of cumulative statistics for posters to a Usenet newsgroup such as
header volume or signature lines.
CONSTRUCTOR
new ( ARTICLE )
"ARTICLE" should be a "News::Scan::Article" object or inherit from the "News::Scan::Article" class.
"new" performs some initialization and returns a "News::Scan::Poster" object.
METHODS
address ( [ ADDRESS ] )
Returns the address of this poster represented as a "Mail::Internet" object.
If present, "ADDRESS" tells the object that the "Mail::Internet" object in "ADDRESS" is its address. idea.
attrib ( [ ATTRIBUTION ] )
Returns some nice attribution for this poster.
If present, "ATTRIBUTION" tells the object how it shall identify itself when asked.
message_ids ( [ MESSAGE-ID ] )
Returns a list of Message-IDs attributed to this poster.
If present, "MESSAGE-ID" is added to this list of this poster's articles.
volume
Returns the volume in bytes of the traffic generated by this poster.
articles
Returns the number of articles attributed to this poster.
posted_to
Returns a hash whose keys are newsgroup names and whose values are the number of times this poster has crossposted to the group of
interest and the corresponding newsgroup.
crossposts
Returns the total number of crossposts this poster has sent through the group of interest.
header_volume
Returns the volume in bytes generated by this poster's headers.
header_lines
Returns the number of header lines generated by this poster.
body_volume
Returns the volume in bytes generated by this poster's message bodies.
body_lines
Returns the number of body lines generated by this poster.
orig_volume
Returns the volume in bytes of original content generated by this poster.
orig_lines
Returns the number of original lines generated by this poster.
sig_volume
Returns the volume in bytes generated by this poster's signatures.
sig_lines
Returns the number of signature lines generated by this poster.
SEE ALSO
News::Scan, Mail::Address, News::Scan::Article
AUTHOR
Greg Bacon <gbacon@cs.uah.edu>
COPYRIGHT
Copyright (c) 1997 Greg Bacon. All Rights Reserved. This library is free software. You may distribute and/or modify it under the same
terms as Perl itself.
perl v5.10.1 2000-04-13 News::Scan::Poster(3pm)