Search Results

Search: Posts Made By: rajsharma
1,351
Posted By rajsharma
Same problem I am also facing.
Hi,

There are lots files on a mounted path in my case as well.
And there is a scheduled script that copies these mounted files to different directories weekly.
Out of files on mounted path,...
11,254
Posted By rajsharma
splitting a huge line of file into multiple lines with fixed number of columns
Hi,

I have a huge file with a single line.
But I want to break that line into lines of with each line having five columns.
My file is like this:
code:...
Forum: What is on Your Mind? 03-16-2011
19,503
Posted By rajsharma
Great initiative.
Thanks for making this link available.

Our prayers for all of the Japanese.The scenes on TV are devestating.
They will rise again like they did after WW-2 and became one of the top economies of...
Forum: AIX 12-29-2010
9,028
Posted By rajsharma
Hi ROHON, Sorry for replying too late,was...
Hi ROHON,

Sorry for replying too late,was out of station.

When I run ur latest code as:
sh delay.sh
Enter input:2010-12-12
Using input value = []

Seems to work fine when I give some input...
Forum: AIX 12-16-2010
9,028
Posted By rajsharma
ROHON, Here is debugging result: ksh -x...
ROHON, Here is debugging result:

ksh -x delay.sh
+ echo Enter input:\c
Enter input:+ perl /usrdir/charReading.pl 10
+ pid=6570172
+ sleep 10
2010-12-12+ [ -s /tmp/optFile ]
+ kill -9 6570172...
Forum: AIX 12-16-2010
9,028
Posted By rajsharma
Thanks for reply. Here is how I run it. The...
Thanks for reply. Here is how I run it.
The name of script is delay.sh

sh delay.sh
Enter input:2010-12-12
kill: 3956770: 0403-003 The specified process does not exist.
Using default value...
Forum: AIX 12-16-2010
9,028
Posted By rajsharma
bsduser: perl charReading.pl 5 rohon bsduser:...
bsduser: perl charReading.pl 5
rohon
bsduser: cat /tmp/optFile
rohonbsduser:

That is /tmp/optFile contains "rohonbsduser:" instead of "rohon".
I am not sure...but I think ... once I do "cat...
Forum: AIX 12-15-2010
9,028
Posted By rajsharma
Hi ROHON, thanks for the code. Here is how I...
Hi ROHON, thanks for the code.

Here is how I tried ur code.
I named the script as dlay.sh
#!/usr/bin/sh
echo "Enter input:\c"
/usrdir/charReading.pl 10 &
pid=$!
sleep 10
if [ ! -f...
Forum: AIX 12-14-2010
9,028
Posted By rajsharma
HI ROHON, I do have perl installed in my system. ...
HI ROHON, I do have perl installed in my system.
But the requirement is such that I dont have to hit "Enter key" and I have to give "date" as user input in the format like 2010-12-15, so it has...
Forum: AIX 12-14-2010
9,028
Posted By rajsharma
I have named the script as delay.sh and It gives...
I have named the script as delay.sh and It gives the following error.
Error:
bsd:dir1/users/usename/Files>sh delay.sh
Input (timeout 10 seconds):
delay.sh[3]: read: 0403-010 A specified flag is...
Forum: AIX 12-13-2010
9,028
Posted By rajsharma
Thank Pludi for quick answer. But looks...
Thank Pludi for quick answer.

But looks like AIX 5.3 doesnot seem to have this switch.Is there any other way.

Appreiciate ur help.
Regards,
Raj.
Forum: AIX 12-13-2010
9,028
Posted By rajsharma
Read input data within a specified period of time
Hi All,

I am working on a script which requires an input from user within one 1 min.

So if the user gives the required input within 1 min., it will execute on the basis of input provided by...
Forum: AIX 12-09-2010
3,401
Posted By rajsharma
Thank you so much ROHON for the code help. The...
Thank you so much ROHON for the code help. The explaination was great. I have modified it
as per the requirement and I have just delivered the script.

This forum is amazing , I always got help...
Forum: AIX 12-09-2010
3,401
Posted By rajsharma
Dear malcomex999, Thank for the reply. ...
Dear malcomex999,


Thank for the reply.
Your code is working fine. Thanks for that.
I would apprecaite if you could explain this code.
I am not good in AWK.
Forum: AIX 12-09-2010
3,401
Posted By rajsharma
Hi ROHON, Thanks for the reply. I was...
Hi ROHON,

Thanks for the reply.
I was trying ur solution.

It gives me following error.

script.sh[6]: full - new: 0403-009 The specified number is not valid for this command.
xargs:...
Forum: AIX 12-09-2010
3,401
Posted By rajsharma
Hi ROHON, Thanks for quick reply. I...
Hi ROHON,

Thanks for quick reply.

I want to see the difference.After echoing diff, we can overwrtie it.


Regards,
raj.
Forum: AIX 12-09-2010
3,401
Posted By rajsharma
Rows manupulation using AWK or sed
Hi Everyon,

I am stuck in a script.I have a file named file1.txt as given below:
It contains 2 columns-count and filename.

cat file1.txt
count filename
100 A_new.txt
1000 A_full.txt
1100...
Forum: AIX 08-19-2010
8,053
Posted By rajsharma
Do I need to configure my local windows to FTP files from local windows to a UNIX AIX server?
Hi Friends,


I have this script for ftping files from AIX server to local windows xp.
#!/bin/sh
HOST='localsystem.net...
6,614
Posted By rajsharma
Absolutely Perfect...The reply was perfectly helpfull....
Hi pludi,



Thanks for quick reply, It was a great help.It separates the text from the .xml file.

But i wudlike to understand sed better.The normal syntax of sed for substitution is as...
6,614
Posted By rajsharma
Explanation of the command sed -n -e 's_.*>\(.*\)<.*_\1_p' filename.xml
Hi Friends,


I am trying to modify a script .The script contains this line:

sed -n -e 's_.*>\(.*\)<.*_\1_p' filename.xml


I am not great in sed command.I know, it is regular expression
to...
1,992
Posted By rajsharma
create outputs from other command outputs
hi friends,

The code:

i=1
while [ i -le 50 ]
do
filename=`/usr/bin/ls -l| awk '{ print $9}'`
echo $filename>>summary.csv
#Gives the name of the file stored at column 9
count=`wc -l...
Forum: AIX 06-09-2010
2,141
Posted By rajsharma
Want to move to UNIX admin dept.
Hi everyone,

I work in UNIX AIX and most of the work is related to shell scripting.Now i want to move to the UNIX admin.Can you guys let me how to start about this?Pls provide the links of...
11,837
Posted By rajsharma
Thats i typogrphical error....
I am sorry.for typographical error....Its just the way, u wrote it
"xargs rm"
11,837
Posted By rajsharma
find is now working !!!Thanks "Otheus" and all others
Hi all,
Thanks all for ur quick help especially "Otheus" for quick reply. I used
find /inbound/etl/dev/CMD/ \( -type f -mtime +21 -print \) | rm xargs
I appreciate it a lot.Actually i had to...
11,837
Posted By rajsharma
Thank you all..But I work in AIX, and it doesnot work
Hi friends,
First of all, thank you so much for your help. The following code seems fine
find <directory_name> -type f -maxdepth 1 -mtime +4 -exec print {} \;
But i work on UNIX AIX and it...
Showing results 1 to 25 of 27

 
All times are GMT -4. The time now is 10:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy