Sponsored Content
Top Forums Shell Programming and Scripting [SOLVED] Want to remove output from a command Post 302857141 by Corona688 on Wednesday 25th of September 2013 12:54:40 PM
Old 09-25-2013
Redirecting tail's stderr won't redirect the undesirable lines, if it's not the thing printing them in the first place. Lines going to standard error don't go through your pipe chain, they go direct from traceroute to the terminal. Redirect traceroute's stderr and they should go away.

Code:
traceroute ... 2>/dev/null | command1 | command2 ...

This User Gave Thanks to Corona688 For This Post:
 

10 More Discussions You Might Find Interesting

1. HP-UX

[Solved] How to remove / kill defunct processess?

Hi, Is there a way or a command to remove defunct processes on my hp-ux server? Its shows a lot of them and i think its affecting the performance of the server. who -d |wc -l 580 who -d shows aktarafr pts/109 Oct 1 15:05 passji pts/119 Feb 25 14:20 forthm ... (6 Replies)
Discussion started by: jinslick25
6 Replies

2. Shell Programming and Scripting

[solved] remove pattern with sed

Hi, i want to remove a certain pattern when i type pwd. pwd will look like this: ..../....../....../Pat_logs/..../....../...../...... the dotted lines are just random directory names, i want it to remove the "Pat_logs/...../....../....../" part so for example: ... (8 Replies)
Discussion started by: a27wang
8 Replies

3. Shell Programming and Scripting

[Solved] Remove LaTex Tag with perl

Hi, i am trying to remove all LaTex tags (\index{text} from a big input file, using perl. My current approach which does not work is the following. perl -ne '$/=undef; s/\\index\{*?\}//g; print' < $CWD/$OUTPUT.txt > tmp.txt But the tags still remain in the text. Can somebody tell my what I... (2 Replies)
Discussion started by: mortl
2 Replies

4. UNIX for Dummies Questions & Answers

LINUX - How to remove the final delimiter from a command output

Hi All, I am trying to list the various dates for which the file is available in a directory using the command below, (& subsequently pass the command output to a loop) Command : ls dir|grep 'filename'|cut -d '_' -f1|cut -c1-8|tr '\n' ',' However, it is giving me an extra comma... (6 Replies)
Discussion started by: dsfreddie
6 Replies

5. UNIX for Dummies Questions & Answers

[Solved] remove all files of 2010

Hi, how to use "rm" to delete only files from year 2010 ? Thank you. (2 Replies)
Discussion started by: big123456
2 Replies

6. Programming

[solved] how to remove header and footer

it still display header and footer header SQL*Plus: Release 10.2.0.1.0 - Production on Mon Sep 24 13:41:51 2012 Copyright (c) 1982, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production With the Partitioning, Real... (0 Replies)
Discussion started by: ment0smintz
0 Replies

7. Shell Programming and Scripting

[Solved] remove file extension

Hi, I have some files with some extension e.g. abc.xml.REMOVE,xyz.xml,efg.xml.REMOVE . I have to remove the .REMOVE extension. I can display it using the below script but cannot rename it. ls -l|sed 's/\.REMOVE//' How can I rename this? Thanks in advance (7 Replies)
Discussion started by: babom
7 Replies

8. UNIX for Dummies Questions & Answers

[Solved] Help to remove a line from a file

Hi, I just upgraded one my server to latest version RHEL, I have many users who will do SSH from another server. I wanted to update all of the users home directory and remove the security key. For example. /home/XYZ/.ssh/known_hosts and remove this hostsname. Please see below and advise.... (2 Replies)
Discussion started by: samnyc
2 Replies

9. Shell Programming and Scripting

[Solved] awk to remove lines

Hi, I have a file with contents. file1: <2013 tttaaa abc123 <2013 gggdddd <2013 sssssss <2013 eeeee I need to remove the lines which do not have the word "tttaaa" can some one help ? (7 Replies)
Discussion started by: giri_luck
7 Replies

10. Shell Programming and Scripting

[Solved] How to remove multiple files?

Hi Gurus, I have below files in one directory. the file name has date and time portion which is exactly the file be created. I need keep only lasted created file which is abc_20140101_1550 and remove rest of the file. abc_20140101_1300 abc_20140101_1200 abc_20140101_1400 abc_20140101_1500... (2 Replies)
Discussion started by: ken6503
2 Replies
TRACEROUTE6(8)						 System Manager's Manual: iputils					    TRACEROUTE6(8)

NAME
traceroute6 - traces path to a network host SYNOPSIS
traceroute6 [-dnrvV] [-i interface] [-m max_ttl] [-p port] [-q max_probes] [-s source] [-w wait time] destination [size] DESCRIPTION
Description can be found in traceroute(8), all the references to IP replaced to IPv6. It is needless to copy the description from there. SEE ALSO
traceroute(8), tracepath(8), ping(8). HISTORY
This program has long history. Author of traceroute is Van Jacobson and it first appeared in 1988. This clone is based on a port of tracer- oute to IPv6 published in NRL IPv6 distribution in 1996. In turn, it was ported to Linux by Pedro Roque. After this it was kept in sync by Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>. And eventually entered iputils package. SECURITY
tracepath6 requires CAP_NET_RAW capability to be executed. It is safe to be used as set-uid root. AVAILABILITY
traceroute6 is part of iputils package and the latest versions are available in source form at http://www.skbuff.net/iputils/iputils-cur- rent.tar.bz2. iputils-161105 09 March 2017 TRACEROUTE6(8)
All times are GMT -4. The time now is 05:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy