I have read chapter 7 in Programming Perl and still don't have a clue. I am looking for a pattern like this.
if (/hscsunp1/) {
print $_;
The only problem is that it prints everything on that line I just want the pattern I have specified. If I'm writing korn shell nawk works great, I just...
Hey duncdude, that worked but I have one more question. When it puts the extracted data in the new text file it does not take the first value extracted and left justify it. It looks like there is probably 8 or 10 spaces. Do you have any idea how to do away with that.
I have a script that extracts data. I want the data that it extracts to be printed on the same line. I can't seem to make it work. It extracts the data but prints each find on a new line. The data that is being extracted also has to be delimited by a semi-colon. Here is the script...
What I have is some log files that are created by a scheduler we run our jobs through (OS Solaris 8). The date in the logfile is of this format Fri Jan 9. I would like to extract this out of the file and convert it to this format 2004-01-09 and put it in a new file. Is there a way to do this.
I would like to write a script that searches for a pattern in a line.
The line will look something like this:
Index Filename CreationDateCreationTime Bytes Download
1 samename.001 Y
2 samename.002 N
I...
No error message and the rpm -qa|grep kernel does not show the new kernel. I will tell you though when I tried this I just used the rpm -i I didn't use the vh flags. I don't know if this makes a difference.
I was just notified about a new yesterday and went and downloaded the tar file which...
I have downloaded a kernel update to my pc then ftp'ed to my linux box. How can I install the updated kernel. The box has no connectivity to the outside world so I can't do the up2date command. The kernel update is an rpm, I thought I could just do rpm -i kernelversion to install but that...
I did the htpasswd -c /www/passwd/password/user as per instructions on apache.org then chmod 640 on directory passwd and changed group to nogroup. I added this:
<Directory /www/htdocs/proftp-admin>
AuthType Basic
AuthName "Proftp Admin"
AuthUserFile /www/passwd/password...
Solaris 9 box with Mysql on it and configured. I am trying to install proftpd now and it craps out on me.
This is what I do
cd to source
./configure --with-modules=mod_sql:mod_sql_mysql --with-includes=/usr/local/include --with-libraries=/usr/local/lib/mysql
This runs fine, dosen't crap out...
New to linux, but I know on unix that you can backup to a remote tape drive with a command like this:
ufsdump 0uf somesystem.somedomain.com:/dev/rmt/0cbn /usr
Can this been done on Linux Advanced Server 2.1
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.