Need help in arranging data
I have a file with user activity and need to display only the start and end timestamp of the activity. I don't know how can we write an logic for this please help me in a bettr way to work on it Code:...
View ArticleI want to send an email after cron job
I am using centos 6.4. I have a few cron jobs setup and they all work fine. However, I would like to enhance one of the crons. This is what I have at the moment: Code: nice rsync -au...
View ArticlePatches for Red Hat Linux
i am installing an application and i am getting this error message about patches Would you like to see system information? [Y] Operating System Information Name: Linux Architecture: i386 Version:...
View ArticleBootable CD on RedHat which has only one shell script
Hello. How can I make a bootable CD on RedHat or Fedora, containing only one shell script ? I have a script which had been made by makeself.sh, so it needs to be executable and self-extracted to /tmp...
View ArticleAdd a new column to file
I have file like this Code: b,c 10,20 30,40 50,60 Now I want to add a new column a with fixed values for all the rows Code: a,b,c 60,10,20 60,30,40 60,50,60 Please let me know how can we do this in unix.
View Articleawk help :(
I need to know the row number of one column with some value but I don't know how. For example I want to know where is 3 of the first column in: Code: 2 4 3 5 4 6 5 7 So I should get 2. I have tried...
View ArticlePrint result of mv -n
I am trying to move files which donot have same filename using Code: find /Users/ParijatMac/desktop/unix/new_dir -type f -mmin +"$HRS" -exec mv -n "{}" /Users/ParijatMac/desktop/unix/old_dir \; -print...
View ArticleFind time difference based on logfile
Hi All, Firstly thank you for the forum members I need to find time difference b'w two rows of timestamp using awk/shell. Here is the logfile: cat business_file start:skdjh:22:06:2010:10:30:22...
View ArticleMemory consumption history
I want to obtain memory consumption history on a HPUX machine. I know I can access data from the last week with sar sar -f /var/adm/sa/sa14 I do not know how to get memory usage with sar. Are there any...
View ArticleCabling and adapters to communicate to service processor serial port from...
Hello, I have an unloaded T5140 machine and want to access the ILOM for the first time and subsequently the network port after that., and then load Solaris 10 the final January 2011 build. The first...
View ArticleList and Delete Files which are older than 7 days, but have white spaces in...
I need to list and delete all files in current older which are olderthan 7 days. But my file names have white spaces. Before deleting I want to list all the files, so that I can verify. find . -type f...
View ArticleWpar network,i'm confused
Hi. I've setup a wpar on aix Code: mkwpar -h ibmunix2 -i -r -N interface=en0 address=10.6.0.1 netmask=255.255.255.0 -n ibmunix2 When i log into ibmunix2 it can't ping any external host,include the...
View ArticleFormatting a text file
Hi All :), I have a formatting question and I am unsure on how I should proceed with my bash shell script. I am unsure weather to use perl or simply edit it in bash. I prefer bash but I am only aware...
View ArticleILOM Command
Dear all would you tell me the command in ILOM to : - Check for error logged in ILOM ouput - Check for system uptime (DAYS) - Check for system reboot logged (Last system reboot) Thank you
View ArticleNeed Shell Script for Array
Hi all, I have an input file like below (a comma seperated file) Code: 345,12,10 400,11,8 328,1,3 I need to get the output as below ... Code: record 345 sum is 12 record 400 sum is 10 record...
View ArticleScript to transfer files from Solaris to windows
Hi All Please can you help, I´ve wrote the following script on a Code: solaris 10 server to transfer files to a windows machine. Code: #!/usr/bin/sh cd /moneta_polled01/download HOST=10.100.4.72...
View ArticleParsing a txt file according to two different tags
I need to parse a txt file like below. starts from the first occurence of SASN2010Aber.CallEventRecord.egsnPDPRecord { till the last occurence of } in other saying name of the part(header) is...
View ArticleUnix fdisk -l Automation
Hello Folks - Need help really ASAP. Iam trying to run this Shell command to get all the lists of partitions and disks from across all the servers. Code: #!/bin/ksh _servers="" _out="/tmp/output.$$"...
View ArticleRHEL 4.7 Shellshock patching
Hello Linux Gurus, Need some help in Shellshock patching for Redhat EL 4.7, This systems doesn't have support and no redhat Subscription to download rpm's, is there any other alternate way to download...
View ArticleHow to copy the two most recently added files to another directory - HP-UX?
Hello, I am attempting to find and copy the two most recently added files to a specific directory, that fit a specific format. I was able to find the command to list the two most recently added files...
View Article