I'm trying to match the end of line character in a shell script under bash. What I have done it got is a loop that reads each line of a file into a temp variable and then I get each letter of that variable and do some work on it. One think I want to do it check if the character I checking if the... (1 Reply)
How do i determine what the end of the line character is in a text file. for eg. is it \n or \f or \t etc..
Is there a unix command for this? (5 Replies)
Hi, sorry for being dumb but I have a file with a variable amount of records (day to day it differs) but is fixed at 80 characters wide. Unfortunately the 80th and last charachter in each line is a "^M" carriage return character which i want to get rid of. Is there a really easy command that i can... (6 Replies)
Hi All,
I have written a korn script (code pasted below). It is giving the error while debugging "new.sh: syntax error at line 62: `end of file' unexpected".
I have re-written the whole code in VI and explored all help related to this error on this Unix forum and tried it. Somehow, I could... (7 Replies)
I have a file with different directories in it. I would need to move one line within the file to the end of the list. Also not there could be blank line in the middle of it. Example
/vol/fs1
/vol/fs2
/vol/fs3
/vol/fs4
/vol/fs5
/vol/fs6
/vol/fs7
So I would need /vol/fs2... (3 Replies)
Hi friends ,
I want to know how does a shell script recognize the end of a line? . i have hunddres of proccedure to test where i want to ingnore the comments which starts with "--" .. it can start from the middle of the lines also. for example::
select * from table1; -- getting... (5 Replies)
Need to add end of line character to last record in a fixed width file.
When i take the record length of each line, for all the records it gives example like 200 except the last line as 199.
Due to this my other script fails.
Please help me on this. (4 Replies)
Hai,
I have got a small requirement in my script. and i am using bash shell. I need to add a dot (.) for some particular line in a file. Say for example,
$Cat rmfile
1 This is line1
2 This is line2
3 This is line3
O/p should be :
$Cat rmfile
1 This is line1
2 This is line2. #... (2 Replies)
hello everyone,
im new here, and also programming with awk, sed and grep commands on linux.
In my text i have many lines with this config:
1 1 4 3 1 1 2 5
2 2 1 1 1 3 1 2
1 3 1 1 1 2 2 2
5 2 4 1
3 2 1 1 4 1 2 1
1 1 3 2 1 1 5 4
1 3 1 1... (3 Replies)
I have several line in a text file. for example
I like apple;
I like apple
I like orange;
Output: I like apple
I try to useif grep -q "!\;$"; then (Not work)
Please use CODE tags when displaying sample input, sample output, and code segments (as required by forum rules). (1 Reply)
Discussion started by: cmdcmd
1 Replies
LEARN ABOUT DEBIAN
hconsole
HCONSOLE(1) Hatari utilities HCONSOLE(1)NAME
hconsole - Interactive Python console for using Hatari's remote API
SYNOPSIS
hconsole.py [[consoleoptions] [commandfile] --] [hatarioptions]
DESCRIPTION
Hconsole is a Python script that invokes Hatari and then provides an interactive shell (with full readline editing capabilities) for exe-
cuting Hatari remote API commands.
It can be useful for first exploring Hatari's remote API usage interactively and then writing scripts that somehow automate your Hatari
usage. They can invoke hconsole functionality simply by doing "import hconsole" and calling appropriate methods (see example.py coming
with hconsole).
USAGE
Normally hconsole forwards all of its arguments to Hatari instance it invoked. If you want to give arguments for hconsole itself, you
need to add '--' argument after the hconsole arguments and before the arguments going to Hatari.
If you give a file name as hconsole argument, commands in it will be read and executed through Hatari's remote API before you get into
hconsole interactive shell.
Hconsole accepts following options:
--exit Exit after starting Hatari and parsing arguments.
--help, -h
Show command line help.
EXAMPLES
Start Hatari with all of the given arguments:
hconsole.py --monitor mono -d test/
Start Hatari without extra arguments, execute commands from the given commands.txt file, exit after the file ends:
hconsole.py commands.txt --exit --
FILES
By default hconsole and its examples are installed under the /usr/share/hatari/hconsole/ directory.
SEE ALSO hatari(1), hatariui(1)AUTHOR
Written by Eero Tamminen <oak at helsinkinet fi>.
LICENSE
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
NO WARRANTY
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER-
CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Hatari 2010-10-10 HCONSOLE(1)