Search Results

Search: Posts Made By: p_satyambabu
1,500
Posted By p_satyambabu
Below are the errors im getting awk:...
Below are the errors im getting


awk: Cannot find or open file 5600050.
The source line number is 1.
awk: Cannot find or open file 5600050.
The source line number is 1.
cat: cannot open...
1,500
Posted By p_satyambabu
For loop, awk command issue
limit.csv data
--------------
5600050 38Nhava
400077 27Bomay



rate.txt data
-------------
38NhaVA
27BomaY
27Bomay


below is my script:


for i in `cat limit.csv`
do
...
1,746
Posted By p_satyambabu
suppose input.txt has below data ...
suppose input.txt has below data


input.txt
---------
38Nhava


grep -i 'nhava' input.txt will return the result though i just grepped for a sub string.

grep -w '38Nhava' input.txt...
1,746
Posted By p_satyambabu
Upper case letter match
Hi,
im able to search for string in a file (ex: grep -w "$a" input.txt). but i have to search for the uppercase of a string in a file where upper case of the file content matches something like...
1,049
Posted By p_satyambabu
the rates.csv file should be like below after...
the rates.csv file should be like below after correction.


rates.csv
----------
23,38Nhava
45,37Newyork
89,Shilang
71,robacca


My intention is to modify the values in 2nd column in...
1,049
Posted By p_satyambabu
Need script logic
i have two csv files (rates.csv, reference.csv) as below.


rates.csv contains Code, respective Zone details

rates.csv
----------
23,38Nhava
45,37NEWYORK
89,SHILANG
71,ROBACCA

...
Forum: Solaris 07-14-2010
5,238
Posted By p_satyambabu
Unis scripting problems
Hi,
in my home directory i have so many files. i want to search for a file,
for example A* and want to get the the last file of the result and then want to search for a pattern in that file.
Can u...
3,656
Posted By p_satyambabu
Need grep command t to search 2 words
hi, in my unix directory i have some files. i want to search for the files which contain 2 keywords(ftp, scp)
Can you please suggest how can i write a grep command to search for those 2 keywords in...
3,656
Posted By p_satyambabu
Thanks scottn, the sed command is working fine. ...
Thanks scottn, the sed command is working fine.
but im unable to understand the command sed 's/.*\///' , can you plz explain?
4,524
Posted By p_satyambabu
need a code to send mail
hi, can you plz suggest how can i write a unix code which contains FROM, TO addressess and an attachment to send a mail from unix server
3,656
Posted By p_satyambabu
Unix file display problms
Hi, i have a file something like this.
$ cat scripts.txt
/opt/scripts/test.sh
/apps/opm/ctmagent/test2.sh
/apps/ascential/global/DS/scripts/test3.ksh
/projects/ascential/V9/env/setup.ksh
......
3,656
Posted By p_satyambabu
For loop problems
Hi, i wrote below FOR loop in my script which goes through every script in scripts.txt file and takes wherever FTP or SCP will be found
but while executing above script, it showing below error
:...
3,656
Posted By p_satyambabu
Grep command problms
Hi i hav a file as below
cat tciftp01.sh
# Assign job variables.
scriptname=ftp01.sh
parms=""
$BIN_DIR/$scriptname $parms
i wrote below line to get ftp01.sh script alone
grep -v "^#"...
Forum: Solaris 05-11-2010
5,238
Posted By p_satyambabu
Thanku, i understood now. ---------- Post...
Thanku, i understood now.

---------- Post updated at 06:47 AM ---------- Previous update was at 02:29 AM ----------

one more question
Suppose i have a file with a line like this:
Sep 2 2007...
Forum: Solaris 05-11-2010
5,238
Posted By p_satyambabu
sorry, its working fine, thanku. can u plz...
sorry, its working fine, thanku.
can u plz explain what will happen if we put 1 infront of $i?
Forum: Solaris 05-11-2010
5,238
Posted By p_satyambabu
Hi, i tried by putting 1 in front of $1 but its...
Hi, i tried by putting 1 in front of $1 but its not working ,
Forum: Solaris 05-11-2010
5,238
Posted By p_satyambabu
hi Jlliagre, the for loop is giving good results...
hi Jlliagre, the for loop is giving good results for the files in above format, but for the files like below:
-rwxr-xr-x 1 oprvdw svemietl 4771 Mar 9 2009 vrc002093j.ksh
-rwxr-xr-x ...
3,656
Posted By p_satyambabu
Thanku, here i have one more question. In my...
Thanku,
here i have one more question. In my script, i wrote a line like this: ls -lrt fva* >x2.xls

while executing the script, it showing o/p as " fva*: list is too big" so it is not creating...
3,656
Posted By p_satyambabu
Unix file redirect problems
hi,
In my script, i wrote a line like this : ls -lrt tpa* > x.xls
while executing the script, it showing o/p as "tpa*: No such file or directory" because there is no files starts with tpa*

now,...
Forum: Solaris 05-10-2010
5,238
Posted By p_satyambabu
in my script, i wrote a line like this : ls -lrt...
in my script, i wrote a line like this : ls -lrt tpa* > x.xls
while executing the script, it showing o/p as tpa*: No such file or directory

instead of server showing this msg, i want my scritpt...
Forum: Solaris 05-10-2010
5,238
Posted By p_satyambabu
one more question, in my script, i wrote a line...
one more question,
in my script, i wrote a line to create a file like this: ls -lrt vrc* > x.xls
but while executing, it showing o/p as /usr/bin/ls: arg list too long
and not showing required...
Forum: Solaris 05-10-2010
5,238
Posted By p_satyambabu
how to check two files exist and theare are not empty
Hi, i hav two files x1.xls and x2.xls. how to write an IF loop to check these two files exist and their size is not empty
1,417
Posted By p_satyambabu
need Unix script to sort
Hi i have a file like this
oprvdw vrc002093j.ksh
oprvdw vrc002092j.ksh
oprvrc vrc045016j.ksh
oprvrc vrc055141j.ksh
svemietl bdw0231185.sh
svemietl bdw0231145.sh

and i need a...
Forum: Solaris 05-07-2010
5,238
Posted By p_satyambabu
Thanks Amit, i have one more question, plz...
Thanks Amit, i have one more question, plz calrify
i have a file lke this:

-rwxr-xr-x 1 oprvdw controlm 4771 Mar 9 2009 vrc002093j.ksh
-rwxr-xr-x 1 oprvdw controlm 4773...
Forum: Solaris 05-07-2010
5,238
Posted By p_satyambabu
Thanks Amit, i hav one more question, PLz calrify...
Thanks Amit, i hav one more question, PLz calrify
i want print as below in 2 lines , plz tell me

root /opt/scripts/prod/fvaauditlos.ksh
root /opt/scripts/prod/fvaexpchbk1.ksh
root ...
Showing results 1 to 25 of 26

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