Search Results

Search: Posts Made By: ultimatix
Forum: Solaris 04-28-2011
18,473
Posted By ultimatix
It seems the files were compressed on windows (...
It seems the files were compressed on windows ( using WINRAR) and then transferred to unix box .
Dirty way to sort this is ftp these files to your windows system and use winrar software to unzip...
3,917
Posted By ultimatix
Height of scripting imagination :D:D
Height of scripting imagination :D:D
4,060
Posted By ultimatix
ls -lrt filename* | awk -F- 'NR==1{print $NF}' ...
ls -lrt filename* | awk -F- 'NR==1{print $NF}'

the o/p comes at 20101116.txt

ls -lrt filename* | awk -F- 'NR==1{print $NF}' | cut -d'.' -f2

o/p txt

I require only 20101116 as o/p
4,060
Posted By ultimatix
AWK filter
Hi I am using the following to get the filename

ls -lrt filename* | tail -1 | awk {'print$9'}

o/p : filename-20101117

want to extract 20101117 from the filename ..

Pls advise
7,677
Posted By ultimatix
Great , it worked ... (cat mailbody.txt ;...
Great , it worked ...

(cat mailbody.txt ; unix2dos -437 12-MAY-10.csv | uuencode 12-MAY-10.csv) | mailx -s "Explained" "ultimatix@hotmail.com"
7,677
Posted By ultimatix
Yes mate , I did try that Its not getting...
Yes mate , I did try that

Its not getting redirected to /dev/null ...

and getting displayed on terminal ..

Any ideas for thies weird behaviour
7,677
Posted By ultimatix
Hi Methyl It worked perfect . Mial...
Hi Methyl

It worked perfect . Mial delivedred with attachment but got this error mesg on terminal

Can this be suppressed .. I am using Ksh

could not open /dev/kbd to get keyboard type...
1,087
Posted By ultimatix
Appreciate your Keen observation ... Thanks...
Appreciate your Keen observation ...

Thanks mate
7,677
Posted By ultimatix
I am using Sun Solaris .. Tried this .. not...
I am using Sun Solaris ..

Tried this .. not working ...

(cat mailbody.txt) ; uuencode 12-MAY-10.csv uuencode 12-MAY-10.csv | mailx -s "Explained" "ultimatix@hotmail.com"


No ux2dos on my...
7,677
Posted By ultimatix
Thanks mate .. u made my evening :p ...
Thanks mate .. u made my evening :p

---------- Post updated at 08:31 PM ---------- Previous update was at 07:53 AM ----------

Any ideas as to how do i add a body to this messsgae ..

Thanks ...
7,677
Posted By ultimatix
Can not attach using mailx
hi

I know this topic has been discussed a lot in the forum but still couldnt get a exact solution to problem i am facing

I have a CSV file genertaed on Unix box and want to be sent to my...
4,600
Posted By ultimatix
Thanks Birei .. Seems I have cracked it using awk...
Thanks Birei .. Seems I have cracked it using awk i mentioned above .. will post you the contents shortly
4,600
Posted By ultimatix
./test.sh: line 12: /opt/sfw/bin/stat: No such...
./test.sh: line 12: /opt/sfw/bin/stat: No such file or directory
./test.sh: line 12: /opt/sfw/bin/stat: No such file or directory
./test.sh: line 12: /opt/sfw/bin/stat: No such file or directory...
4,600
Posted By ultimatix
hi Getting this error ./test.sh:...
hi

Getting this error


./test.sh: line 12: stat: command not found
./test.sh: line 12: stat: command not found
./test.sh: line 12: stat: command not found
./test.sh: line 12: stat: command...
21,090
Posted By ultimatix
Create a table using shell scripting
Hi

Can we create a rectangular table as i have attached in the query .
This is primarily for populating the created table with data gathered .

Hope I made myself clear ...


Pls suggest ...
4,600
Posted By ultimatix
Capture time of File last created.
Hi ..

I have a list of filenames in a particular file. All thse files get generated in the same directory. No w i want to find out which of thse got generated last and capture that time .
Have...
1,087
Posted By ultimatix
Hi methyl Thanks for ur help ... ur script...
Hi methyl

Thanks for ur help ... ur script tickled my brains gray matter and what i have done is this


curr_date=`date +'%d'`
cntr=0;
while read line
do
if [ -e "${line}" ]
then
if [...
1,087
Posted By ultimatix
hi I am using /usr/bin/sh and SUN Solaris...
hi

I am using /usr/bin/sh and SUN Solaris server

has not yet GNTDand = has not yet been generated and ....
1,252
Posted By ultimatix
Hi Paul ... Excerpts from one of the similar...
Hi Paul ... Excerpts from one of the similar scripts i created for backing up old SQL file . U can modify it accordingly

echo " BACKING UP PREVIOUS SQL FILE ...."
echo " ...
1,087
Posted By ultimatix
Fooling files
I have scenario wherein ...

There are files of same name getting generated on a daily basis .
I have got the file names in a file . Now what my script does is read the file , check for...
1,419
Posted By ultimatix
Thnak all
Thnak all
1,419
Posted By ultimatix
gives o/p as 0 0 Any ideas !!!!
gives o/p as
0
0

Any ideas !!!!
1,419
Posted By ultimatix
Refine awk
Hi
The commnad shows the following o/p

df -kh /abc/bds/ |awk {'print$5'}
capacity
87%

I want the o/p as 87 only
Can we achieve this using a oneliner of sorts

NB : Code tags not...
1,761
Posted By ultimatix
Unix Polling agent
I plan to run a script which will run in background and at predefined times send mails to user . I dont have acees to autosys/ Cron / at jobs

My loop works like this


while (true)
do...
2,536
Posted By ultimatix
Hi Thanks for the reply , any ideas how...
Hi

Thanks for the reply , any ideas how to execute that ...
running short of ideas on this
Showing results 1 to 25 of 126

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