Search Results

Search: Posts Made By: amit.mathur08
3,360
Posted By amit.mathur08
Thanks methyl but due to security reasons I...
Thanks methyl but due to security reasons I cannot paste the output of env command. Can you suggest me to do something, if you like pls?
3,360
Posted By amit.mathur08
Usually we donot recieve such errors. I think its...
Usually we donot recieve such errors. I think its due to OS and its version with which i am not much familiar.
I am getting an error as below:
cp: not found

my code is:

DAY=$(date +%a)
if...
3,360
Posted By amit.mathur08
Hi All, Thanks for your response. What...
Hi All,
Thanks for your response.
What itkamaraj has suggested me worked correctly.

I am using SunOS version 5.10
Using sh shell.

-----------------------
Now as above has worked for me,...
3,360
Posted By amit.mathur08
Hi Banned, When I do so, see the error below: ...
Hi Banned,
When I do so, see the error below:

------------------
$ echo `date -d "+3days" + %Y-%m-%d`
date: illegal option -- d
usage: date [-u] mmddHHMM[[cc]yy][.SS]
date [-u]...
3,360
Posted By amit.mathur08
Unable to add date to current date.
Hi,

I am trying to display future date from the current date but unable to do so in UNIX (not in PERL). For eg: if today is March 5 then I want a variable wherein I can store Mar 7 date, but...
1,428
Posted By amit.mathur08
Conf file entry.
Hi,

Lets say I have a script which reads a conf file (say MASTERFILE) line by line to fetch file_name, source_path, dest_path. But currently, here the file name are static for eg: ABC.txt or...
4,897
Posted By amit.mathur08
Worked!!!!. thanks
Worked!!!!. thanks
4,897
Posted By amit.mathur08
If -elif-else error.
I am getting below error from this code (which is at line 24):

if [["${File_count}" -gt 0 && "${File_flag}" == "Y"]] #this is line24 in code
then
mv $File_source_path/$File_name...
2,068
Posted By amit.mathur08
Thankyou Rohan... Much appreciated....:) so...
Thankyou Rohan...

Much appreciated....:) so nice of you.
2,068
Posted By amit.mathur08
Last 2 questions :) 1.) It means if sh123,...
Last 2 questions :)

1.) It means if sh123, sh1234, sh12345, these all have more than 15 files for each process then all 3 process will get killed thorugh this code i.e 123, 1234 and 12345? ...
2,068
Posted By amit.mathur08
Thanks Rohan. But as you hae mentioned in your...
Thanks Rohan.
But as you hae mentioned in your post 2 that
"This is only for 1 time. If u want this to be monitored then run while loop again in loop."

I would like to run it again and again for...
2,068
Posted By amit.mathur08
Update Post #3 ---------- Post updated at...
Update Post #3

---------- Post updated at 06:27 AM ---------- Previous update was at 06:26 AM ----------

Also please let me know what backslah '\' is doing here in sed?

sed 's/\..*//g'
...
2,068
Posted By amit.mathur08
Thanks But: process id to kill the process I...
Thanks But:

process id to kill the process I need to take from file name.

if sh1234.1 is a file name then process id is 1234
if sh123.2 is a file name then process id is 123

How can i pass...
2,068
Posted By amit.mathur08
Pattern Matching
Hi,

There is requirement wherein I want to search particular file names in a folder.
Now its not quite straight forward. Below are the examples:

sh123.1
sh12345.1
sh1234.1
sh1234.2
sh123.2...
9,017
Posted By amit.mathur08
"When I open the file in unix using vi there are...
"When I open the file in unix using vi there are no spl char and also each record is its own line. But when I email the same txt file as attachment, it has Ctrl M char and also each record is NOT in...
9,017
Posted By amit.mathur08
Sure. I will love to share the solution as there...
Sure. I will love to share the solution as there is no amendments are required in your unix script. All you need to do is to change the setting of your outlook.

So here we go:
I am assuming...
2,715
Posted By amit.mathur08
I want the function to does 2 actions: 1.)...
I want the function to does 2 actions:

1.) print the passed arguments
2.) and whatever it will print should be on the top of the file/screen.

See the example I have given aboove with...
41,758
Posted By amit.mathur08
cat file.csv | mail -s "test" example@example.com...
cat file.csv | mail -s "test" example@example.com

can u gimme an example here.....
above is the command I am using, now how I can add HTML content.
2,715
Posted By amit.mathur08
further to this, I want to echo some...
further to this,

I want to echo some comntent on the top of my file based on the if-else statement.
for eg:

Function_case() {
#statements.......with choices 1,2,3,4...
case $1 in
1) echo...
2,715
Posted By amit.mathur08
Function_case() { #statements.......with...
Function_case() {
#statements.......with choices 1,2,3,4...
case $1 in
1) echo "you" ;;
2) echo "me" ;;
*) echo "someone else" ;;
esac
}

Above part is fine...i got it. but now I need to...
41,758
Posted By amit.mathur08
how can i connect this HTML code with my unix...
how can i connect this HTML code with my unix script?
Can i write this code in my unix script?
I am using mail -s command to send an email to mailbox.
1,220
Posted By amit.mathur08
Thanks :) Worked:) I m happy.
Thanks :)
Worked:) I m happy.
1,220
Posted By amit.mathur08
grep problem with date
Hi,

can you correct the below syntax for me?

echo `grep "Issue" new`date +'%y%m%d'`.csv`

I am not able to execute above.

PS: "Issue" is a keyword I am seraching in a new<date>.csv
I...
41,758
Posted By amit.mathur08
No Not html email. It is just a plain text...
No Not html email.
It is just a plain text email.
Now any inputs?
2,715
Posted By amit.mathur08
Yes. I thought so. But my requirement is bit...
Yes. I thought so.
But my requirement is bit different. I want to pass argument to a function from if-else statement which resides outside the function in the same script.
Any help?
Showing results 1 to 25 of 50

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