Sponsored Content
Top Forums Shell Programming and Scripting Converting an scim .bin.user file to a stardict tab file possible with awk? Post 302501818 by hk008 on Saturday 5th of March 2011 12:59:23 AM
Old 03-05-2011
MySQL Thanks for the neat solution!

It turns out that the tab file requires a tab between the two column so I edited a bit.

awk '{v=($1==x)?v FS $2:v RS $1"\t"$2;x=$1}END{print v}' in_file > out_file

Smilie

Thanks to Corona688 too!

By the way anyone knows how to mark this thread as [SOLVED]?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

/bin/sh: /usr/bin/vi: No such file or directory when doing crontab

I just set up an ftp server with Red Hat 5.2. I am doing the work, I'm baby stepping, but it seems like every step I get stuck. Currently, I'm trying to set up a crontab job, but I'm getting the following message: /bin/sh: /usr/bin/vi: No such file or directory. I see that vi exists in /bin/vi,... (3 Replies)
Discussion started by: kwalter
3 Replies

2. Shell Programming and Scripting

Converting Tab delimited file to Comma delimited file in Unix

Hi, Can anyone let me know on how to convert a Tab delimited file to Comma delimited file in Unix Thanks!! (22 Replies)
Discussion started by: charan81
22 Replies

3. UNIX for Dummies Questions & Answers

Converting Space delimited file to Tab delimited file

Hi all, I have a file with single white space delimited values, I want to convert them to a tab delimited file. I tried sed, tr ... but nothing is working. Thanks, Rajeevan D (16 Replies)
Discussion started by: jeevs81
16 Replies

4. Shell Programming and Scripting

splitting tab-delimited file with awk

Hi all, I need help to split a tab-delimited list into separate files by the filename-field. The list is already sorted ascendingly by filename, an example list would look like this; filename001 word1 word2 filename001 word3 word4 filename002 word1 word2 filename002 word3 word4... (4 Replies)
Discussion started by: perkele
4 Replies

5. UNIX for Dummies Questions & Answers

Using awk to log transform a column in a tab-delimited text file?

How do I use awk to log transform the fifth column of a tab-delimited text file? Thanks! (1 Reply)
Discussion started by: evelibertine
1 Replies

6. Shell Programming and Scripting

Help with converting Pipe delimited file to Tab Delimited

I have a file which was pipe delimited, I need to make it tab delimited. I tried with sed but no use cat file | sed 's/|//t/g' The above command substituted "/t" not tab in the place of pipe. Sample file: abc|123|2012-01-30|2012-04-28|xyz have to convert to: abc 123... (6 Replies)
Discussion started by: karumudi7
6 Replies

7. Shell Programming and Scripting

Converting txt file into CSV using awk or sed

Hello folks I have a txt file of information about journal articles from different fields. I need to convert this information into a format that is easier for computers to manipulate for some research that I'm doing on how articles are cited. The file has some header information and then details... (8 Replies)
Discussion started by: ksk
8 Replies

8. Shell Programming and Scripting

Converting to matrix-like file using AWK

Hi, Needs for statistics, doing converting Here is a sample file Input : 1|A|17,94 1|B|22,59 1|C|56,93 2|A|63,71 2|C|23,92 5|B|19,49 5|C|67,58 expecting something like that Output : 1|A|17,94|B|22,59|C|56,93 2|A|63,71|B|0|C|23,92 5|A|0|B|19,49|C|67,58 (11 Replies)
Discussion started by: fastlane3000
11 Replies

9. Shell Programming and Scripting

If cmd in in "A/user/bin A/bin A/user/sbin" but not "B/user/bin B/bin B/user/sbin" directory print t

there are two directories A and B if cmd in in "A/user/bin A/bin A/user/sbin" but not "B/user/bin B/bin B/user/sbin" directory print them (1 Reply)
Discussion started by: yanglei_fage
1 Replies

10. UNIX for Beginners Questions & Answers

awk to parse current and next row in tab-delimited file

Hi there, I would like to use awk to reformat a tab-delimited file containing three columns as follows: Data file: sample 1 173 sample 269 530 sample 687 733 sample 1699 1779 Desired output file: sample 174..265, 531..686, 734..1698 I need the value... (5 Replies)
Discussion started by: emiley
5 Replies
scim(1)                                                            scim manuals                                                            scim(1)

