10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to modify the "corestat v1.1" code which is in Perl.The typical output of this code is below:
Core Utilization
CoreId %Usr %Sys %Total
------ ----- ----- ------
5 4.91 0.01 4.92
6 0.06 ... (0 Replies)
Discussion started by: Zam_1234
0 Replies
2. Shell Programming and Scripting
Hi friends,
In my shell script, I want to open a file using vi editor. After opening the file in vi, I want to save and quit this file automatically.... all through shell script.
the code segment is:
------------------------------------------------------------
cd ~/netfpga/projects/scone/sw/... (2 Replies)
Discussion started by: sachinteotia
2 Replies
3. Shell Programming and Scripting
I have a parts file that looks like this:
EE36264|0NH46||Y|A|EA|0|0|0|N|LUNETTE 3" ADJ. EYE|0|0|*|0|PEOZZU|N|12|N|N|VPS|N|N|N|N|LUNETTE 3" ADJ. EYE|0|||Receive into Inventory|81755|EE36264|*|*|*|0|0||EE36264|A|*|*
F1.5|53932||Y|A|EA|0|0|0|N|FLAT ZERO CAL... (4 Replies)
Discussion started by: djehresmann
4 Replies
4. Shell Programming and Scripting
FILE_ID extraction from file name and save it in CSV file after looping through each folders
My files are located in UNIX Server, i want to extract file_id and file_name from each file .and save it in a CSV file. How do I do that?
I have folders in unix environment, directory structure is... (15 Replies)
Discussion started by: princetd001
15 Replies
5. Shell Programming and Scripting
There are some ksh files named as "*.lib" in my system. When I open them in VIM, vim syntax can't parse it correctly.
Is there a way that I can relate the *.lib with KSH syntax in VIM?
Due to access limitation, i can only update the files under my home directory and can't modify the VIM... (6 Replies)
Discussion started by: sleepy_11
6 Replies
6. UNIX for Dummies Questions & Answers
Hi Unix gurus,
Maybe it is too much to ask for but please take a moment and help me out. A very humble request to you gurus. I'm new to Unix and I have started learning Unix. I have this project which is way to advanced for me.
File format: CSV file
File has four columns with no header... (8 Replies)
Discussion started by: arvindosu
8 Replies
7. Solaris
I downloaded vim.7.2 and compiled the vim source .
Added the vim binary path to PATH (Because iam not the root of the box)
when i load the file using vim it throws me an error
Error detected while processing /home2/e3003091/.vimrc:
line 2:
E185: Cannot find color scheme darkblue
line... (0 Replies)
Discussion started by: girija
0 Replies
8. Shell Programming and Scripting
Hi All,
In vim, when we press ^G, the file name is displayed at the bottom of the screen and as soon as we enter into some other mode (say e.g. Insert), the file name is replaced by the words "Insert". I was just wondering whether it is possible to continuously show the file name no matter which... (3 Replies)
Discussion started by: jal_capri
3 Replies
9. Shell Programming and Scripting
hi there !
i have exactly the same problem like this guy here
https://www.unix.com/shell-programming-scripting/127668-getting-curl-output-verbose-file.html
i am not able to save the curl verbose output..
the sollution in this thread (redirecting stderr to a file) does not work for me.... (0 Replies)
Discussion started by: crabmeat
0 Replies
10. Shell Programming and Scripting
I am trying to visually select a section of text in vim and then substitute for it using the :%s/ sequence.
First I visually select text. Then I yank using "ay. Then I type :%s/ followed by Control R and the register name, in this case a.
This fills in the text I have visually selected into... (6 Replies)
Discussion started by: Enobarbus37
6 Replies
SETUPCON(1) Console-setup User's Manual SETUPCON(1)
NAME
setupcon - sets up the font and the keyboard on the console
SYNOPSIS
setupcon [OPTION]... [VARIANT]
DESCRIPTION
setupcon is a program for fast and easy setup of the font and the keyboard on the console. Most of the time you invoke setupcon without
arguments. The keyboard configuration is specified in ~/.keyboard or /etc/default/keyboard. The font configuration is specified in
~/.console-setup or /etc/default/console-setup. Consult keyboard(5) and console-setup(5) for instructions how to configure these two
files.
If you have to switch often between different encodings, keyboards or languages, you can prepare several alternative configuration files
for setupcon. Suppose that most of the time you will use Greek language with Greek keyboard layout, but sometimes you need to type in Ger-
man with German keyboard layout. In this situation you should customize the main configuration files (keyboard and console-setup) for
Greek. Also, create alternative configuration files for German named keyboard.german and console-setup.german. Then in order to configure
the console for Greek you will simply run the command with no arguments: setupcon and in order to configure the console for German you will
use setupcon german.
OPTIONS
VARIANT
Specifies which configuration file to use. With no variant, the configuration files of setupcon are named console-setup and key-
board. On the other hand, if you use e.g. chukchi as VARIANT then the configuration files are console-setup.chukchi and key-
board.chukchi. In this way you can have easy access to several different configurations - for example one for the Chukchi language
and another for the default configuration.
-v, --verbose
Be more verbose. Use this option if something goes wrong or while experimenting with the configuration files.
-k, --keyboard-only
Setup the keyboard only, do not setup the font or the terminal. On Linux it is enough to do this configuration only once.
-f, --font-only
Setup the font only, do not setup the keyboard or the terminal. On Linux this configuration should be repeated each time a new con-
sole driver is activated (for example when the frame buffer becomes active).
-t, --terminal-only
Setup the terminal only, do not setup the keyboard or the font.
--current-tty
Setup the only the current virtual terminal.
--force
Do not check whether we are on the console. Notice that you can be forced to hard-reboot your computer if you run setupcon with
this option and the screen is controlled by a X server.
--save This option can be useful if you want to use setupcon early in the boot process while /usr is not yet mounted and the required data
are not available. This option will make setupcon copy the required files in /etc/console-setup/ in order to make them available
before /usr is mounted. If you use setupcon early in the boot process, then you should run it with this option after every change
of the console configuration.
--save-only
The same as --save, but does not setup anything. This option can be useful if you want to save the required files while the screen
is controlled by a X server.
--save-keyboard FILE
For use by initrd builders. Do not configure anything. Save an usable keyboard layout in FILE.
--setup-dir DIR
For use by initrd builders. Do not configure anything. Arrange in the directory DIR everything necessary in order to configure the
console. The file DIR/morefiles lists all binaries the initrd builder has to install in the initrd image. All other files in DIR
have to be copied unchanged in the initrd. In order to configure the console one has to run the script DIR/bin/setupcon.
-h, --help
Display usage information.
FILES
~/.console-setup
~/.keyboard
/etc/default/console-setup
/etc/default/keyboard
/etc/default/console-setup.VARIANT
/etc/default/keyboard.VARIANT
/etc/console-setup/
SEE ALSO
keyboard(5), console-setup(5)
console-setup 2011-03-17 SETUPCON(1)