Quantcast
Channel: UNIX and Linux Forums
Browsing all 16232 articles
Browse latest View live

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 Article


I 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 Article


Patches 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 Article

Bootable 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 Article

Add 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 Article


awk 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 Article

Print 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 Article

Find 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 Article


Memory 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 Article


Cabling 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 Article

List 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 Article

Wpar 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 Article

Formatting 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 Article


ILOM 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 Article

Need 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 Article


Script 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 Article

Parsing 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 Article


Image may be NSFW.
Clik here to view.

Unix 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 Article

RHEL 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 Article

How 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
Browsing all 16232 articles
Browse latest View live