Hi
I have following list of files at a path:
01.AR.asset
01.AR.index
01.AR.asset.vf
01.AR.asset.xv
I want to rename all these files as follows:
73.AR.asset.Z
73.AR.index.Z
73.AR.asset.vf.Z
73.AR.asset.xv.Z
Can any body give me a single command to acheive the above results.
... (5 Replies)
Dear Unix Guru,
I have several directories as below
/home/user/
dir1
dir2
dir3
Each directory has different size. I want to print each directory size (Solaris command du -hs .)
Can you please guide me how to achieve this?
Thanks
Bala (2 Replies)
Hi,
I will use below command for grep single string ("osuser" is search string)
ex: find . -type f | xarg grep -il osuser
but i have one more string "v$session"
here i want to grep in which file these two strings are present.
any help is appreciated,
Thanks in advance.
Gagan (2 Replies)
I would like to empty multiple files contents (without delete the file) which have similar name to begin with.
e.g.
log1.txt
log2.txt
log3.txt
log4.txt
I know cat /dev/null will do the job but that only apply to a single file. But when i tried cat /dev/null > {} \; that doesnt do... (7 Replies)
Hi,
i need a single command to create multiple empty files(no trailing lines as well) and empty the files if already existing.
please let me know or if this has been ansered, if some ocan share the link please, thanks
> newfile.txt
or
:> newfile.txt
do not work (4 Replies)
Hi All,
I would like to sftp 2 files with a single command. I tried the below options,
sftp suer@test13:"/u01/home/oracle/SetDb.sh /u01/home/oracle/.profile" ./
But what actually happens is
Fetching /u01/home/oracle/SetDb.sh to /u01/home/oracle/.profile
/u01/home/oracle/SetDb.sh ... (3 Replies)
I am passing multiple files in awk & since one of the file is empty(say file3) so the same gets skipped & logic goes for toss. Need suggestion/help in checking and putting additional checks for the same
awk -F, 'FNR==1 {++filecounter}
filecounter==1 {KRL=$2;next}
filecounter==2... (8 Replies)
I am using below code to split files based on blank lines but it does not work.
awk 'BEGIN{i=0}{RS="";}{x="F"++i;}{print > x;}'
Your help would be highly appreciated
find attachment of sample.txt file (2 Replies)
Hello, sorry to bother anyone reading this
I have an assignment with a question that reads:
Your current directory is stenton. Create empty files called f1, f2, and f12 (in that order), within stenton
So my first thought was to enter: touch f1 f2 f12
but that does not work, does anyone... (1 Reply)
I have multiple files test1, test2, test3 etc. I want to move to a different directory with ABC_ prefixed to every file and and current dat time as postfix using a single command. (I will be using this is sftp with ! (command for local server).
I have tried the following but it gives error
... (5 Replies)
Discussion started by: Soham
5 Replies
LEARN ABOUT DEBIAN
tomoyo-auditd
TOMOYO-AUDITD(8) System Administration Utilities TOMOYO-AUDITD(8)NAME
tomoyo-auditd - access request log recording daemon for TOMOYO Linux
SYNOPSIS
tomoyo-auditd
tomoyo-auditd [remote_ip:remote_port]
DESCRIPTION
This program reads access request logs from the kernel and writes to the locations specified in the configuration file. By running this
program at startup, access request logs for either all domains or selected domains can be stored.
The format of the stored logs is similar to domain policy, so they can be used to help develop policy.
Configure this daemon in /etc/tomoyo/tools/auditd.conf. If an access request matches a rule, it will be written to the specified log file.
This can be used to split access request logs into multiple files. Only the first matching rule is used, so any single access request log
will be written to a maximum of one output file. If an access request log does not match any rules, it will be discarded.
Start this program from an appropriate stage during startup (e.g. /etc/rc.local).
OPTIONS
remote_ip:remote_port
Retrieve access request logs from a remote system via an agent, connecting to the specified IP address and port number.
BUGS
If you find any bugs, send an email to <tomoyo-users-en@lists.sourceforge.jp>.
AUTHORS
Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Main author.
Jamie Nguyen <jamie@tomoyolinux.co.uk>
Documentation and website.
SEE ALSO tomoyo-editpolicy-agent(8)
See <http://tomoyo.sourceforge.jp> for more information.
tomoyo-tools 2.5.0 2012-04-14 TOMOYO-AUDITD(8)