Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Cutting lines out using sed I presume. Post 12830 by inquirer on Monday 7th of January 2002 11:13:33 PM
Old 01-08-2002
try something different ...

if you want only the first and last line in a text file why don't you try this...

head -n 1 filename > outputfile
tail -n 1 filename >> outputfile

Smilie
inquirer
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Cutting n consecutive lines from a file...

Hi, I have this problem of separating 10 consecutive lines from a file, say starting from 21 to 30... I have used a filter like this.. head -n 30 myfile | tail -n 10 Is there a simpler way than this? (2 Replies)
Discussion started by: Vishnu
2 Replies

2. UNIX for Dummies Questions & Answers

Cutting the top two lines, and also charachters below.

Hey all. I have a file that I am trying to cut information out of. We have a script that shows us all of our Radio Scanners that are being used and I'm writing a script that clears all of the context off of the scanners. The script that runs shows us this information below... |emp_id ... (5 Replies)
Discussion started by: jalge2
5 Replies

3. Shell Programming and Scripting

Question about SED cutting and renaming

Hi. I've posted a couple of questions on my little project before, and it's been helpful, but things just keep changing on my end. Allow me to explain. I'm getting hundreds of .txt files, each containing the results of a database search from a newspaper. EAch file contains the news stories... (10 Replies)
Discussion started by: spindoctor
10 Replies

4. Shell Programming and Scripting

need help cutting consecutive lines with sed or awk

HI All, I want to cut 5 lines after a pattern using sed or awk. can any one tell me how to do it ? (2 Replies)
Discussion started by: raghin
2 Replies

5. Shell Programming and Scripting

Cutting specific lines from a file

Hi, I have a file named Mani.txt. The contents are like this cat Mani.txt -------------------------------------------------------- Hi there how r u My Name is Mani Bye ------------------------------------------------------------ I want to cut the first and last lines from the file... (15 Replies)
Discussion started by: pathanjalireddy
15 Replies

6. Shell Programming and Scripting

cutting lines

Dear All, Is there a way to cut the lines that have been "head" Here is what i m trying to do Please advice there is file name dummy.txt now i am trying to head this file 4 time by using a loop and every time this file is head with different values e.g in first instance it will... (7 Replies)
Discussion started by: jojo123
7 Replies

7. Shell Programming and Scripting

Cutting fields from lines with multiple spaces

Please see the following code, between "status" and "OK" exists many spaces, I want to get status OK . how to ignore multi spaces? If tab exists in the spaces, how to ignore it ? Is there other commands can replace cut? $ echo 'drv status OK'| cut... (3 Replies)
Discussion started by: 915086731
3 Replies

8. UNIX for Dummies Questions & Answers

Cutting lines if conditions are met

Hi. I am not sure how to solve this problem and if it is possible to do so with scripting. :wall: Let's say I have this data: A 12345 12360 A 12359 12380 A 12381 12390 A 12400 12450 A 12451 12460 B 23456 23460 B 23470 23480 B 23477 23505 I wan't each line to be compared in this... (5 Replies)
Discussion started by: danieladna
5 Replies

9. UNIX for Dummies Questions & Answers

sed expression-help cutting name

Hi, I have some sample names. The regions in red are what I want to extract. AIB13-positive AIB13-blank AIB13-1116-0022999 GNX13-1521-0003532 Each of the sample names are represented as variable ${SAMPLE} within a loop. I've tried extracting the middle region with the following code... (2 Replies)
Discussion started by: jdilts
2 Replies

10. UNIX for Dummies Questions & Answers

Cutting specific columns from lines

I am trying to remove columns 81-97 from a line that can be as long as 114 characters. Because a number of lines might not have under 80 characters, using the cut command following by paste could be a problem. While sed might work, is there some other utility that could do this more easily? ... (9 Replies)
Discussion started by: wbport
9 Replies
Ac3d Compiler(6)						       Games							  Ac3d Compiler(6)

NAME
accc - Ac3d Compiler SYNTAX
accc [option] <inputfile> <outputfile> [dist][-order orderstring] DESCRIPTION
This manual describes the Ac3d compiler application that is shipped with the game TORCS. OPTIONS
-strip stripify any ac3d output models +o ac3d to ac3d: the result file is optimized in using groups by zone of track track must be named TKMNxxx dist is used to determine the distance of the objects +om ac3d to ac3d: the result is a vertex merged unique obj for smooth car only -o ac3d to obj +s ac3d to ac3d with strips (used for cars) +es <angle_of_smooth> ac3d to ac3d with strips (used for cars) and extended ac3d file output (computed normals) angle is in degrees: example: +es 80.0 clkdtm_o.ac clkdtm.ac the output file will also contains the secondary textcoord for the env sliding +et ac3d to ac3d with triangles (used for cars) and extended ac3d file output (normals normals) +etn ac3d to ac3d with triangles no split and extended ac3d file output (normals normals) +shad ac3d to ac3d with triangles, create a new ac3d file used for track shading vertical mapping of a single texture <inputfile> <outputfile> -order orderstring only used with +es , +s and +et orderstring is the order of the objects during the save for example: HB;OB;OBM is the names of the objet separate by a semicolon for imported NFS cars the object name HB must be used instead of: HB -g <outputfile> for grouping multilayer ac3d track -l0 <input filename> the base geometry -l1 <input filename> the base geometry map-tiled -l2 <input filename> the base geometry skids/and grass details -l3 <input filename> the base geometry shadows -d3 <val> the max distance of groups in tkmn -d2 <val> the distance of group 2 in tkmn -d1 <val> the distance of group 1 in tkmn -S <val> the distance of splitting for TERRAIN* objects -es for extended ac3d file format for strips -nts no texture split (for debug) SEE ALSO
torcs(6) AUTHOR
This manual page was writen by Rudy Godoy <rudy@stone-head.org>, for the Debian GNU/Linux system (but may be used by others). Rudy Godoy 1.4 Ac3d Compiler(6)
All times are GMT -4. The time now is 05:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy