To send mail with same format as in file
I want to send the content in same format as it is in file. Code: #!/bin/sh cat /usr/test/abc > /usr/test/abc/file if [ -s /usr/test/abc/file ] then MAILTO=test@yahoo.com...
View ArticleUsing awk and output to files
I currently have this code: Code: awk ' BEGIN { FS = OFS = "|"} { l=length($1) $1 = sprintf("%s-%s-%s %s:%s:%s", substr($1, l - 13, 4), substr($1, l - 9, 2), substr($1, l - 7, 2), substr($1, l - 5, 2),...
View ArticleWhy doesn't this work?
find . -name "05_scripts" -type d -exec mv -f {}/'*.aep\ Logs' {}/.LogFiles \; Returns this failure: mv: rename ./019_0120_WS_WH_gate_insideTEST/05_scripts/*.aep\ Logs to...
View ArticleAdd a column of 0's to a text file
Hi, I have a text file with many column (1,000,000+). I want to add a column of 0's as the third column. I tried: Code: awk '{$3=0}1' input file > output file But it simply replaces the third column...
View ArticleExcluding a specific column from sed replacement
Hi, I would like to replace all 0's to 1's throughout my text file. However I do not want column 3 altered. How do I go about doing that? Thanks!
View ArticleUnmatched
Hi, I am running sinple ksh script . From some reason it failed on the following error: ./ogg_status.sh[14]: syntax error at line 16 : `<<' unmatched Please advise. Code: #!/usr/bin/ksh export...
View ArticleServer is ignoring slashes
When I try to access my website's Administrator page (mysite.com/administrator), I'm redirected to (mysite.comadministrator), as if the slash was removed from the URL The funny thing is that I can...
View ArticleLogin, excute command, logout Script Help
Good Evening all, After spending the last week or so reading many posts I decided to register and join in. This is my first post on the forum so please forgive me as im new to this, Im after some help...
View ArticleClasspath of JAVA
Hello, ABC question as I could not get a direct answer: How to locate the default IO class of JAVA? My question was triggered by the row in most java program Code: import java.io.* as I am very curious...
View ArticleHelp with LVM?
Hi How do you configure LVM to linux? How to create logic volume using LVM? On a new VM system, just install RHEL 5.8 gave 200 gig for / and 10 gig for swap. Now I want to configure LVM? is that too...
View ArticleCommand to show HMC of this lpar?
Does anyone know of a command that can be run on the lpar to show the name of the lpars managing HMC? We have a large environment and records a little old on which HMC manages which lpars....if i could...
View ArticleZone Cluster Question
I have a question about losing a node in a zone cluster. Hopefully I can explain enough for someone to answer. Let's say I have a zone cluster spread over 3 physical nodes. If Node1 crashes, would I be...
View ArticleRaspberry PI
Attachment 4153 The small red box to the left of TV is the Raspberry PI. Successfully installed and running Raspbian Wheezy. I learnt about Raspberry PI from Neo here on unix.com. Thanks to you Neo :b:...
View ArticleAll strings within two special chars
I have a file with multiple lines. From each line I want to get all strings that starts with '+' and ends with '/'. Then I want the strings to be separated by ' + ' Example input: Code:...
View ArticleSudo apt-get update fail: Malformed line 59
I am trying to update/add a repository. Whenever I try to do a Code: sudo apt-get update I get the message: Code: E: Malformed line 59 in source list /etc/apt/sources.list (dist parse) E: The list of...
View ArticleHow to set password for file using vim in Linux/redhat?
Hello All, I have one query is "How to set the password for file using vi utility in linux. Please reply to my queries. I am waiting for reply. Thanks in advance. Thanks. Kuddus Shaikh
View ArticleConverting pdf to jpg in multiple directories?
Hi! On my Ubuntu I have thousands of files in a couple hundred directories. I'm trying to convert the pdf's to jpg's. I used this command in terminal: for fname in *.pdf; do convert $fname...
View ArticleData manipulation using shell
Dear all I have a dataset (in text format,delimited by tab) which have 100 variables (say, var0-var99) and more than 100,000 observations. I want to do the following: 1. for variable var0-var49, I want...
View ArticleHow to install .tar.tgz file in AIX 6.1?
Hello, I have openssl.0.9.8.1103.tar.tgz file which I have downloaded from Code: https://www14.software.ibm.com/webapp/iwm/web/reg/download.do?source=aixbp&S_PKG=openssl site The website says that...
View ArticleOs (open source dialer config on centos)
Hii Champs I want to configure OS (Open source dialer on asterisk platform) for Centos.here is the detail : We are going to use inbound outbound calling.We have Two servers with 2 separate network for...
View Article