02-12-2011
@unix.com admin
Is there a link to post #1 in the original language?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello All,
I have log file the result from a multithreaded process. So when a process finishes it will write to this log file as 123 rows merged.
The issue is sometimes the processess finish at the same time or write to the file at the same time as
123 rows merged.145 rows merged.
At... (5 Replies)
Discussion started by: ssikhar
5 Replies
2. UNIX for Dummies Questions & Answers
I'm having trouble with the following commands
i. count the number of lines which end in a 4 letter word
grep '{4\}$' bfile <<seems to print out everything
abc abc abcd
joe joe john
bob bill
gregory greg
greg gregory
the grep command prints out the lines with 4 letter words and the... (3 Replies)
Discussion started by: StrengthThaDon
3 Replies
3. UNIX for Dummies Questions & Answers
Folks;
First about find:
when i run this:
find . -name '*log*' -mtime +10 -print | sed 's+^\./++;s+/.*++' | sort -u
i got list of log files but also get a directories (although directory names doesn't have "log" in it).
How can i exclude the directory from the output of this find command? ... (2 Replies)
Discussion started by: moe2266
2 Replies
4. Shell Programming and Scripting
Haven't worked in bash for ages. did a good bit of shell scripting in regular sh, but have forgotten most of it.
I have several thousand php files that now include the following line at the end of the file. There is no LF or CR/LF before it begins, it is just concatenated to the final line of... (3 Replies)
Discussion started by: sjburden
3 Replies
5. UNIX for Dummies Questions & Answers
Hi,
Can anyone help me with the text editing I need here. I have a file that contains the following lines for example: (line numbers are for illustration only)
1 Hello world fantasy.
2 Hello worldfuntastic.
3 Hello world wonderful.
I would like to get all those lines of text that... (5 Replies)
Discussion started by: risk_sly
5 Replies
6. UNIX for Advanced & Expert Users
Example:
I have folders
456
abc
xyz
123
a1b
I dont want to find in 123 and a1b. From rest folder i need to find in html and php files.
find ./ -path "123" -prune and a1b
find ./ -iname "*.htm*" -o -iname "*.shtm*" -o -iname "*.php"
Now while finding i need to grep multiple... (7 Replies)
Discussion started by: nxvir
7 Replies
7. UNIX for Dummies Questions & Answers
Platforms : Solaris 10 and RHEL 5.6
I always get double quotes , single quotes and asteriks mixed up for find, ls and grep commands.
The below commands retrieve the correct results. But , unders stress , I get all these mixed up :mad: .So, i wanted to get a clear picture.
Please check if... (7 Replies)
Discussion started by: John K
7 Replies
8. Shell Programming and Scripting
Hi all,
I have two separate commands which I would like to join. Basically, I want to match a line and insert a character at the end of the previous line to the matched line
Here is what I have gotgrep -B1 '^>'
sed 's/$/*/'
Any help is much appreciated thanks (5 Replies)
Discussion started by: kaav06
5 Replies
9. Shell Programming and Scripting
I have a file example.txt as follows :SomeTextGoesHere
$$TODAY_DT=20140818
$$TODAY_DT=20140818
$$TODAY_DT=20140818I need to automatically update the date (20140818) in the above file, by getting the new date as argument, using a shell script.
(It would even be better if I could pass... (5 Replies)
Discussion started by: SriRamKrish
5 Replies
10. UNIX for Beginners Questions & Answers
Hi,
I am running the following:
PASS="username/password"
sqlplus -s << EOF | grep -v "^$"
$PASS
set feedback off
set heading off
set termout off
select name from v\$database ;
exit
EOF
Which gives
ERROR:
ORA-28002: the password will expire within 5 days
PSMP1 (1 Reply)
Discussion started by: newbie_01
1 Replies
LEARN ABOUT OPENSOLARIS
time-admin
time-admin(1) User Commands time-admin(1)
NAME
time-admin - Basic configuration of system time, date, timezone and NTP client.
SYNOPSIS
time-admin [gnome-std-options]
DESCRIPTION
time-admin enables the user to configure the default timezone and current date/time on the system. It also enables the user to turn on
auto-synchronisation of this using NTP.
OPTIONS
The following options are supported:
gnome-std-options Standard options available for use with most GNOME applications. See gnome-std-options(5) for more informa-
tion.
EXAMPLES
Example 1: Running the main application.
example% time-admin
EXIT STATUS
The following exit values are returned:
0 Application exited successfully
>0 Application exited with failure
FILES
The following files are used by this application:
/usr/bin/time-admin Executable for time and date configuration.
/var/spool/setup-tool-backends/backup/time
Backup directory for files that are modified.
/var/run/setup-tool-backends/debug/time
Debug logs can be found under here.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWgnome-system-tools |
+-----------------------------+-----------------------------+
|Interface stability |Uncommitted |
+-----------------------------+-----------------------------+
SEE ALSO
Latest version of the GNOME Desktop User Guide for your platform.
users-admin(1), shares-admin(1), services-admin(1), network-admin(1), gnome-std-options(5), rtc(1M), ntpdate(1M), xntpd(1M), attributes(5)
NOTES
Written by Darren Kenny, Sun Microsystems Inc., 2006.
SunOS 5.11 6 Nov 2006 time-admin(1)