Ir-common.c

From LinuxTVWiki

Jump to: navigation, search

Current mapping

There are some known problems with the way some keys are mapped currently:

  • KEY_SHUFFLE is meant to shuffle, not to take a snapshot;
  • KEY_POWER is dangerous to use, since X11 display managers understand this as the power off key and turns computer off;
  • Several keyboards have up/down/left/right keys meant to control volume and channel. However, some keymaps are using they as normal keyboard up/down/left/right keys, instead of channel up/down and volume up/down;
  • KEY_A to KEY_Z attributions are specific to some random application, since those IR's don't contain alphabetic keys;
  • There are some important missing keys at include/linux/input.h (for example, there's no key for Picture in Picture, nor a Stereo/Mono key);
  • This list is not complete, since there are other IR mappings on other files.

This is the current keycode mapping found at ir-common.c by Aug, 27 2009:

Keycode Number of occurences Printed label
KEY_ZOOM 12 FULLSCREEN
KEY_SHUFFLE 11 SNAPSHOT
KEY_MUTE 9 MUTE
KEY_POWER 9 POWER
KEY_PLAY 7 PLAY
KEY_RECORD 7 RECORD
KEY_STOP 7 STOP
KEY_AGAIN 6 RECALL
KEY_FASTFORWARD 6 FORWARD >>
KEY_RECORD 6 RECORDING
KEY_REWIND 6 BACKWARD <<
KEY_SEARCH 6 SCAN
KEY_AUDIO 5 MUSIC
KEY_PAUSE 5 PAUSE
KEY_SEARCH 5 AUTOSCAN
KEY_AUDIO 4 AUDIO
KEY_CHANNELDOWN 4 CHANNEL / PROGRAM -
KEY_CHANNELUP 4 CHANNEL / PROGRAM +
KEY_ENTER 4 ENTER
KEY_ENTER 4 OK
KEY_LAST 4 100
KEY_LAST 4 RECALL
KEY_TEXT 4 TELETEXT
KEY_TUNER 4 TV/FM
KEY_VIDEO 4 VIDEO
KEY_LIST 3 -/--
KEY_LIST 3 SOURCE
KEY_PAUSE 3 TIMESHIFT
KEY_RADIO 3 FM
KEY_RADIO 3 FM RADIO
KEY_T 3 TIME SHIFT
KEY_TUNER 3 SOURCE
KEY_TV2 3 PIP
KEY_AGAIN 2 LOOP
KEY_AUDIO 2 STEREO
KEY_BACKSPACE 2 RECALL
KEY_CHANNELDOWN 2 CH-
KEY_CHANNELDOWN 2 CHANNEL -
KEY_CHANNELDOWN 2 CHANNEL DOWN
KEY_CHANNELDOWN 2 CHN UP
KEY_CHANNELDOWN 2 DOWN
KEY_CHANNELUP 2 CH+
KEY_CHANNELUP 2 CHANNEL +
KEY_CHANNELUP 2 CHANNEL UP
KEY_CHANNELUP 2 CHN DOWN
KEY_CHANNELUP 2 UP
KEY_DOWN 2 DOWN
KEY_DOWN 2 VIDEO DEFAULT
KEY_DVD 2 DVD
KEY_EPG 2 GUIDE
KEY_ESC 2 CANCEL
KEY_GREEN 2 GREEN
KEY_HOME 2 HOME
KEY_INFO 2 PREVIEW
KEY_LANGUAGE 2 MTS
KEY_LIST 2 RECALL
KEY_MEDIA 2 SOURCE
KEY_MODE 2 STEREO
KEY_MUTE 2 MUTE/UNMUTE
KEY_NEXT 2 NEXT
KEY_NEXTSONG 2
KEY_NUMLOCK 2 -/--
KEY_OK 2 OK
KEY_PLAYPAUSE 2 PLAY/PAUSE
KEY_PREVIOUS 2 PREVIOUS CHANNEL
KEY_PREVIOUSSONG 2 <
KEY_PRINT 2 PREVIEW
KEY_RED 2 RED
KEY_REWIND 2 <<
KEY_REWIND 2 REWIND
KEY_SAVE 2 SCREENSHOT
KEY_SCREEN 2 FULLSCREEN
KEY_SELECT 2 SELECT
KEY_SLEEP 2 SHUTDOWN
KEY_SUBTITLE 2 CC
KEY_SWITCHVIDEOMODE 2 SWITCH INPUTS
KEY_TEXT 2 MIN
KEY_TV 2 LIVE TV
KEY_UP 2 UP
KEY_UP 2 VIDEO SETTING
KEY_VIDEO 2 VIDEO SOURCE
KEY_VOLUMEDOWN 2 LEFT
KEY_VOLUMEDOWN 2 VOL-
KEY_VOLUMEDOWN 2 VOLUME -
KEY_VOLUMEDOWN 2 VOL UP
KEY_VOLUMEUP 2 RIGHT
KEY_VOLUMEUP 2 VOL+
KEY_VOLUMEUP 2 VOL DOWN
KEY_VOLUMEUP 2 VOLUME +
KEY_ZOOM 2 FULL
KEY_ZOOM 2 ZOOM
KEY_0 1 0 / ENTER
KEY_0 1 10
KEY_1 1 1
KEY_2 1 2 / UP ARROW
KEY_3 1 3
KEY_3 1 TWO KEYS HAVE THE SAME CODE: 3 AND LEFT
KEY_4 1 4 / LEFT ARROW
KEY_4 1 TWO KEYS HAVE THE SAME CODE: 3 AND RIGHT
KEY_5 1 5
KEY_6 1 6 / RIGHT ARROW
KEY_7 1 7
KEY_8 1 8 / DOWN ARROW
KEY_9 1 9
KEY_A 1 FAST
KEY_A 1 TV ON HAUPPAUGE
KEY_AGAIN 1 CH RTN - CHANNEL RETURN
KEY_AGAIN 1 REPEAT
KEY_ANGLE 1 (NO LABEL MAY BE USED AS THE PAUSE BUTTON)
KEY_ANGLE 1 SIZE
KEY_ANGLE 1 SWAP (NO LABEL ON KEY)
KEY_ANGLE 1 ZOOM -
KEY_ARCHIVE 1 TIME SHIFTING
KEY_AUDIO 1 ((*))
KEY_AUDIO 1 AUDIO SOURCE
KEY_AUDIO 1 L/R
KEY_AUX 1 PHOTO
KEY_B 1 RECALL
KEY_BACK 1 FM SCAN <<
KEY_BACK 1 REWIND <<
KEY_BACK 1 REWIND ( <<< )
KEY_BACK 1 ROW 4
KEY_BACKSPACE 1 BACK
KEY_BACKSPACE 1 REWIND
KEY_BLUE 1 AP4
KEY_BLUE 1 BLUE
KEY_BLUE 1 BLUE / CANCEL
KEY_BLUE 1 BLUE KEY
KEY_BLUE 1 BLUE/PICTURE
KEY_BOOKMARKS 1 SNAPSHOT KEY
KEY_BRIGHTNESSDOWN 1 BRIGHTNESS DECREASE
KEY_BRIGHTNESSUP 1 BRIGHTNESS INCREASE
KEY_C 1 CAP
KEY_C 1 (RED)
KEY_CAMERA 1 CAMERA ICON
KEY_CAMERA 1 CAPTURE
KEY_CAMERA 1 CAPTURE VIDEO
KEY_CD 1 CD
KEY_CHANNEL 1 ALT / CHANNEL
KEY_CHANNEL 1 CHANNEL / PROGRAM (JAPAN: 11)
KEY_CHANNEL 1 CHANNEL SURF
KEY_CHANNEL 1 CH SURFING / BOOKMARK / MEMO
KEY_CHANNEL 1 SOURCE (OLD BLACK REMOTE)
KEY_CHANNEL 1 SURF
KEY_CHANNELDOWN 1 CHANNEL-
KEY_CHANNELDOWN 1 CHANNEL/PAGE-
KEY_CHANNELDOWN 1 CH.TRACKING DOWN
KEY_CHANNELUP 1 CHANNEL
KEY_CHANNELUP 1 CHANNEL/PAGE+
KEY_CHANNELUP 1 CH.TRACKING UP
KEY_CLEAR 1 BOSS KEY
KEY_CLEAR 1 CLEAR
KEY_CLEAR 1 RESET
KEY_CLOSE 1 MINIMIZE
KEY_CLOSECD 1 -> )
KEY_CYCLEWINDOWS 1 LABELED ALT-TAB ON REMOTE
KEY_CYCLEWINDOWS 1 MINIMIZE ON HAUPPAUGE
KEY_D 1 DESKTOP
KEY_D 1 FAV
KEY_DIGITS 1 PLUS
KEY_DIGITS 1 SINGLE DOUBLE TRIPPLE DIGIT
KEY_DIGITS 1 XXX
KEY_DOT 1 .
KEY_DOT 1 100
KEY_DOT 1 . (DECIMAL DOT)
KEY_DOWN 1 CHANNEL -
KEY_DOWN 1 CHANNEL DOWN
KEY_DOWN 1 VVDN AND <<
KEY_DVD 1 DVD MENU
KEY_EDIT 1 AUTOSCAN
KEY_ENTER 1 11
KEY_ENTER 1 LABELED START WITH A GREEN
KEY_ENTER 1 MUTE
KEY_ENTER 1 PINNACLE LOGO
KEY_ENTER 1 RETURN
KEY_ENTER 1 VCR MODE ON ZENITH
KEY_EPG 1 LABELED ?
KEY_EPG 1 LABELED GUIDE ON REMOTE
KEY_EPG 1 ROW 3
KEY_EQUAL 1 SYNC
KEY_ESC 1 12
KEY_ESC 1 GO UP A LEVEL?
KEY_EXIT 1 BACK
KEY_EXIT 1 BACK/EXIT
KEY_EXIT 1 EXIT
KEY_EXIT 1 OPEN/CLOSE SOFTWARE
KEY_F 1 FULL
KEY_F 1 FULLSCREEN
KEY_F 1 FUNTION
KEY_F 1 SURF CH
KEY_F13 1 16:09:00
KEY_F14 1 14:09:00
KEY_F15 1 AD
KEY_F16 1 CHAPTER
KEY_F17 1 PICTURE IN PICTURE
KEY_F18 1 CAPTURE
KEY_F19 1 WEB
KEY_F21 1 LIVE TIMESHIFT
KEY_F21 1 +VOL
KEY_F22 1 MIN TIMESHIFT
KEY_F22 1 -VOL
KEY_F23 1 +CH
KEY_F23 1 TIMESHIFT
KEY_F24 1 -CH
KEY_F24 1 NORMAL TIMESHIFT
KEY_FASTFORWARD 1 >>
KEY_FASTFORWARD 1 FOWARD
KEY_FAVORITES 1 LABELED CPF ON REMOTE
KEY_FAVORITES 1 TV WALL
KEY_FORWARD 1 >>
KEY_FORWARD 1 FM SCAN >>
KEY_FORWARD 1 FORWARD
KEY_FORWARD 1 FORWARD >>
KEY_FORWARD 1 FORWARD ?
KEY_FORWARD 1 FORWARD ( >>> )
KEY_G 1 TAB
KEY_GOTO 1 MTS
KEY_GOTO 1 OSD
KEY_GOTO 1 POINTING ARROW
KEY_GREEN 1 AP2
KEY_GREEN 1 C
KEY_GREEN 1 GREEN BUTTON
KEY_GREEN 1 GREEN/VIDEO
KEY_HELP 1 HELP
KEY_HOME 1 WIN START MENU
KEY_INFO 1 DISPLAY INFORMATION
KEY_INFO 1 LABELED MORE ON REMOTE
KEY_INFO 1 OSD
KEY_KP0 1 0
KEY_KP1 1 1
KEY_KP2 1 2
KEY_KP3 1 3
KEY_KP4 1 4
KEY_KP5 1 5
KEY_KP6 1 6
KEY_KP7 1 7
KEY_KP8 1 8
KEY_KP9 1 9
KEY_KPMINUS 1 <<<
KEY_KPMINUS 1 FINE TUNE <<<<
KEY_KPMINUS 1 FINE TUNE -
KEY_KPMINUS 1 (NOT NAMED <<<<<)
KEY_KPMINUS 1 ZOOM OUT
KEY_KPPLUS 1 >>>
KEY_KPPLUS 1 +
KEY_KPPLUS 1 100
KEY_KPPLUS 1 FINE TUNE >>>>
KEY_KPPLUS 1 FINE TUNE +
KEY_KPPLUS 1 (NOT NAMED >>>>>)
KEY_KPPLUS 1 ZOOM IN
KEY_KPPLUSMINUS 1 CH +/-
KEY_L 1 LIVE
KEY_LANGUAGE 1 1ST / 2ND LANGUAGE
KEY_LANGUAGE 1 DVD LANG
KEY_LANGUAGE 1 MTS/SAP / AUDIO / AUTOSEEK
KEY_LANGUAGE 1 MTS SELECT
KEY_LANGUAGE 1 SAP
KEY_LANGUAGE 1 SAP (SECOND AUDIO PROGRAM)
KEY_LANGUAGE 1 STEREO
KEY_LAST 1 RECALL (LAST CHANNEL
KEY_LAST 1 ROW 6
KEY_LEFT 1 <-
KEY_LEFT 1 ->
KEY_LEFT 1 AND CH-
KEY_LEFT 1 FM TUNING <
KEY_LEFT 1 LEFT
KEY_LEFT 1 ROW 5
KEY_LEFT 1 SNAPSHOT
KEY_LEFT 1 VOLUME -
KEY_LEFT 1 VOLUME DOWN
KEY_M 1 MULTI
KEY_M 1 MUTE
KEY_MACRO 1 MAXIMIZE/MINIMIZE (YELLOW)
KEY_MACRO 1 RECALL
KEY_MEDIA 1 MTS
KEY_MEDIA 1 PC/TV
KEY_MEDIA 1 PIP (PICTURE IN PICTURE
KEY_MEDIA 1 PIP (PICTURE-IN-PICTURE)
KEY_MEDIA 1 TURN ON/OFF APP
KEY_MENU 1 2ND CONTROLS (USA: MENU)
KEY_MENU 1 DVD/MENU
KEY_MENU 1 FULLSCREEN ON HAUPPAUGE
KEY_MENU 1 FUNCTION
KEY_MENU 1 LABELED DVDMENU ON REMOTE
KEY_MENU 1 SHOW/HIDE CONTROL
KEY_MHP 1 LABELLED PICTURE
KEY_MHP 1 PICTURE
KEY_MODE 1 4:3 16:9 SELECT
KEY_MODE 1 AIR/CABLE
KEY_MODE 1 AV SOURCE OR REWIND
KEY_MODE 1 FUNC
KEY_MODE 1 NUM/MEMO
KEY_MODE 1 PIP
KEY_MODE 1 SOURCE
KEY_MODE 1 STEREO > MAIN
KEY_MODE 1 STEREO/MONO
KEY_MODE 1 TV
KEY_MODE 1 TV/AV
KEY_MODE 1 TV/FM
KEY_MODE 1  ? TV/RADIO
KEY_MUTE 1 MUTE / DEMUTE
KEY_NEXT 1 ALSO FAST FORWARD
KEY_NEXT 1
KEY_NEXT 1 FORWARD
KEY_NEXT 1
KEY_NEXTSONG 1 SKIP ON REMOTE
KEY_O 1 TOP
KEY_O 1 VOL+
KEY_OK 1 ALSO LABELED AS PAUSE
KEY_OK 1 CH RTN
KEY_OPTION 1 RESERVED ON HAUPPAUGE
KEY_P 1 PAUSE
KEY_PAGEDOWN 1 CH-
KEY_PAGEUP 1 16-CH PREV
KEY_PAGEUP 1 CH+
KEY_PAUSE 1 PLAY/PAUSE
KEY_PAUSE 1 TIMESHIFT/PAUSE
KEY_PC 1 PC/TV
KEY_PLAY 1 >
KEY_PLAY 1 PAUSE
KEY_PLAY 1 PLAY/PAUSE
KEY_PLAYPAUSE 1
KEY_PLAYPAUSE 1 FREEZE
KEY_PLAYPAUSE 1 PAUSE
KEY_PLAYPAUSE 1 PLAY
KEY_PLAYPAUSE 1 STOP
KEY_POWER 1 COMPUTER POWER
KEY_POWER 1 RADIO ON HAUPPAUGE
KEY_POWER 1 STANDBY
KEY_POWER 1 SYSTEM POWER (GREEN BUTTON)
KEY_POWER 1 THE BUTTON THAT READS CLOSE
KEY_POWER2 1 TV ON/OFF BUTTON ON REMOTE
KEY_PREVIOUS 1 ALSO REWIND
KEY_PREVIOUS 1 <<
KEY_PREVIOUS 1 PREV
KEY_PREVIOUS 1 PREV. CH ON ZENITH / SOURCE ON HAUPPAUGE
KEY_PREVIOUS 1 PREVIOUS
KEY_PREVIOUS 1 RECALL
KEY_PREVIOUS 1 REW
KEY_PREVIOUS 1 ROW 2
KEY_PREVIOUS 1 VCR MODE ON ZENITH
KEY_PREVIOUSSONG 1 << REPLAY ON REMOTE
KEY_PROG1 1 1
KEY_PROG1 1 APP
KEY_PROG1 1 KWORLD KEY
KEY_PROG1 1 TELETEXT
KEY_PROG2 1 2
KEY_PROG3 1 3
KEY_PVR 1 PICTURE
KEY_Q 1 OFF
KEY_Q 1 POWER
KEY_R 1 REC
KEY_RADIO 1 RADIO
KEY_RADIO 1 TV/FM
KEY_RADIO 1 TV/RADIO
KEY_RADIO 1 XXX
KEY_RECORD 1 CAPTURE
KEY_RECORD 1 O (RED)
KEY_RECORD 1 RECORD/PAUSE
KEY_RECORD 1 ROW 1
KEY_RECORD 1 THESE KEYS ARE ONLY IN THE BLACK REMOTE
KEY_RECORD 1 XXX
KEY_RED 1 AP1
KEY_RED 1 B
KEY_RED 1 RED BUTTON
KEY_RED 1 RED/TV
KEY_REFRESH 1 DEFAULT
KEY_REFRESH 1 RESET
KEY_RESERVED 1
KEY_RESERVED 1 1/2/3 DIGITS (JAPAN: 10)
KEY_RESERVED 1 BALANCE LEFT
KEY_RESERVED 1 BALANCE RIGHT
KEY_RESERVED 1 BASS -
KEY_RESERVED 1 BASS +
KEY_RESERVED 1 COLOUR SATURATION -
KEY_RESERVED 1 COLOUR SATURATION +
KEY_RESERVED 1 CONTRAST -
KEY_RESERVED 1 CONTRAST +
KEY_RESERVED 1 CRISPENER ON/OFF
KEY_RESERVED 1 DECREMENT (USA)
KEY_RESERVED 1 ERASE
KEY_RESERVED 1 EXTERNAL 1
KEY_RESERVED 1 EXTERNAL 2
KEY_RESERVED 1 INCREMENT (USA)
KEY_RESERVED 1 MONO / STEREO (USA)
KEY_RESERVED 1 PIP DISPLAY MODE
KEY_RESERVED 1 PIP SHIFT
KEY_RESERVED 1 P.P. (PERSONAL PREFERENCE)
KEY_RESERVED 1 RF SWITCH/PIP SELECT
KEY_RESERVED 1 SPACIAL STEREO ON/OFF
KEY_RESERVED 1 SYSTEM SELECT
KEY_RESERVED 1 TIMED PAGE/CHANNEL CLCK
KEY_RESERVED 1 TINT / HUE -
KEY_RESERVED 1 TINT/HUE +
KEY_RESERVED 1 TREBLE -
KEY_RESERVED 1 TREBLE +
KEY_RESERVED 1 VIEW DATA MODE / ADVANCE
KEY_RESERVED 1 VOTE
KEY_RESERVED 1 WIND
KEY_RESTART 1 PLAYBACK / ANGLE / DEL
KEY_RESTART 1 RESET
KEY_REWIND 1 BACKWARD ?
KEY_REWIND 1 LOOP
KEY_RIGHT 1 <-
KEY_RIGHT 1 ->
KEY_RIGHT 1 > AND CH+
KEY_RIGHT 1 FM TUNING >
KEY_RIGHT 1 HIDE PANEL
KEY_RIGHT 1 RIGHT
KEY_RIGHT 1 VOLUME +
KEY_RIGHT 1 VOLUME UP
KEY_S 1 SNAP
KEY_S 1 SNAPSHOT
KEY_S 1 STOP
KEY_S 1 SVIDEO
KEY_SCREEN 1 POS
KEY_SEARCH 1 LOOP
KEY_SEARCH 1 SCAN / MENU / PLAYLIST
KEY_SEARCH 1 SEARCH +
KEY_SELECT 1 2 DIGIT SELECT
KEY_SELECT 1 ENTER
KEY_SELECT 1 SOURCE
KEY_SELECT 1 STEREO > SAP
KEY_SELECT 1 TOP RIGHT BUTTON
KEY_SETUP 1 FUNCTION
KEY_SETUP 1 SETUP KEY
KEY_SHUFFLE 1 AMOSTRA
KEY_SHUFFLE 1  ? DOUBLE-ARROW KEY
KEY_SHUFFLE 1 SNAPSHOT / SHUFFLE
KEY_SLEEP 1 CAPTURAR IMAGEM
KEY_SLEEP 1 FREEZE
KEY_SLEEP 1 MINIMIZE (OLD BLACK REMOTE)
KEY_SLEEP 1 SLEEP
KEY_SLEEP 1 SLEEPTIMER
KEY_SOUND 1 DVD SOUND
KEY_STOP 1 FREEZE
KEY_STOP 1 SQUARE
KEY_SUBTITLE 1 ALSO THE # KEY
KEY_SUBTITLE 1 CLOSED CAPTIONING / SUBTITLE / SEEK
KEY_SUBTITLE 1 DISPLAY
KEY_SUSPEND 1 SYSTEM STANDBY
KEY_SWITCHVIDEOMODE 1 SWITCH
KEY_SWITCHVIDEOMODE 1 VIDEO SOURCE
KEY_TEXT 1 CLOSED CAPTION/TELETEXT
KEY_TEXT 1 DVD TEXT
KEY_TEXT 1 KEYPAD ASTERISK AS WELL
KEY_TEXT 1 TELETEXT SUBMODE (JAPAN: 12)
KEY_TEXT 1 TIME SHIFT
KEY_TEXT 1 TTX
KEY_TIME 1 TIME SHIFT
KEY_TIME 1 TIMESHIFT
KEY_TUNER 1 AV
KEY_TUNER 1 AV SOURCE
KEY_TUNER 1 DIGITAL RADIO
KEY_TUNER 1 LIVE
KEY_TUNER 1 TV/FM
KEY_TUNER 1 TV/VCR ON ZENITH
KEY_TUNER 1 VIDEO SOURCE
KEY_TV 1 AIR/CBL
KEY_TV 1 DISPLAY
KEY_TV 1 DVR
KEY_TV 1 LABELED DTV ON REMOTE
KEY_TV 1 TV
KEY_TV 1 TV/FM
KEY_TV 1 XXX
KEY_TV2 1 TV2
KEY_UP 1 CHANNEL +
KEY_UP 1 CHANNEL UP
KEY_UP 1 ^^UP AND >>
KEY_VIDEO 1 A/V
KEY_VIDEO 1 DISPLAY
KEY_VIDEO 1 TV/VIDEO
KEY_VIDEO 1 VIDEOS
KEY_VIDEO 1 VIDEO SOURCE / EJECT / DELALL
KEY_VOLUMEDOWN 1 VOLUME-
KEY_VOLUMEDOWN 1 VOLUME DOWN
KEY_VOLUMEUP 1 VOLUME+
KEY_VOLUMEUP 1 VOLUME UP
KEY_W 1 TVMODE
KEY_WWW 1 TEXT
KEY_Y 1 TIME SHIFT OFF
KEY_YELLOW 1 AP3
KEY_YELLOW 1 YELLOW
KEY_YELLOW 1 YELLOW KEY
KEY_YELLOW 1 YELLOW/MUSIC
KEY_YELLOW 1 YELLOW / OK
KEY_Z 1 VOL-
KEY_ZOOM 1 ASPECT
KEY_ZOOM 1 FULLSCREEN AND STOP
KEY_ZOOM 1 HIDE PANNEL
KEY_ZOOM 1 ZOOM +
KEY_ZOOM 1 ZOOM/FULLSCREEN

The keys were parsed by this command:

 cat ir-keymaps.c|sed s,"'",,g|perl -ne 'if (m/KEY_/) { s/^.*(KEY_[^\s\,]+)\,*\s+/\1/; s,\*/,,; s,/\*,// ,; s/\s+/ /g; tr/a-z/A-Z/; s,\t,,g; s,\",,g; if (m,//,) { s,//,\t,; s/AUTO SCAN/AUTOSCAN/; s/FULL SCREEN/FULLSCREEN/; s/MCE (.*), ON Y04G0033/\1/; print "$_\n"; } }'|sort|uniq -c|perl -ne 's/^\s+(\d+)\s+([^\s]+)/\2\t\1/; print $_;'>/tmp/a.csv
Personal tools