Sponsored Content
Top Forums Shell Programming and Scripting Adding user name to file, and then displaying new line number Post 302970670 by Scrutinizer on Sunday 10th of April 2016 10:43:54 AM
Old 04-10-2016
You can use wc -l < file , so after the line is added, you'll know how many lines are in the file..

Last edited by Scrutinizer; 04-10-2016 at 12:44 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

displaying the last line of the file

hi... i need to display the last line of the file and capture the line in to a variable in unix envt.(not the perl ones)... please help (8 Replies)
Discussion started by: lmadhuri
8 Replies

2. Shell Programming and Scripting

Adding a columnfrom a specifit line number to a specific line number

Hi, I have a huge file & I want to add a specific text in column. But I want to add this text from a specific line number to a specific line number & another text in to another range of line numbers. To be more specific: lets say my file has 1000 lines & 4 Columns. I want to add text "Hello"... (2 Replies)
Discussion started by: Ezy
2 Replies

3. Shell Programming and Scripting

Displaying number of lines from file

Hi, I am using below command to display the number of line, but its returning no of lines along with file name. But i want only no of line in the variable p. Please help me on this? p=`wc -l "text file"` echo "$p" (6 Replies)
Discussion started by: shivanete
6 Replies

4. Shell Programming and Scripting

merging line and adding number

I having file below o/p ibapp311dg,,20480,s,,,,,,,,, test,,20480,s,,,,,,,,, test,,20480,s,,,,,,,,, ibapp311dg,,20480,s,,,,,,,,, I want to to chk unique word line in the first field seperated by , as well as addup corressponding the number in field for each unique word like ibapp311dg... (8 Replies)
Discussion started by: tarunn.dubeyy
8 Replies

5. Shell Programming and Scripting

Displaying lines of a file which have the highest number?

Hello Wondering if anybody may be able to advise on how I can filter the contents of the following file: <object_name>-<version> <Instance> GM_GUI_code.fmb-4 1 GM_GUI_code.fmb-5 1 GM_GUI_code.fmx-4 ... (7 Replies)
Discussion started by: Glyn_Mo
7 Replies

6. UNIX for Dummies Questions & Answers

How to read contents of a file from a given line number upto line number again specified by user

Hello Everyone. I am trying to display contains of a file from a specific line to a specific line(let say, from line number 3 to line number 5). For this I got the shell script as shown below: if ; then if ; then tail +$1 $3 | head -n $2 else ... (5 Replies)
Discussion started by: grc
5 Replies

7. Shell Programming and Scripting

editing line in text file adding number to value in file

I have a text file that has data like: Data "12345#22" Fred ID 12345 Age 45 Wilma Dino Data "123#22" Tarzan ID 123 Age 33 Jane I need to figure out a way of adding 1,000,000 to the specific lines (always same format) in the file, so it becomes: Data "1012345#22" Fred ID... (16 Replies)
Discussion started by: say170
16 Replies

8. UNIX for Dummies Questions & Answers

Deleting "user input line number" from a file using sed

Hi I want to delete a line from a txt file for which the line number is user input. Say when user selects 19, the 19th line would be deleted from the file. Can anyone please provide me with a sed one liner for the same... I tried sed -i. The interaction would be like this Enter the line to... (1 Reply)
Discussion started by: sudeep.id
1 Replies

9. Shell Programming and Scripting

adding line number to *end* of records in file

Given a file like this: abc def ghi I need to get to somestandardtext abc1 morestandardtext somestandardtext def2 morestandardtext somestandardtext ghi3 morestandardtext Notice that in addition to the standard text there is the line number added in as well. What I conceived is... (4 Replies)
Discussion started by: edstevens
4 Replies

10. Shell Programming and Scripting

Adding filename and line number from multiple files to final file

Hi all, I have 20 files (file001.txt upto file020.txt) and I want to read them from 3rd line upto end of file (line 1002). But in the final file they should appear to start from line 1. I need following kind of output in a single file: Filename Line number 2ndcolumn 4thcolumn I... (14 Replies)
Discussion started by: bioinfo
14 Replies
WOLF4SDL(6)							     Wolf4SDL							       WOLF4SDL(6)

NAME
wolf4sdl - An open-source port of id Software's classic first-person shooter SYNOPSIS
wolf4sdl [options] wolf4sdl-wl6 [options] wolf4sdl-wl6a [options] wolf4sdl-wl1 [options] wolf4sdl-sod [options] wolf4sdl-sdm [options] DESCRIPTION
Wolf4SDL is an open-source port of id Software's classic first-person shooter Wolfenstein 3D to the cross-plattform multimedia library Sim- ple DirectMedia Layer (SDL) (http://www.libsdl.org). It is meant to keep the original feel while taking advantage of some improvements. The wolf4sdl-wl6, wolf4sdl-wl6a, wolf4sdl-wl1, wolf4sdl-sod and wolf4sdl-sdm binaries start the Wolf3d Full v1.4 GT/ID/Activision, Wolf3d Full v1.4 Apogee (with ReadThis), Wolf3d Shareware v1.4, Spear of Destiny Full and Mission Disks and Spear of Destiny Demo games, respec- tively. The wolf4sdl binary is a symbolic link to one of these and is handled via Debian's update-alternatives mechanism. OPTIONS
--help This help page --tedlevel <level> Starts the game in the given level --baby Sets the difficulty to baby for tedlevel --easy Sets the difficulty to easy for tedlevel --normal Sets the difficulty to normal for tedlevel --hard Sets the difficulty to hard for tedlevel --nowait Skips intro screens --windowed Starts the game in a window --res <width> <height> Sets the screen resolution (must be multiple of 320x200 or 320x240) --resf <w> <h> Sets any screen resolution >= 320x200 (which may result in graphic errors) --bits <b> Sets the screen color depth (use this when you have palette/fading problems allowed: 8, 16, 24, 32, default: "best" depth) --joystick <index> Use the index-th joystick if available (-1 to disable joystick, default: 0) --joystickhat <index> Enables movement with the given coolie hat --samplerate <rate> Sets the sound sample rate (given in Hz, default: 44100) --audiobuffer <size> Sets the size of the audio buffer (-> sound latency) (given in bytes, default: 2048 / (44100 / samplerate)) --ignorenumchunks Ignores the number of chunks in VGAHEAD.* (may be useful for some broken mods) AUTHORS
Wolf4SDL v1.6 ($Revision: 232 $) Ported by Chaos-Software (http://www.chaos-software.de.vu) Original Wolfenstein 3D by id Software This manual page was written by Fabian Greffrath <fabian+debian@greffrath.com> for the Debian project (but may be used by others). 1.6 December 2010 WOLF4SDL(6)
All times are GMT -4. The time now is 03:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy