Sponsored Content
Top Forums Shell Programming and Scripting How to get the most left hand string ?? Post 302088353 by jfortes on Monday 11th of September 2006 04:47:46 PM
Old 09-11-2006
MySQL

Thanks it worked just fine.

Joao.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Give us a hand

How do you get an awk output into columns i.e. awk (print $1,$2,$3) doesn't come out into nice columns but lots of lines of txt want something more like. I am crap at unix so give me a hand thx Rich (3 Replies)
Discussion started by: RichardB
3 Replies

2. Shell Programming and Scripting

Need a hand. Please?

i have a script in sh. with awk, e.g. want to list all the contents of a subdirectory an a tabular way. ej: outoput directory1 subdirectory1 subdirectory2 subdirectory3 file1 filen file2 filez file2 ... filen+1 ... (1 Reply)
Discussion started by: alexcol
1 Replies

3. Debian

change initramfs by hand?

What's the correct way to change the initramfs file that's used during boot? I know that it's a gzipped cpio archive, but when I gunzip, extract, re-archive (without changing any files), and gzip, then the result is that the system does not boot any more. And I even set the cpio archive type. ... (18 Replies)
Discussion started by: frankie06
18 Replies

4. UNIX Desktop Questions & Answers

Old hand to FreeBSD, brand new to KDE ??'s

I have now used FreeBSD from eh, 5.0??? But during that whole time I have never used xwindows or kde. My box's have always been servers of one type or another. I just set up a new BSD machine(8.0), and because I wanted to install boinc I knew that I would have to also install xwindows. Just the... (4 Replies)
Discussion started by: droolin
4 Replies

5. Shell Programming and Scripting

Terminate left side portion of a string

I have a awk file which consists of the follwoing code in file select.awk : /xxx/ { time = gensub(/xxx \*\*\*(.*)/, "\\1", "g") printf("%s\n",time) next } and an input file with the following file file.txt :- xxx ***Wed May 2 18:00:00 CDT 2012 AAA AAAA AAAA xxx... (4 Replies)
Discussion started by: shikshavarma
4 Replies

6. Shell Programming and Scripting

Place , character after 3 digits from left to right in a string

Hi All, Could anyone please help me, how to put ‘,' character after 3 digits from right to left count,among 17 digits sting. unix scripting Example - I am having 12345678911234567 digits Accepted result-- 12,345,678,911,234,567 Note- 12345678911234567 digits will be dynamic at run time, I... (13 Replies)
Discussion started by: krupasindhu18
13 Replies

7. Shell Programming and Scripting

Merge left hand strings mapping to different right hand strings

Hello, I am working on an Urdu to Hindi dictionary which has the following structure: a=b a=c n=d n=q and so on. i.e. Headword separated from gloss by a = I am giving below a live sample بتا=बता بتا=बित्ता بتا=बुत्ता بتان=बतान بتان=बितान بتانا=बिताना I need the following... (3 Replies)
Discussion started by: gimley
3 Replies

8. Shell Programming and Scripting

Regex to hunt for a string in the right hand column

I have a database which has the following structure English word=IPA notation as in the example below huckleberry=ˈhʌkəl-bəriː huddling=ˈhʌd-lɪŋ huffish=ˈhʌ-fɪʃ hugger-mugger=ˈhʌgər-mʌgər hulling=ˈhʌ-lɪŋ human=ˈhjuː-mən humanitarian=hjuːˌ-mænɪˈteərɪyən... (7 Replies)
Discussion started by: gimley
7 Replies

9. Shell Programming and Scripting

Matching number of syllables on right-hand and left side

I am developing a database for translating names. I have mapped through a rule engine syllables in English to syllables in Indic, delimited by an equal to sign. An example will illustrate this ra m=रा म ku ma r=कु मा र mo=मो la l=ला ल gi ta=गी ता ka la va ti=कa ला वa ती However it so... (3 Replies)
Discussion started by: gimley
3 Replies

10. UNIX for Beginners Questions & Answers

Just want to ask if there is a shorter hand to doing this one liner

Hi all, In Oracle, I am using SQL*Plus and selecting all rows in a table and spooling to a file as pipe delimited. I have to use pagesize 0 but unfortunately, using this option excludes the header and I can't get around having it to display the header fields. So to get around this, I have to... (2 Replies)
Discussion started by: newbie_01
2 Replies
PACKUP(1)							   User Commands							 PACKUP(1)

NAME
PackUP -- PACKage Upgradability Problem solver SYNOPSIS
packup [OPTIONS] input_file_name [output_file_name] DESCRIPTION
packup is a solver for the package upgradability problem specified in CUDF [TZ09]. It repeatedly invokes an optimization pseudo-Boolean solver in order to solve the problem. By default minisat+ [ES06] is used for that purpose but a different solver can be used by specifying the pertaining command line option. If input_file_name is '-', input is read from the standard input. If the output_file_name is omitted, output is produced to the standard output. OPTIONS
-t Use trendy criterion -p Use paranoid criterion -u cs Use user criterion cs. A criterion is a lexicographic combination of the utility functions removed, notuptodate, unmet_recommends, new, and changed. Each of them with a polarity ("+" for a function to maximize, "-" for a function to minimize). The functions are listed in decreasing order of priority, and separated by the symbol ",". For instance, the paranoid criterion could be written as -removed,-changed. For more details see: http://www.mancoosi.org/misc-live/20101126/criteria/ --external-solver command for the external solver default 'minisat+ -ansi' --multiplication-string string between coefficients and variables when communicating to the solver, default '*' --temporary-directory DIR directory where temporary files are created. If this option is not given then the value of $TMPDIR is used if defined, otherwise temporary files are placed in '/tmp'. --leave-temporary-files do not delete temporary files AUTHOR
Written by Mikolas Janota and Joao Marques Silva REPORTING BUGS
Please report any problems with the solver to mikolas@sat.inesc-id.pt REFERENCES
[ES06] Niklas Een and Niklas Sorensson. Translating Pseudo-Boolean Constraints into SAT. SAT, 2006 [TZ09] Ralf Treinen and Stefano Zacchiroli. Common upgradeability description format (CUDF) 2.0. Technical Report 003, MANCOOSI, November 200 COPYRIGHT NOTICE
(C) 2011 Mikolas Janota This file is part of packup. packup is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. packup is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with packup. If not, see <http://www.gnu.org/licenses/>. May 2011 PACKUP(1)
All times are GMT -4. The time now is 03:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy