07-26-2017
Great lead. Thanks jim mcnamara.
Last edited by chebarbudo; 07-26-2017 at 05:10 AM..
Reason: typo
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all:
I have a directory where all of the subdirectories are named by the convention "images_#1:#2_Date." My goal is to get an array for each subdirectory that has the structure (#1,#2, int). I am able to use awk to print each subdirectory's values, but cannot figure out how to get them into an... (6 Replies)
Discussion started by: aefskysa
6 Replies
2. Programming
How to specify the token length in a yacc file?
sample input format
<field1,data type ans,fixed length 6> followed by <field2,data type ans,fixed length 3>
Example i/p and o/p
Sample Input: "ab* d2 9o"
O/p : "Field1 Field2 "
yacc/bison grammar:
record :... (1 Reply)
Discussion started by: sungita
1 Replies
3. Shell Programming and Scripting
Hi all!
Looking for some help parsing filenames in bash. I have a directory full of files named "livingroom-110111105637.avi". The format is always date and time (yymmddhhmmss). I'm looking to parse the filenames so they are a little more easily readable. Maybe rename them to... (4 Replies)
Discussion started by: mtehonica
4 Replies
4. Shell Programming and Scripting
Hello,
I need help.
I create www page, and I have link, where is weather and is updated each hour.
And I need cut only weather from source code.
Example:
Monday : 12/14
...
Can you help me?
Thanks (2 Replies)
Discussion started by: krcek12
2 Replies
5. Shell Programming and Scripting
Hi ,
I have a config _file that has 3 columns (Id Name Value ) with many rows . In my bash script i want to be able to parse the file and do a mapping of any Id value
so if i have Id of say brand1 then i can use the name (server5X) and Value (CCCC) and so on ...
Id Name ... (2 Replies)
Discussion started by: nano2
2 Replies
6. Shell Programming and Scripting
Hello can anyone help me parse this line.
<tr><td>United States of America</td><td>Dollar</td><td>43.309</td></tr><tr><td>Japan</td><td>Yen</td><td>0.5579</td></tr>
the line above did not break.
so i would like to have a result like this
United States of America
Dollar
43.309
Japan... (3 Replies)
Discussion started by: doomsayer16
3 Replies
7. Shell Programming and Scripting
I would like to setup a script that pulls in time/date in two seperate columns, and then name the other columns as listed below:
Column1=Art/TJ output
Column2=Art/TJ output
Column3=TJ output
column4=Art output
Column5=If time/date past 12:00 noon -fail
Colume6=If time/date before... (1 Reply)
Discussion started by: walnutpony123
1 Replies
8. UNIX for Advanced & Expert Users
Hello All,
I have the following input file that i'm trying to parse:
10.0.011.40
hadoop 15526 15524 0
hadoop 15528 15526 0
hadoop 19747 4018 1
10.0.081.227
hadoop 2862 2861 0
hadoop 2864 2862 0
hadoop 12177 14376 1
I'm trying to get this in my output file:
10.0.011.40 15526 15528... (2 Replies)
Discussion started by: ramky79
2 Replies
9. Shell Programming and Scripting
Hi All,
I'm having a hard time finding a starting point for my issue. I have a 30k line file (fspsec.txt) that I would like to parse into smaller files based on any character existing in field 1.
ACCOUNTANT LEVEL 1 (ACCT.ACCOUNTANT)
OPERATORS: DOEJO (418)
TOOLS: Branch Maintenance
... (2 Replies)
Discussion started by: aahlrich
2 Replies
10. Shell Programming and Scripting
I have a large file that I need to print certain sections out of.
file.txt
/alpha/beta/delta/gamma/425/590/USC00015420.blah.lt.0.01.str:USC00015420Y2017M10BLALT.01 12 13 14 -9 1 -9 -9 -9 -9 -9 1 2 3 4 5 -9 -9
I need to print the "USC00015420" and... (5 Replies)
Discussion started by: ncwxpanther
5 Replies
KDESU(1) KDE User's Manual KDESU(1)
NAME
kdesu - Runs a program with elevated privileges
SYNOPSIS
kdesu [-c command] [-d] [-f file] [-i icon name] [-n] [-p priority] [-r] [-s] [-t] [-u user] [--noignorebutton] [--attach winid]
kdesu [KDE Generic Options] [Qt Generic Options]
DESCRIPTION
KDE su is a graphical front end for the UNIX(R)su command for the K Desktop Environment. It allows you to run a program as different user
by supplying the password for that user. KDE su is an unprivileged program; it uses the system's su.
KDE su has one additional feature: it can optionally remember passwords for you. If you are using this feature, you only need to enter the
password once for each command.
This program is meant to be started from the command line or from .desktop files.
Since kdesu is no longer installed in
$(kde4-config --prefix)/bin but in kde4-config --path libexec and therefore not in your Path, you have to use $(kde4-config --path
libexec)kdesu to launch kdesu.
OPTIONS
-c command
This specifies the command to run as root. It has to be passed in one argument. So if, for example, you want to start a new file
manager, you would enter at the prompt: $(kde4-config --path libexec)kdesu -c Dolphin
-d
Show debug information.
-f file
This option allow efficient use of KDE su in .desktop files. It tells KDE su to examine the file specified by file. If this file is
writable by the current user, KDE su will execute the command as the current user. If it is not writable, the command is executed as
user user (defaults to root).
file is evaluated like this: if file starts with a /, it is taken as an absolute filename. Otherwise, it is taken as the name of a
global KDE configuration file.
-i icon name
Specify icon to use in the password dialog. You may specify just the name, without any extension.
-n
Do not keep the password. This disables the keep password checkbox in the password dialog.
-p priority
Set priority value. The priority is an arbitrary number between 0 and 100, where 100 means highest priority, and 0 means lowest. The
default is 50.
-r
Use realtime scheduling.
-s
Stop the kdesu daemon. This is the daemon that caches successful passwords in the background. This feature may also be disabled with -n
when KDE su is initially run.
-t
Enable terminal output. This disables password keeping. This is largely for debugging purposes; if you want to run a console mode app,
use the standard su instead.
-u user
While the most common use for KDE su is to run a command as the superuser, you can supply any user name and the appropriate password.
--noignorebutton
Do not display an ignore button.
--attach winid
Makes the dialog transient for an X app specified by winid.
SEE ALSO
su(1)
More detailed user documentation is available from help:/kdesu (either enter this URL into Konqueror, or run khelpcenter help:/kdesu).
EXAMPLES
Run kfmclient as user jim, and show the Konqueror icon in the password dialog:
$(kde4-config --path libexec)kdesu -u jim -i konqueror kfmclient
AUTHORS
KDE su was written by Geert Jansen<jansen@kde.org> and Pietro Iglio<iglio@fub.it>.
AUTHOR
Lauri Watts <lauri@kde.org>
Author.
K Desktop Environment 2010-09-18 KDESU(1)