I have 2 files. I basically want to search both of them to see if the 1st column ($1) matches and if it matches then check to see if the 2nd column ($2) matches, then execute some code showing the results of the matches.
File 1:
AAA 123
misc blah
BBB 456
CCC 789
File 2:
... (2 Replies)
:)hello people
i am working on some kind of PBX and i have list of telephone numbers inside a file, i have to insert these numbers into the correct command and then telnet to a remote server and execute these commands.
i can read the telephone numbers and insert them into the command with no... (0 Replies)
Hi
I have a requirement like below
I need to sort the files based on the timestamp in the file name and run them in sorted order and then archive all the files which are one day old to temp directory
My files looks like this
PGABOLTXML1D_201108121235.xml... (1 Reply)
Hi,
I want to access files from different directories (for example: /home/dir1/file1 , /home/dir2/file2 ...) Like this i have to access these files(file1, file2...). (3 Replies)
Hi All,
This question has been asked many times, but my problem is slightly different.
In my shell script i am connecting to oracle database and loading the results to .dat file. This .dat file is later used to create to .xls file Some times the size of .dat file becomes more than 120000... (8 Replies)
Hi,
I am new to awk/unix and am trying to put together an awk script to perform an action similar to vlookup between the two csv files.
Here are the contents of the two files:
File 1:
Date,ParentID,Number,Area,Volume,Dimensions
2014-01-01,ABC,247,83430.33,857.84,8110.76... (9 Replies)
So, I need to find a bunch of files and delete them (this example, but sometimes I need it for something else) and my trusty go-to command has always been:
find . -type f -name '*file*' | xargs -I## rm '##'
Works wonders... But:
touch file\ file\'.txt
touch file.txt
touch file\ file.txt... (6 Replies)
Hi,
I'm writing a post-upgrade script and I want to find which files don't have read and execute to everyone.
I can run a find . ! -perm, but then I have to use a list of the possible permissions (777,775, 755 etc). Is there a more elegant solution?
Thanks (2 Replies)
How can I do an action to all files in a specific folder?
Do I use ls and a loop or something else? Does ls take folder location? (2 Replies)
Discussion started by: locoroco
2 Replies
LEARN ABOUT DEBIAN
polkit-action
POLKIT-ACTION(1) polkit-action POLKIT-ACTION(1)NAME
polkit-action - List and modify registered PolicyKit actions
SYNOPSIS
polkit-action [--action action] [--reset-defaults action] [--show-overrides] [--set-defaults-any action value]
[--set-defaults-inactive action value] [--set-defaults-active action value] [--version] [--help]
DESCRIPTION
polkit-action is used to list and modify the PolicyKit actions that are registered on the system.
OPTIONS --action action
Show detailed information about a specific action.
--reset-defaults action
Reset the defaults for the specified action to the factory defaults. The authorization needed to do this is
org.freedesktop.policykit.modify-defaults.
--show-overrides
Prints all actions for where the defaults are overridden.
--set-defaults-any action value
Override the any stanza for the given action with the supplied value. The authorization needed to do this is
org.freedesktop.policykit.modify-defaults. Valid values for value are no, auth_admin_one_shot, auth_admin, auth_admin_keep_session,
auth_admin_keep_always, auth_self_one_shot, auth_self, auth_self_keep_session, auth_self_keep_always, and yes.
--set-defaults-inactive action value
Override the inactive stanza for the given action with the supplied value. The authorization needed to do this is
org.freedesktop.policykit.modify-defaults. Valid values for value are no, auth_admin_one_shot, auth_admin, auth_admin_keep_session,
auth_admin_keep_always, auth_self_one_shot, auth_self, auth_self_keep_session, auth_self_keep_always, and yes.
--set-defaults-active action value
Override the active stanza for the given action with the supplied value. The authorization needed to do this is
org.freedesktop.policykit.modify-defaults. Valid values for value are no, auth_admin_one_shot, auth_admin, auth_admin_keep_session,
auth_admin_keep_always, auth_self_one_shot, auth_self, auth_self_keep_session, auth_self_keep_always, and yes.
--version
Show version and exit.
--help
Show usage information and exit.
COMPLETION
PolicyKit ships with a collection of shell functions such that completion on options, action and value works when using the bash(1) shell.
BUGS
Please send bug reports to either the distribution or the hal mailing list, see http://lists.freedesktop.org/mailman/listinfo/hal. to
subscribe.
SEE ALSO PolicyKit(8), PolicyKit.conf(5), polkit-auth(1)PolicyKit August 2007 POLKIT-ACTION(1)