Before you do anyhting, try this command
where filename is one of those problem files. This tells you what kind of file you are seeing. If it is a text or ascii file you cannot just "type it". try
to display the contents of the ascii/text files
When you get stuck try "ctrl-c" - that means push down the control key, hold it down, then press the c key. Let go both keys.
Hi All,
How do I get only the files with the .csv extension. I have a shell script something like below:
#!/usr/bin/
#Directory to scan for files
SCANDIR="/cmb/data/exstream/scriptslogs/";
LOGFILE="/cmb/data/exstream/scriptslogs/test.log";
cd $SCANDIR
for FILE in * ; do
FILENAME=$FILE... (9 Replies)
Hi,
I have a root directory which has a big number of other subdirectories and contains a big number of files. I want to copy all these files and directories to another folder except files with certain extension, say .txt, files - how may I do this?
Thanks,
faizlo (8 Replies)
Hi,
I have 1000 of files in a folder with the file extension as .csv
In this some of the files are already zipped and its looks like filename.csv.gz
Now i need to zip all the files in the folder to free some disk space. When i give gzip *.csv
It prompts me to overwrite filename.csv.gz... (5 Replies)
Let's say I wanna Delete all the files of a certain extension exept one.
How do I do it?
I know, if you wanna delete them all is with the command:
find ~/ -type f -iname '*.txt' -exec rm {} ~/ ';'
But If I want to keep an Specific file? Let's say I wanna keep 'Log.txt'. How do I do it? (1 Reply)
Hi,
I know that to list files with no extension, we can use..
ls -1 | grep -v "\."
And to list .prog files, we can use..
ls -1 *.prog
or
ls -1 | grep '.prog$' (4 Replies)
hi,
i am having a certain files in a folder where i need to replace the extension with similar file name
for eg
1.csv
2.csv
3.csv
4.csv
i need to replace the extension
1.csv
1.txt
2.csv
2.txt
3.csv
3.txt (3 Replies)
Hi
I Have a directory and i have some files below
abc.txt
abc.gif
gtee.txt
ghod.pid
umni.log
unmi.tar
How can use glob function to grep abc files , i have created a variable "text" and i assigned value as "abc", please suggest me how can we use glob.glob( ) to get the output as below... (2 Replies)
Hi All,
I want to fetch the files based on .done file and display the .csv files and Wil take .csv files for processing.
1.I need to display the .done files from the directory.
2.next i need to search for the .Csv files based on .done file.then move .csv files for the one directory
... (2 Replies)
I'm suppose to write a command that would list all files that end in .tx with an optional t at the end.
So far all I got is listing the files that end in .tx which is:
ls *.tx
Now my problem is how do I add the optional t at the end. (3 Replies)
Discussion started by: Shawn565
3 Replies
LEARN ABOUT HPUX
showkey
SHOWKEY(1) General Commands Manual SHOWKEY(1)NAME
showkey - examine the codes sent by the keyboard
SYNOPSIS
showkey [-h|--help] [-a|--ascii] [-s|--scancodes] [-k|--keycodes] [-V|--version]
DESCRIPTION
showkey prints to standard output either the scan codes or the keycode or the `ascii' code of each key pressed. In the first two modes the
program runs until 10 seconds have elapsed since the last key press or release event, or until it receives a suitable signal, like SIGTERM,
from another process. In `ascii' mode the program terminates when the user types ^D.
When in scancode dump mode, showkey prints in hexadecimal format each byte received from the keyboard to the standard output. A new line is
printed when an interval of about 0.1 seconds occurs between the bytes received, or when the internal receive buffer fills up. This can be
used to determine roughly, what byte sequences the keyboard sends at once on a given key press. The scan code dumping mode is primarily
intended for debugging the keyboard driver or other low level interfaces. As such it shouldn't be of much interest to the regular end-user.
However, some modern keyboards have keys or buttons that produce scancodes to which the kernel does not associate a keycode, and, after
finding out what these are, the user can assign keycodes with setkeycodes(8).
When in the default keycode dump mode, showkey prints to the standard output the keycode number or each key pressed or released. The kind
of the event, press or release, is also reported. Keycodes are numbers assigned by the kernel to each individual physical key. Every key
has always only one associated keycode number, whether the keyboard sends single or multiple scan codes when pressing it. Using showkey in
this mode, you can find out what numbers to use in your personalized keymap files.
When in `ascii' dump mode, showkey prints to the standard output the decimal, octal, and hexadecimal value(s) of the key pressed, according
to he present keymap.
OPTIONS -h --help
showkey prints to the standard error output its version number, a compile option and a short usage message, then exits.
-s --scancodes
Starts showkey in scan code dump mode.
-k --keycodes
Starts showkey in keycode dump mode. This is the default, when no command line options are present.
-a --ascii
Starts showkey in `ascii' dump mode.
-V --version
showkey prints version number and exits.
2.6 KERNELS
In 2.6 kernels key codes lie in the range 1-255, instead of 1-127. Key codes larger than 127 are returned as three bytes of which the low
order 7 bits are: zero, bits 13-7, and bits 6-0 of the key code. The high order bits are: 0/1 for make/break, 1, 1.
In 2.6 kernels raw mode, or scancode mode, is not very raw at all. Scan codes are first translated to key codes, and when scancodes are
desired, the key codes are translated back. Various transformations are involved, and there is no guarantee at all that the final result
corresponds to what the keyboard hardware did send. So, if you want to know the scan codes sent by various keys it is better to boot a 2.4
kernel. Since 2.6.9 there also is the boot option atkbd.softraw=0 that tells the 2.6 kernel to return the actual scan codes.
SEE ALSO loadkeys(1), dumpkeys(1), keymaps(5), setkeycodes(8)
1 Feb 1998 SHOWKEY(1)