NAME
scim -- smart common input method SYNOPSIS
scim -l scim [-c config] [-e|-ne engine] [-f frontend] [--no-socket] [-d] scim -h DESCRIPTION
Smart common input method (SCIM) is a platform for input methods. Input methods are useful for users who need to input characters that can't be represented by the keys or key combinations on the keyboard, and it's essential for languages that use ideograms, such as Chinese, Japanese and Korean (CJK), as their alphabets contain hundreds or thousands of characters. This is the main program of SCIM platform. It can be used to invoke the input method as well as list available input method modules. OPTIONS
Most options have both a short version and a long version, and they take the same arguments. -c | --config module Use specified Config module. -d | --daemon Run as a daemon. The program will exit and leave a daemon in the background if invoked with this option. -e | --engines module[,module]... Use specified IMEngine modules. Only the named module(s) will be loaded, separate module names with comma. -ne | --no-engines module[,module]... Use all IMEngine modules except specified ones. All modules except the named one(s) will be loaded, separate module names with comma. -f | --frontend module Use specified FrontEnd module. -h | --help Show summary of options. -l | --list Print the version number and list all the available modules, categorized in three groups -- FrontEnd, Config and IMEngine. --no-socket Do not start a socket FrondEnd module. ENVIRONMENT
XMODIFIERS Should be set to "@im=SCIM". Note that XMODIFIERS is case sensitive, and scim need uppercase. If you set it to lowercase, there will be no error message but scim won't work. GTK_IM_MODULE GTK+ applications can use many different modules to connect with input methods, and SCIM can work in two different modes to provide input methods to GTK+ with two different modules. One is XIM mode, using the "xim" GTK IM module from GTK+ itself. The other is GTK IM mode, using the "scim" GTK IM module provided by SCIM platform. The environment variable GTK_IM_MODULE is used by GTK+ to specify which GTK IM module the application should use, to use SCIM's two modes, set GTK_IM_MODULE to "xim" or "scim" accordingly. EXAMPLES
To use scim in XIM mode, execute the following commands in an X terminal (assuming Bourne style shell): XMODIFIERS="@im=SCIM" export XMODIFIERS GTK_IM_MODULE="xim" export GTK_IM_MODULE scim -d <program> Now you can press Ctrl-space to activate scim in the program you just started from X terminal. To avoid the inconvenience of having to start the program from X terminal, make sure you set XMODIFIERS and GTK_IM_MODULE before starting your X session. To use scim in GTK IM mode, just start any GTK+ application, then right click in the application, choose "Input Methods -> SCIM Input Method" in the pop-up menu, and scim should automatically start. Alternatively, you can use the following commands to set scim as the default GTK IM module (again assuming Bourne style shell): GTK_IM_MODULE="scim" export GTK_IM_MODULE <gtk-program> Here scim will also automatically start when you start your GTK+ program. However, it's still a good idea to start scim explicitly even if you use GTK IM mode, because if only one application is using GTK IM mode, scim will automatically stop when you quit this application. Then when you start a new application, scim will start again, this can cause quite long delay for application start and quit, giving people the impression of "everything slows down when using scim". The following command starts scim in daemon mode, using the simple configure module, Pinyin IM engine module, X11 frontend module: scim -c simple -e pinyin -f x11 --no-socket -d FILES
/etc/scim/global, /etc/scim/config Configuration file for system wide settings ~/.scim/global, ~/.scim/config User specific settings SEE ALSO
There is a brief English README giving some introduction and tips about SCIM, in Debian system it's installed in /usr/share/doc/scim/ and gzipped. Debian users should also read the NEWS.Debian and README.Debian files in /usr/share/doc/scim/. There are also other README files in the same directory about using SCIM on a Debian system. AUTHOR
SCIM platform is written by James Su and many other contributors. This manual page is written by Osamu Aoki and Ming Hua for the Debian system, but hopefully it's also useful for other users. This docu- ment is distributed under the same license as the scim software package. scim: 1.4.4 January 2006 scim(1)
All times are GMT -4. The time now is 11:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy