Sponsored Content
Top Forums UNIX for Beginners Questions & Answers awk script to extract a column, replace one of the header and replace year(from ddmmyy to yyyy) Post 303034972 by Kunalcurious on Friday 10th of May 2019 09:31:18 AM
Old 05-10-2019
These are some lines from the file:


"PERIOD_END_DATE" "PERIOD_END_DATE"
"17-FEB-19" "17-FEB-19"
"24-FEB-19" "24-FEB-19"
"24-FEB-19" "24-FEB-19"
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

changing YYYY-MM-DD to DDMMYY

Hi all Wonder if you can help , I have a comma delimited file where the 13th to the 31st character of each line is populated by the date and time."2004-07-21 09:39:06" 16-5-141551,2004-07-21 09:39:06,8815 22-5-340394,2004-07-22 09:39:41,8001 22-5-340433,2004-07-23 09:42:20,1701 I have... (3 Replies)
Discussion started by: hcclnoodles
3 Replies

2. Shell Programming and Scripting

awk/sed column replace using column header - help

$ cat log.txt Name Age Sex Lcation nfld alias xsd CC 25 M XYZ asx KK Y BB 21 F XAS awe SS N SD 21 M AQW rty SD A How can I replace the column with header "Lcation" with the column with header "alias" and delete the "alias" column? so that the final output will become: Name Age Sex... (10 Replies)
Discussion started by: jkl_jkl
10 Replies

3. Shell Programming and Scripting

awk to replace part of a column

dear all, I'm trying to use Awk to eliminate the last two characters from the first column in a file. This two characters are "-1" and I need to eliminate them from each row that I have in the files. The files have two columns and look like: ID_090-1 2 ID_3787-1 4 ID_0098-1 1 ID_12-1 4 I... (4 Replies)
Discussion started by: gabrysfe
4 Replies

4. Shell Programming and Scripting

Replace the nth column date as MM/DD/YYYY

Hi, I need some unix command to replace the following thing. cat test.dat 1234|test|8/19/2009|8/20/2009|test 1234|test|8/9/2009|8/21/2009|test 1234|test|8/1/2009|8/2/2009|test after processing 1234|test|08/19/2009|08/20/2009|test 1234|test|08/09/2009|08/21/2009|test... (6 Replies)
Discussion started by: anshaa
6 Replies

5. Shell Programming and Scripting

How to Replace the value of a column using awk command?

Hi cat test.txt H|123|341|567|asfg D|dfg|trtyy|errt D|ert|frty|wer Here I need to replace the third column value with 100 of the first record only and while printing I need to print the full file content also..I am expecting a result like this H|123|100|567|asfg D|dfg|trtyy|errt... (3 Replies)
Discussion started by: saj
3 Replies

6. Shell Programming and Scripting

Replace a column with a value by ignoring the header lines

i have a file in the gz format , the content of the file is as follow. gzcat f1.gz # 1.name # 2.location # 3.age # 4.dob . . . . . . . . . # 43.hobbies < Aravind,33,chennai,09091980, , , , , , , surfing> (5 Replies)
Discussion started by: aravindj80
5 Replies

7. Shell Programming and Scripting

Trying to get an awk script to replace values in column

I'm trying to make an awk script to compare values I've set as var1, var2, and var3 earlier in the script to the values in the userinputted column of four text files called Node1.txt, Node2.txt, Node3.txt, and Node4.txt and then replace the values in that userinputted column with either ttt or gcc,... (8 Replies)
Discussion started by: Eric1
8 Replies

8. Shell Programming and Scripting

Get extract and replace column with link in a column where it exists

hi i have sample data a,b,c,d,e,g h http://mysite.xyx z,b,d,f,e,s t http://123124# a,b,c,i,m,nothing d,i,j,e,w,nothing output expected is a,b,c,d,e,http://mysite.xyx z,b,d,f,e,http://123124# a,b,c,i,m,nothing d,i,j,e,w,nothing i can get only links using grep -o 'http.*' i... (8 Replies)
Discussion started by: zozoo
8 Replies

9. UNIX for Beginners Questions & Answers

Extract a column and multiple by 1000 and replace it on same file

Hi All, I need to extract a position in the file and multiple the value by 1000 and the replace it . Original 0010001200084701217637306521200000000000010010000000 ---> 000847 * 1000 0010012700086001213437404323000000000000001001000000 ---> 000860 * 1000... (2 Replies)
Discussion started by: arunkumar_mca
2 Replies

10. Shell Programming and Scripting

Bash script - How to update header of scripts in one pass - multiline search/replace

Hello. A find command return a list of file. For each fileReplace the content starting with the first "§" (of two) ending with last "ɸ" (of two), regardless of the content ( five lines ) by the following content (exactly) : §2019_08_23§ # # ... (8 Replies)
Discussion started by: jcdole
8 Replies
HIME-SETUP(1)						    hime input method platform						     HIME-SETUP(1)

NAME
hime-setup - configuration tools of hime SYNOPSIS
hime-setup DESCRIPTION
hime-setup is the default configuration tool of hime. Another configuring method is writing conffiles in $HOME/.config/hime/config. See CONFFILES section for further information. CONFFILES
Those conffiles below will be created automatically by hime-setup, except hime-bell-volume and hime-sound-play-overlap. If you want to write conffiles by yourself, please make sure you have the config directory: mkdir -p $HOME/.config/hime/config After that, you may try: echo zo > $HOME/.config/hime/config/phonetic-keyboard Thus you make a phonetic-keyboard file with its content zo, which means you select the standard style with 1234 selection method. All available conffiles are listed, and default options are showed bold. $HOME/.config/hime/config/default-input-method number Default input method when hime is called. OPTIONS MEANINGS 1 Chanjei input method, version 3 2 Chanjei input method, version 5 3 Bopomofo input method 4 Symbols virtual keyboard 5 Pinyin input method 6 Tsin intelligent Bopomofo input method 7 Dayi input method 8 Array input method, 30 keys version 9 Boshiamy input method, aka Liu's input method 10 Direct input for UTF-32 (U+) or Big-5 characters 11 Simple Chanjei input method 12 Japanese anthy input method 13 Greek letters input method 14 Latin letters input method 15 Jyutping input method $HOME/.config/hime/config/hime-bell-volume number Volume of bell ring, between -100 to 100. Default is -97. $HOME/.config/hime/config/hime-capslock-lower boolean Input lower-case letters when Caps Lock key is ON. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/hime-eng-phrase-enabled boolean Enable Alt-Shift phrases in alphabet-numeric mode. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/hime-font-name string Default font. OPTIONS MEANINGS sans Sans-serif serif Serif $HOME/.config/hime/config/hime-font-size number Font size of character-selection area. Default is 16. $HOME/.config/hime/config/hime-font-size-gtab-in number Font size of key codes input area in gtab input methods (Chanjei IM, Array IM, etc.). Default is 10. $HOME/.config/hime/config/hime-font-size-pho-near number Font size of similar-phonetic character selection in Tsin IM. Default is 14. $HOME/.config/hime/config/hime-font-size-symbol number Font size of symbol-selection window. Default is 12. $HOME/.config/hime/config/hime-font-size-tsin-pho-in number Font size of phonetic input area in Bopomofo and Tsin IM. Default is 10. $HOME/.config/hime/config/hime-font-size-tsin-presel number Font size of phrase pre-selection window in Tsin IM. Default is 16. $HOME/.config/hime/config/hime-im-toggle-keys number Toggle Key for IM window ON/OFF. OPTIONS MEANINGS 0 Control-Space 1 Shift-Space 2 Alt-Space 3 Windows-Space $HOME/.config/hime/config/hime-init-im-enabled boolean Enable input method mode without pressing toggle keys. This option is not available in XIM mode. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/hime-inner-frame boolean Show frame border in hime window. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/hime-input-style number Window style of hime. OPTIONS MEANINGS 1 OverTheSpot (Follow the cursor) 2 Root (Fixed index window) $HOME/.config/hime/config/hime-pop-up-win boolean Dynamic pop up window. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/hime-remote-client boolean Use hime in remote applications. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/hime-root-x number Window position in X-axis when window style is Root (Fixed index window). Default is 1600. $HOME/.config/hime/config/hime-root-y number Window position in Y-axis when window style is Root (Fixed index window). Default is 1200. $HOME/.config/hime/config/hime-sel-key-color hex Color of selection Key. OPTIONS MEANINGS #FF0000 Red #00FF00 Green #0000FF Blue #FFFF00 Yellow #FF00FF Magenta #00FFFF Cyan $HOME/.config/hime/config/hime-shift-space-eng-full boolean Toggle to double-wide English character mode with Shift-Space. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/hime-sound-play-overlap boolean Play all sound when text-to-speech is enabled. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/hime-status-tray boolean Show hime status in system tray. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/hime-win-color-bg hex Background color of hime window. Default is #005BFF. $HOME/.config/hime/config/hime-win-color-fg hex Foreground color of hime window. OPTIONS MEANINGS #FF0000 Red #00FF00 Green #0000FF Blue #FFFF00 Yellow #FF00FF Magenta #FFFFFF White $HOME/.config/hime/config/hime-win-color-use boolean Customized colors in hime window. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/hime-win-sym-click-close boolean Close symbol-selection window after choosing a symbol. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/gtab-auto-select-by_phrase number Auto-select according to Tsin phrase database in gtab input methods. OPTIONS MEANINGS 0 Auto-selected by definition in .gtab file. 1 ON 2 OFF $HOME/.config/hime/config/gtab-disp-im-name boolean Display input method name in gtab input methods. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/gtab-disp-key-codes boolean Show all possible key codes of character in gtab input methods. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/gtab-disp-partial-match number Display partial matched characters in gtab input methods. OPTIONS MEANINGS 0 Auto-selected by definition in .gtab file. 1 ON 2 OFF $HOME/.config/hime/config/gtab-dup-select-bell boolean Bell ring when multiple selections are available in gtab input methods. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/gtab-hide-row2 boolean Hide second row of window in gtab input methods. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/gtab-in-row1 boolean Show key codes in first row of window in gtab input methods. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/gtab-invalid-key-in boolean Clear key codes input area when invalid key and Space key are pressed. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/gtab-pho-query boolean Use ` to query same pronunciation characters. For gtab input methods. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/gtab-phrase-pre-select boolean Show candidate phrases before pressing endkey (Space key). For gtab input methods. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/gtab-pre-select number Show candidate characters before pressing endkey (Space key). For gtab input methods. OPTIONS MEANINGS 0 Auto-selected by definition in .gtab file. 1 ON 2 OFF $HOME/.config/hime/config/gtab-press-full-auto-send number Auto-send character when key codes input area is filled in gtab input methods. OPTIONS MEANINGS 0 Auto-selected by definition in .gtab file. 1 ON 2 OFF $HOME/.config/hime/config/gtab-que-wild-card boolean Use ? as wildcard. For gtab input methods. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/gtab-que-wild-card-asterisk boolean Use * as wildcard. For gtab input methods. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/gtab-shift-phrase-key boolean Use single Shift key to input Alt-Shift phrases in gtab input methods. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/gtab-space-auto-first number Function of Space Key in gtab input methods. OPTIONS MEANINGS 0 Auto-selected by definition in .gtab file. 1 Send first character in Boshiamy input method. 2 Send first character in character-selection area. 4 Does not send first character. (For Array input method.) $HOME/.config/hime/config/gtab-unique-auto-send number Auto send characters when there is only one choice in gtab input methods. OPTIONS MEANINGS 0 Auto-selected by definition in .gtab file. 1 ON 2 OFF $HOME/.config/hime/config/gtab-vertical-select number Vertical selection window in gtab input methods. OPTIONS MEANINGS 0 Auto-selected by definition in .gtab file. 1 ON 2 OFF $HOME/.config/hime/config/pho-hide-row2 boolean Hide second row of window in Bopomofo and Tsin IM. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/pho-in-row1 boolean Show key codes in first row of window in Bopomofo IM. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/phonetic-char-dynamic-sequence boolean Dynamic character sequence adjustment in Bopomofo and Tsin IM. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/phonetic-huge-tab boolean Input all Traditional Chinese, Simplified Chinese, and Japanese characters provided by pho-huge.tab in Bopomofo and Tsin IM. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/phonetic-keyboard string Key codes arrangement style in Bopomofo, Tsin, and Japanese anthy IM. OPTIONS MEANINGS zo Standard style with 1234 selection method zo-asdf Standard style with asdf selection method et Eten style with 1234 selection method et-asdf Eten style with asdf selection method et26 Eten 26 keys style with 1234 selection method et26-asdf Eten 26 keys style with asdf selection method hsu Mr. Hsu's style (Kuo-Yin IM, Natural Bopomofo IM) pinyin Phonetic Pinyin style with 1234 selection method pinyin-asdf Phonetic Pinyin style with asdf selection method dvorak Dvorak style ibm IBM style mitac Mitac style $HOME/.config/hime/config/phonetic-speak boolean Enable text-to-speech. You have to install speech data for this feature. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/phonetic-speak-sel string Speech data filename for text-to-speech. $HOME/.config/hime/config/tsin-buffer-editing-mode boolean VI-like editing mode in Tsin IM. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/tsin-buffer-size number Size of buffer (editing area) in Tsin IM. Default is 40. $HOME/.config/hime/config/tsin-chinese-english-toggle_key number Toggle key for Chinese/English mode in Tsin IM. OPTIONS MEANINGS 1 Caps Lock key 2 Tab key 4 Shift key (Not available in XIM mode). 8 Left Shift key (Not available in XIM mode). 16 Right Shift key (Not available in XIM mode). $HOME/.config/hime/config/tsin-cursor-color hex Color of cursor in Tsin IM. OPTIONS MEANINGS #FF0000 Red #00FF00 Green #0000FF Blue #FFFF00 Yellow #FF00FF Magenta #00FFFF Cyan $HOME/.config/hime/config/tsin-phrase-line-color hex Color of phrase-underline in Tsin IM. Default is #0000FF. $HOME/.config/hime/config/tsin-phrase-pre-select boolean Show phrase pre-selection window in Tsin IM. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/tsin-space-opt number Function of Space key in Tsin IM. OPTIONS MEANINGS 1 Select other same phonetic characters. 2 Send space to buffer of Tsin IM. $HOME/.config/hime/config/tsin-tab-phrase-end boolean Use Escape key or Tab key to stop phrase-auto-selection in Tsin IM. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/tsin-tail-select-key boolean Show selection keys follows choices in Tsin IM. OPTIONS MEANINGS 1 ON 0 OFF $HOME/.config/hime/config/tsin-tone-char-input boolean Input tone sympols of Bopomofo in Tsin IM. OPTIONS MEANINGS 1 ON 0 OFF SEE ALSO
hime(1) HIME 0.8 2 FEB 2009 HIME-SETUP(1)
All times are GMT -4. The time now is 06:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy