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

Copying files excluding some files

Hi, I have a folder which contains files in this format. abc-bin.000001 abc-bin.000002 abc-bin.000003 abc-bin.000004 abc-bin.000005 abc-bin.000006 abc-bin.000007 abc-bin.000008 abc-bin.000009...

View Article


Read html attachment

Hi, I will get an email with a html attachment. I want to copy that html file to server in a particular location. Is it possible to do this.. If yes could you please help me on this.. Regards Neethu

View Article


Searching String which repeates

Hi All, Any one please help me with the below scenario. I have a file with the data like below This is the integer variable name is <abc1> This is the Float variable name is <abc1> This is...

View Article

Parsing countries file

Hi All I would like to take contries for this file http://www.textfixer.com/resources/d...n-iso-html.txt and save it in another file with the following structure . Afghanistan, Åland Islands , Albania,...

View Article

Epoch in Perl

Hi, Can anybody tell me how time is calculated in the below or what is actually being done here? Also can you explain in simple words about epoch time and why it is used? Quote: $d =...

View Article


exit after extracting range if lines - awk

Hello, I was wondering how is it possible if I use this command: Code: awk 'NR >= 998 && NR <= 1000' file.txt To exit after parsing the 1000th line ( last line targeted) ??? I observed...

View Article

How to remount .img as rw and repack

Hi fellas! I make a sh script which the following: Code: sudo mkdir Temp sudo mount -o loop output.img Temp The command mounts the img.Thats fine.But it moun s it as read only.But I need to edit/delete...

View Article

FTP error log

Hi I'm here again. This time I have a question that is not a really issue because I 've already found a workaround but I don't know if the behaviour is correct or not. In my ksh shell I open a sftp...

View Article


Unable to change/create home dir for particular user

Hi all I wanted to change the home dir for a user, but when using smh : Code: SMH->Accounts for Users and Groups->Local Users->Modify User...

View Article


Retrieve values using soap moudle

Can someone tell me how to know the values used in soap api. I need to know what values are used in soap xml. Can we get all the values used in soap api. I know that we can get it by using SOAP::Lite...

View Article

Urgent Help needed...

Hi I want to create a script which deleted files in the following folders older than 30 days. There are a particular version of files inside it to be deleted Folders :...

View Article

Script to check logs

I have 5 log files under different directores . say for eg abc under /home/dir1 , xyz under home/dir2 . is there a script that i can run from say /home that searchers all these files for string or...

View Article

Purge in oracle9i

From morning we are facing some issues in tablespaces in oracle9i. Tried deleting some huge records... but even thought it is still giving tablespcases in full. Then i tried and googling ... found we...

View Article


Image may be NSFW.
Clik here to view.

eliminate characters in vi

hey guys. what command in vi editor should I write to make this Code: M83RDK-078A        -1        1    1024        1    1024 OK          X    | M83RDK-055        -1        1      627        1      627...

View Article

Delete syslog but size disk can't increase

Hi Experts, I have a problem wih /var. Disk /var is full. After i investigate, i found file /var/log/syslog.0 is growing rapidly. The size is 4.3G. I tried to move syslog.0 to another disk and file was...

View Article


rcp command is not working in crontab

Dear Friends, I am trying to copy SAP log file from one HPux server1 to another HPux server2 remotely through one script. following command has written in the script. Code: rcp -rp...

View Article

Confusion with PS

Hello All, I have a problem in counting number of process getting run with my current script name.. Here it is Code: ps -ef | grep $0 | grep -v grep This display just one line with the PID, PPID and...

View Article


Memory conmsumption by Java server is very high on Linux compared to Soalris

Hello All, We have a jave server running on both linux and Solaris environments. On solaris,it consumes only 600-700MB whereas it goes upto 21G in Linux. I am monitoring the memory consumption through...

View Article

select lines with certain values on certaint fields with awk

I need a awk command to select from a log-file only the lines that have on the 2nd field (considering "|" separator) one of the values 10.216.22.XX or 10.216.22.YY or 10.216.22.ZZ and on the 4th field...

View Article

find command error

Hi, We have a shell script which looks into a directroy for any folder older than 30 days and removes them. The command being used is Code: find $ARCHIVE_DIR -type d -mtime +$PURGE_HIST_DAYS -exec rm...

View Article
Browsing all 16232 articles
Browse latest View live