Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Help with the Header and Footer check Post 302527805 by Shell_Life on Sunday 5th of June 2011 02:48:30 PM
Old 06-05-2011
Please display a sample of input data.

To display the header: head -1 file
To display the footer: tail -1 file

For a definitive solution, a sample data is required.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

remove header and footer rows

I would like to remove some lines from begining of file (header) and some lines from end of file (footer). The header/footer lines generated by web-browser when the user upload a file to my webserver. Example: -----------------------------7d62af20c052c Content-Disposition: form-data;... (2 Replies)
Discussion started by: seaky
2 Replies

2. Shell Programming and Scripting

Inserting Header and footer

Hi All, I have several txt files i need to enter specific header and footer (both are separate) to all these files how can i do this? plz help.. Regards, Raghav (4 Replies)
Discussion started by: digitalrg
4 Replies

3. Shell Programming and Scripting

How to add header and footer?

Hi, Guys, I want add header and footer in a file. I can add footer using following command: echo "Footer" >>file. I don't know how to add header. Thanks in advance (4 Replies)
Discussion started by: ken002
4 Replies

4. UNIX for Dummies Questions & Answers

remove the header and footer using sed

I want to delete the header and footer in the file by using sed for that i ran the below script and my text file looks like emp.txt # This file contain employee # information abc 12300 34 'FGH' # This is confidential as per the firm rules. my intention is to remove the header... (8 Replies)
Discussion started by: vmachava
8 Replies

5. Shell Programming and Scripting

Header and Footer...

Hi All, I need to write a script that In my file I have to check header and footer records are available or not. If it is available I have to run the script, otherwise I should not. But current script it is checking only the data inside the script. It is avoiding to check Header and Footer... (1 Reply)
Discussion started by: suresh_target
1 Replies

6. Shell Programming and Scripting

Removing header and footer

I have two files which are getting sent to a UNIX server in order to be bcp'd into a database. The bcp is failing because there's a header and footer row on the file which give the date of the file and the number of rows in it. That's because the file is also being used for another process, so we... (1 Reply)
Discussion started by: Tom Sawyer
1 Replies

7. Shell Programming and Scripting

Add header and footer with record count in footer

This is my file(Target.txt) name|age|locaction abc|23|del xyz|24|mum jkl|25|kol The file should be like this 1|03252012 1|name|age|location 2|abc|23|del 2|xyz|24|mum 2|jkl|25|kol 2|kkk|26|hyd 3|4 Column 1 is row indicator for row 1 and 2, column indicator is 1,for data rows... (1 Reply)
Discussion started by: itsranjan
1 Replies

8. Shell Programming and Scripting

Removing header or footer from file

Hi Every one, what is the coomand to remove header or footer from a file. Please help me by providing command/syntax to remove header/footer from unix. Thanks in advance for all your support. (5 Replies)
Discussion started by: sridhardwh
5 Replies

9. 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

10. Shell Programming and Scripting

Strip header and footer

Hi I have below requirements on the script below : (1) I receive 2 pipe seperated file called OUT.psv and DIFF.psv with a column header.I concatenate the 2 files and create a final.psv file. I want to add another header as START_FILE to the final.psv file . How to achieve this ? (2) I have... (5 Replies)
Discussion started by: samrat dutta
5 Replies
WVUNPACK(1)															       WVUNPACK(1)

NAME
wvunpack - decodes wavpack encoded files SYNOPSIS
wvunpack [-options] INFILE... [-o OUTFILE] DESCRIPTION
wvunpack decodes WavPack files back to their uncompressed wav or raw form using the options provided. Unless overridden with the -o switch, the resulting filename will be source-name.wav (or source-name.raw when -r used). Multiple WavPack input files may be specified resulting in multiple output files, and in that case -o may be used to specify an alternate target directory. Stdin and stdout may be specified with "-". WavPack files are generally created with the wavpack program. OPTIONS
-b blindly decode all stream blocks and ignore length info -c do not decode audio but instead just extract cuesheet stored in APEv2 tag to stdout (equivalent to -x "cuesheet") -cc extract cuesheet stored in APEv2 tag to source-name.cue file in same directory as decoded audio file (equivalent to -xx "cuesheet=%a.cue") -d delete source file if successful (use with caution!) --help display extended help -i ignore .wvc file (forces hybrid lossy decompression) -m calculate and display MD5 signature; verify if lossless --no-utf8-convert leave extracted text tags in UTF-8 encoding during extraction or display -q quiet (keep console output to a minimum) -r force raw audio decode by skipping RIFF headers & trailers, results in source-name.raw -s do not decode audio but simply display summary information about WavPack file to stdout -ss do not decode audio but simply display summary and tag information about WavPack file to stdout --skip=[sample|hh:mm:ss.ss] start decoding at specified sample or time index -t copy input file's time stamp to output file(s) --until=[+|-][sample|hh:mm:ss.ss] stop decoding at specified sample or time index, specifying a + causes sample/time to be relative to --skip point, specifying a - causes sample/time to be relative to EOF -v verify source data only (no output file created) -w regenerate fresh wav header (ingore RIFF data stored in WavPack file) -x "Field" do not decode audio but instead just extract the specified tag field to stdout -xx "Field[=file]" extract the specified tag field to named file in same directory as decoded audio file; optional filename specification may contain %a which is replaced with the audio file base name, %t replaced with the tag field name (note: comes from data for binary tags) and %e replaced with the extension from the binary tag source file (or "txt" for text tag). -y yes to overwrite warning (use with caution!) SEE ALSO
wavpack(1), wvgain(1) Please visit www.wavpack.com for more information COPYRIGHT
This manual page was written by Sebastian Droge <slomo@debian.org> and David Bryant <david@wavpack.com>. Permission is granted to copy, distribute and/or modify this document under the terms of the BSD License. AUTHORS
Sebastian Droge <slomo@debian.org> Author. David Bryant <david@wavpack.com> Author. COPYRIGHT
Copyright (C) 2005 Sebastian Droge Copyright (C) 2009 David Bryant 2009-10-17 WVUNPACK(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