Search Results

Search: Posts Made By: ric79
Forum: Solaris 07-06-2011
3
1,850
Posted By ric79
thanks, could you write the list of commands I...
thanks,
could you write the list of commands I should run for the /MYFILE directory ?

R
Forum: Solaris 07-06-2011
3
1,850
Posted By ric79
Prevent remove file owned by root
Hi all,
I need to configure file permission in order to prevent any user to delete a file.

Details:

$ more /etc/release
Solaris 10 10/09 s10s_u8wos_08a SPARC
...
2,304
Posted By ric79
Hi all, thanks for suggestion. I need to...
Hi all, thanks for suggestion.

I need to split all the rows using as field separator " " or ":" or "|" or "[" or "]"

For example:
Jan 20 10:55:19 cerbero | process1: process1.--: [ID 379539...
2,304
Posted By ric79
SH string formatting
Hi all,
my syslog.txt is a file like this:


Jan 20 10:55:19 cerbero | process1: process1.--: [ID 379539 local1.info] |Info |xyxyxyxyxyxyxx |
Jan 20 10:59:45 cerbero | processlong2 :...
1,749
Posted By ric79
SH Script
Hi all,
I need an help for this sh script (this is not an homework!)

The file a.txt is

20090825000501: MOVING FILE /export/charging/chsLog/ready/RCV.chsLog.327 IN...
2,423
Posted By ric79
Split rows
Hi all,
I need a simple bin/sh script

FILE1:
ab1 gegege swgdeyedg
ac2 jxjjxjxjxxjxjx
ad3
ae4 xjxjxj zhzhzh ahahs
af5 sjsjsjs ssjsjsjsj sjsjsj
ag6 shshshshs sjjssj
shhshshs
...
25,614
Posted By ric79
#!/bin/sh ls -la | awk -v year=$(date "+%Y")...
#!/bin/sh
ls -la |
awk -v year=$(date "+%Y") ' BEGIN{
split("Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec", month, " ")
for (i=1; i<=12; i++) mdigit[month[i]]=i
$mydate="2009"
}...
25,614
Posted By ric79
ls -la | awk ' BEGIN{ split("Jan Feb Mar...
ls -la |
awk ' BEGIN{
split("Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec", month, " ")
for (i=1; i<=12; i++) mdigit[month[i]]=i
}
$8 ~ /:/{$8="2009"}
{
dat=$8...
25,614
Posted By ric79
Group and count file by date
Hi all,
in BIN/SH I need to group and count files by date.

Ie:

ls -la

-rw-r--r-- 1 aaa dba 122 Jul 13 14:28 as1.tmp
-rw-r--r-- 1 aaa dba 122 Jul 13 15:27 as2.tmp
-rw-r--r-- 1 aaa...
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 05:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy