Sponsored Content
Full Discussion: get rid of unwanted lines
Top Forums Shell Programming and Scripting get rid of unwanted lines Post 302683943 by raj_saini20 on Thursday 9th of August 2012 12:53:53 AM
Old 08-09-2012
Code:
awk 'NF>1' filename

output is
Code:
                      1.7T  1.3T  452G  74% /vob/WebArch
                      1.7T  1.3T  452G  74% /vob/Analyst_Metrics
                      1.7T  1.3T  452G  74% /vob/Analyst_Metrics_Admin
                      1.7T  1.3T  452G  74% /vob/ioscomp_tot
                      1.7T  1.3T  452G  74% /vob_etl_framework
                      1.7T  1.3T  452G  74% /vob_pdsweb
                      1.7T  1.3T  452G  74% /vob_nz_tick
                      1.7T  1.3T  452G  74% /vob_rdrcore
                      1.7T  1.3T  452G  74% /vob_sts_dashboard
                      335G  259G   77G  78% /vob_ewsmatlab
                      335G  259G   77G  78% /vob_fabricserver

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Filter unwanted lines

Hi All, I have the below input and i only want to filter out some un-wanted info from here. Expected output is below. Can somebody help ? The catch is that i want to grep those lines with term "k=" and lines with term "**" as the 1st column and "07" as the last column. And the number of... (15 Replies)
Discussion started by: Raynon
15 Replies

2. Shell Programming and Scripting

Get rid of first & last lines from STD_OUT

I have an application that executes, printing a bunch of text to the screen... only problem is that I don't want to see the first line (the internal command being run) or the last line (it says "done") is there something to chop off the first and last line simply through use of piping the... (2 Replies)
Discussion started by: jjinno
2 Replies

3. UNIX for Advanced & Expert Users

How to Remove the unwanted Blank Lines

I have a file with the below data, i would like to remove the end blank lines with no data. I used the below commands but could not able to succeed, could you please shed some light. Commands Used: sed '/^$/d' input.txt > output.txt grep -v '^$' input.txt > output.txt input.txt file... (5 Replies)
Discussion started by: Ariean
5 Replies

4. Shell Programming and Scripting

Remove unwanted lines

I have a .xml file, where i need some output. The xml file is like: Code: <?******?></ddddd><sssss>234</dfdffsdf><sdhjh>534</dfdfa>......... /Code I need the output like: code 234 534 . . . /code How can i do it? (5 Replies)
Discussion started by: anupdas
5 Replies

5. Shell Programming and Scripting

grep out unwanted lines

Hi, I got a log file and I want to grep out a list of unwanted line which are IP's. Basiclly I want everything ecxept the ip's from my list. If I do a while read line do grep -v $ip_from_my_list logfile done <ip_list it just grep's one IP at a time and repeats. :( Thanks for... (3 Replies)
Discussion started by: stinkefisch
3 Replies

6. Shell Programming and Scripting

Need to delete unwanted files!!!

Hi all, i am just a beginner in shell. Need some code for my problem. SCENARIO I have 2 directories. Let A,B. Everyday files from directory A are compressed and moved to B.(already got the script). In directory A abc.doc def.exe ghi.c jkl.pl In directory B abc.tar.gz... (1 Reply)
Discussion started by: debu182
1 Replies

7. Shell Programming and Scripting

sed to get rid of unwanted characters

so i have strings such as this: 'postfix/local#2,5#|CRON.*12062.*root.*CMD#2,5#|roice.*NQN1#1,2#|toysprc#1,4#' i need to get rid of the "#" and the numbers between them for each of the strings above. so the desired output should be: ... (1 Reply)
Discussion started by: SkySmart
1 Replies

8. Shell Programming and Scripting

awk prints unwanted new lines

Hello, I need a little help with the following: I'm using AWK to read input from a comma-seperated value file, and only printing certain fields like so: awk -F "," '{print $1,$3,$6}' /list.csv | tail -1 Which outputs the following: server1 APPID OS I run into a problem... (8 Replies)
Discussion started by: LinuxRacr
8 Replies

9. Shell Programming and Scripting

For loop to get rid of first 2 lines(conditionally)

hello all, I get data from different vendors and need to clean it up. Usually it pretty straight forward when i have files that only have headers....but in my case i have files that have a starting line of file name(and some junk info) and 2nd line is headers and the 3rd line is were the actual... (11 Replies)
Discussion started by: crazy_max
11 Replies

10. Web Development

Getting Rid of Annoying Bootstrap Table Borders and Wayward Table Lines

Bootstrap is great; but we have had some issues with Bootstrapped <tables> (and legacy <fieldset> elements) showing annoying, wayward lines. I solved that problem today with this simple jQuery in the footer: <script> $(function(){ $('tr, td, fieldset,... (0 Replies)
Discussion started by: Neo
0 Replies
TRANSCODE_IMPORT(1)						  15th April 2008					       TRANSCODE_IMPORT(1)

NAME
transcode_import - transcode import modules collection SYNOPSIS
transcode -x name [ ,name ] [other options] COPYRIGHT
transcode is Copyright (C) 2001-2003 by Thomas Oestreich, 2003-2004 Tilmann Bitterberg, 2004-2010 Transcode Team IMPORT MODULES
If no module is specified through the -x option, transcode will autodetect them using internal probing code. If just one import module is specified, it is used both for video and audio import; if both modules are specified, the first is used for video import, the second for audio import. To see what import modules are avalaible for your transcode installation, do a $ ls -1 $( tcmodinfo -p )/import*.so A complete transcode installation has the following import modules. alsa [audio] This module reads audio samples from an ALSA device using libalsa. This module accepts the following options: device (string) selects ALSA device to use for capturing audio. bktr [video] This module reads video frames from an capture device using bktr module. This module is designed to work on *BSD. For linux, use the v4l module. This module accepts the following options: tunerdev (string) help: selects tuner device. vsource (string) selects video source (device dependant input). format (string) selects video normalization. asource (string) selects audio source (device dependant input). dvd [video, audio, extra] This module provides access to DVD content using libdvdread, directly from DVD device. (e.g. on-the-fly operation, no intermediate disk storage needed). At run time, this module requires: libdvdread >= 0.9.3 This module accepts the following options: delay (integer) set device access delay (seconds). im [video] This module reads single images from disk using ImageMagick; a stream of correlated images can be automatically read if their filenames contains a common prefix and a serial number. All formats supported by ImageMagick are supported as well. At run time, this module requires: libMagick >= 6.2.4.0 This module accepts the following options: noseq (flag) disable internal auto loading of images with similar names. pv3 [video, audio] This module provides access to Earth Soft PV3 audio/video streams using win32 binary codecs and an internal win32 emulation layer (NO wine needed). At run time, this module requires: PV3 win32 dlls. This module accepts the following options: dllpath (string) set path/filename to load dv.dll from vag [audio] This module decodes VAG-format audio (from PlayStation). This module accepts the following options: blocksize (integer) stereo blocking size. vob [video, audio] This module imports audio/video from VOB files. If you need direct DVD access, use import_dvd module. This module accepts the following options: nodemux (flag) skip demuxing processing stage. This sometimes improves A/V sync. x11 [video] This module captures video frames from X window system using libX11. At run time, this module requires: libcx11-6 >= 1.0.0 This module accepts the following options: skew_limit (integer) maximum frame A/V skew (ms) before correction attempt v4l2 [video, audio] This module allow to capture video frames through a V4L2 (V4L api version 2) device. While audio capturing is possible, this kind of usage is discouraged in favour of OSS or ALSA import modules. This module accepts the following options: overrun_guard (integer) flag (default off). Toggles the buffer overrun guard, that prevents crash when capture buffers are full. resync_margin (integer) threshold audio/video desync (in frames) that triggers resync once reached. crop (string) forces cropping into selected window (format: WIDTHxHEIGHT+LEFTxTOP) resync_interval (integer) checks the resync_margin every given amount of frames. format (integer) forces video frames convertion by using index; use -1 to get a list of supported conversions. format (string) forces output format to given one; use "list" to get a list of supported formats. convert (integer) forces video frames convertion by using index; use -1 to get a list of supported conversions. AUTHORS
Written by Thomas Oestreich <ostreich@theorie.physik.uni-goettingen.de>, Tilmann Bitterberg and the Transcode-Team See the AUTHORS file for details. SEE ALSO
transcode(1) , tcmodinfo(1) , transcode_filter(1) , transcode_export(1) transcode_import(1) 14th July 2008 TRANSCODE_IMPORT(1)
All times are GMT -4. The time now is 07:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy