Thank you for the reply . There is one slight issue left. With your command I got rid of the first, third and fifth line and also from the first number ( 0 ). I am a "very" beginner and this is why I am asking.
80282 Severe myopia contributed to Ron's inferiority complex.
42906 Dolphins are intelligent marine mammals.
44544 Don't ask me to carry an oily rag like that.
but I still have the others. This is my outpur in test2.txt:
I have to find the number of rows in a file and delete those many rows in another file.
For example, if I have 3 rows in a file A, i have to delete first 3 rows in anothe file B,
I have the code, it works as standalone, when I merge this with m application (c with unix), it doesnt work.
... (2 Replies)
I have a file which will have rows like shown below,
ST*820*316054716
RMR*IV*11333331009*PO*40.31
REF*IV*22234441009*xsss471-2762
DTM*003*091016
ENT*000006
RMR*IV*2222234444*PO*239.91
REF*IV*1234445451009*LJhjlkhkj471-2762 </SPAN>
DTM*003*
091016
RMR*IV*2223344441009*PO*40.31... (18 Replies)
Hello. I have the following issue: my txt file has the following format:
train/dr4/fklc0/sx175.txt 0 80282 Severe myopia contributed to Ron's inferiority complex. train/dr4/fklc0/sx355.txt 0 42906 Dolphins are intelligent marine mammals. train/dr4/fklc0/sa2.txt
With the... (1 Reply)
Hi,
I have a file will 1000 lines.... I want to deleted some line in the file... like 800-850 lines i want to remove in that...
can somebody help me..?
thanks. (2 Replies)
Well here is my question.
Let's say I have this Script:
find /var/mobile/ maxdepth -2 name "$x" >> /"$x".txt
The thing is I want to repeat this script and pull out a variable from a text file like this (each line = new variable $x and another run of the whole command)
Thanks for... (27 Replies)
I want to add/append the info in the following format to my.txt file.
20130702|abcd20130702.txt FN|SN|DOB
I tried the below script but it throws me some exceptions.
<#!/bin/sh
dt = date '+%y%m%d'members;
echo $dt+|+members+$dt;
/usr/bin/awk -f
BEGIN { FS="|"; OFS="|"; } { print... (6 Replies)
Friends,
I am in need to delete files from a directory on a regular basis. I want to place all the files to be deleted in delete .txt file and require a script to delete files, line by line from this delete.txt file. Please help me with this script as am new to unix scripting. (3 Replies)
Hi All,
I want to keep the name of the songs with their respective extensions only.
Sample Code
========
03 Choti choti gaiya choti choti gaval.mp3
03---Brazil Dhol.mp3
03 PAYALIYA .mp3
04 - Isq Risk .mp3
04%20-%20Oh%20My%20Love(wapking.in).mp3
08 - A2 - Aasan Nahin Yahan .mp3
AE... (3 Replies)
Hi All
Is there a way to export every line into new txt file where by the title of each txt output are same as the line ?
I have this txt files containing names:
Kandra Vanhooser
Rhona Menefee
Reynaldo Hutt
Houston Rafferty
Charmaine Lord
Albertine Poucher
Juana Maes
Mitch Lobel... (2 Replies)
hi,
i'm trying to write a tcsh script that reads in a text file (one column) and the runs a different command for each line of text.
i've found lots of example commands for bash, but not for tcsh.
can anyone give me a hint?
thanks,
jill (8 Replies)
Discussion started by: giuinha
8 Replies
LEARN ABOUT DEBIAN
openbve
OPENBVE(6) Games Manual OPENBVE(6)NAME
OpenBVE - train/railway simulator and game
SYNOPSIS
openbve [/route=route.csv] [/train=directory] [/controls|/newgame|/options|/review]
DESCRIPTION
OpenBVE is a realistic rail simulator.
The driving simulation is restricted to following a pre-determined loaded route, with the focus being on the realism of the train driving
experience. OpenBVE also has an Arcade mode where driving style and timetable-keeping affect a running score.
The simulator is backwards compatible with existing 'BVE Trainsim' route and train datafiles, which are readily available for no cost. It
is cross-platform using CLI and Mono.
GETTING STARTED
To move the train, you need to do the following (with the default keyboard settings):
f Move the reverser to the forwards position. (Opposite is v).
, Release the brake one notch; will be required 4-8 times before movement. (Opposite is .).
z Increase the regulator (power) one notch; may be required 1-2 times before movement. (Opposite is q).
The major controls keys are arranged closely together q-a-z for power control; ,-. (comma and full-stop) for braking and f-v for for-
wards/backwards direction. Some electric trains have a combined accelerator+brake with a coast (neutral) in the centre. This is con-
trolled with just the q-a-z combination (and forwards/backwards). Pressing the a key moves the controller one notch closer to the
coast/idle positioh, regardless of whether in power or braking mode.
Return/Shift-Return operate the horn. Keys F1-F5 select alternative camera angles. C-r unlocks the camera to allow free movement (r to
reset). A large number of other keys exist for interacting with complex signalling systems and operating the passenger doors whilst in a
station. Most routes have a supplied timetable that can be displayed by pressing C-t.
LAPTOPS
For laptops/notebooks, there is an alternate keyboard mapping (called "Default keyboard assignment for Notebooks.controls"), which can be
imported via the Customise Controls tab. The basic keys are the same, but camera controls are moved off the numeric keypad.
OPTIONS
/controls
Show Customise Controls screen; keyboard/mouse/joystick selection.
/newgame
Show Filemanager/route selector screen; choose activity (default).
/options
Show Options screen; display and quality settings.
/review
Show Review performance; score and incident log from previous activity.
/route=someroute.csv
Path to the file with the route file ending .csv or .rw which describes the track, scenery and time-table.
/train=train.dat
A train/cab. This should be a path to the directory, which contains the train.dat description for the locomotive, train or cab.
DATAFILES
Two elements are required, a route, and a train (often just a cab view and performance metrics). These can be selected using the fileman-
ager after OpenBVE is started. Most routes have a corresponding recommended train (for instance a particular model of Tube train on the
London Underground); if this train is located it will be selected by default.
FILES
~/.config/OpenBve/
Saved keyboard configuration, display settings and score log.
/usr/share/games/bve/Train/
Default location for packaged train directories (containing train.dat).
/usr/share/games/bve/Railway/Route/
Default location for packaged railway route .csv files.
/usr/shares/games/openbve/data/
Data used by OpenBVE to start up.
AUTHOR
OpenBVE was written by Michelle Boucquemont <reschanger@gmail.com> and placed in the public domain.
This manual page was written for Debian/Ubuntu by Paul Sladen <ubuntu@paul.sladen.org>
SEE ALSO
Website: http://trainsimframework.org/
OpenBVE 5 April 2009 OPENBVE(6)