Search Results

Search: Posts Made By: ammu
6,173
Posted By ammu
Hi, My problem is i have a situation where i...
Hi,

My problem is i have a situation where i will move some files to a directory and run a job outside unix and after completion of that job i will move some more files to unix path.

I need to...
6,173
Posted By ammu
Count number of files in directory excluding existing files
Hi,

Please let me know how to find out number of files in a directory excluding existing files..The existing file format will be unknown..each time..

Thanks
17,426
Posted By ammu
Thank You Guys! It works like a charm!
Thank You Guys! It works like a charm!
17,426
Posted By ammu
number of words in delimited string
Hi,

I'm looking for one liner code for counting number of words in a delimited string..

I know about wc -w ..but if i give wc -w a.txt,b.txt it won't work with delimited sting as it was looking...
1,792
Posted By ammu
Insert a line grepping a file
Hi

I have a file name file1.txt & file2.txt which looks like below

file1.txt

Name=alan
Name=math
Name=don

file2.txt

afdsfsdf
asdfasdfsd
sdfsd
dsfas

Now I have to grep for all...
1,208
Posted By ammu
Log files to be deleted based on runs
Hi
I need to delete log files created by my application jobs. Say If I have log files
created by jobs as below

File Name Date/time generated
job1.log.01292010 ...
27,391
Posted By ammu
Delete a line in a file starting with - Perl one-liner
Hi

I need a perl onliner to delete a line in a file starting with few words.
Example

file.txt
----------
my name is don
I live in London
I am woking as engineer

I want to delete a line...
3,259
Posted By ammu
Thanks for quick reply. It is failing with...
Thanks for quick reply.
It is failing with below error

awk: syntax error near line 1
awk: bailing out near line 1
3,259
Posted By ammu
one liner needed
Hi

I have a file say (a.txt) which has following

a.txt
----

$$var1=Tom
$$var2=Kim

I need a one liner which searches the file(a.txt) for $$var1 and returns the value in it(Tom).
...
1,613
Posted By ammu
Add a line to a file
Hi
I want to search for a string and add a new line after that line in the file.
Say I have a file

Input file
adfad
aadfsdfsa
adfadsf
<name>TypeOptions</name>
adfdasf
adfad
adfad

...
3,362
Posted By ammu
This is bit different. Here i need to look for...
This is bit different. Here i need to look for occurence of both 'hai' and 'world' and replace all occurence of that. That doenst replace all occurence. I tried a lot.
Can some please help me
...
3,362
Posted By ammu
search and replace in a file
I have a file (say file1.txt) and I have to search for a line which has a text replace it and replace another string too in the same line.
Eg:
file1.txt
--------

x='hai' y='world' z='unix'...
2,387
Posted By ammu
Thanks
Thanks
2,387
Posted By ammu
go to a line and replace
I have a file (say file1.txt) and I have to search for a line which has a text replace it and replace another string too in the same line.
Eg:
file1.txt
--------

x='hai' y='world' z='unix'...
12,288
Posted By ammu
When i added echo statement,output gave correct...
When i added echo statement,output gave correct file name and i have tested second ftp manually added the file name to get statement and the error message did not appear. But how to automate this...
12,288
Posted By ammu
I'm not renaming i need the same file name .and...
I'm not renaming i need the same file name .and the files not even ftp'd once to local server :)
12,288
Posted By ammu
passing parameter to ftp script from output of another ftp
Hi,

I have a ftp script which first gets all the file names and echo's the latest file.

I'm using another ftp command sets to get the file name given by first ftp. The problem is the parameter...
2,974
Posted By ammu
It is giving this message: ...
It is giving this message:

/opt/path/dev/data/output*:not found
2,974
Posted By ammu
ftp the latest file from unix to windows
Hi,

I have a ftp script to ftp files from unix to windows. Now i need to pull the latest file from unix to windows. It is not working.

ftp -nvi $SERVER > ${FILE_DIR}/NavigationftpLog << EOD...
7,262
Posted By ammu
Hi, This is my script. #!/usr/bin/sh ...
Hi,

This is my script.

#!/usr/bin/sh

PROG=`basename ${0}`
EXIT_STATUS=0
NOW=`date`
echo "${NOW} ${PROG} Initialization..."
DSHOME=C:/IBM/InformationServer/Server/DSEngine...
7,262
Posted By ammu
Any ideas about doing this. Please advice!
Any ideas about doing this. Please advice!
7,262
Posted By ammu
Is there any other method instead of manually...
Is there any other method instead of manually entering the key. This script is used for scheduling purpose.
7,262
Posted By ammu
Executing unix script on windows through MKSToolkit
hi,

I have an unix script and i'm executing from command prompt in windows.
The script is exiting immediately when i call the script.But the script is getting executed at the back end.

But...
1,311
Posted By ammu
Thanks It is working fine.
Thanks

It is working fine.
1,311
Posted By ammu
HI, It is not working.It has not replaced.
HI,

It is not working.It has not replaced.
Showing results 1 to 25 of 88

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