Search Results

Search: Posts Made By: akrathi
4,426
Posted By akrathi
You can make this script work after adding the...
You can make this script work after adding the third line
Thanks
Ashok

head -2 $FILE_NAME >Header_$FILE_NAME
CNT=`wc -l $FILE_NAME`-2
CNT=`echo $CNT | awk '{print $1 }'`
tail -$CNT...
6,619
Posted By akrathi
awk -F'|' '{ printf("%20s|%20s|%20s\n", $1,$2,$3)...
awk -F'|' '{ printf("%20s|%20s|%20s\n", $1,$2,$3) }' yy

yy contains your Data

Thanks
Ashok
16,961
Posted By akrathi
--------------------------------------------------...
--------------------------------------------------------------------------------

tr="1234,ram,\"ar,tr\",wer"
echo $tr
#tr="1234,ram,ar,tr,wer"
echo $tr | tr '"' ':' |awk -F":" '{print $1 ,$2,...
3,000
Posted By akrathi
This works in ksh ls 23\\02\\2009
This works in ksh

ls 23\\02\\2009
5,986
Posted By akrathi
Sort
You may want to check the disk space where your /tmp is ?

Thanks
Ashok
23,373
Posted By akrathi
This should work Thanks Ashok cal...
This should work

Thanks
Ashok

cal 07 2007 | cut -c16-18 | tail -4 | head -1
2,531
Posted By akrathi
Getting emials with SUSPECT: Prefix
I got some job running on Sun Unix system, which sends the email to outlook client on windows after completion.

Few of the emails are coming with SUSPECT: prefixes.

I am using unix command...
11,375
Posted By akrathi
yes 'date;sleep 5' | ksh Want to iunderstand...
yes 'date;sleep 5' | ksh
Want to iunderstand this . What exactly is being done here

Thanks
Ashok
2,846
Posted By akrathi
try this : grep '\$' filename Thanks ...
try this :

grep '\$' filename

Thanks
Ashok
2,666
Posted By akrathi
Can you give an examples of the output you want ?
Can you give an examples of the output you want ?
2,666
Posted By akrathi
Try This #! /bin/csh ...
Try This

#! /bin/csh
foreach id (DB4 GH4 CD4)

echo ${id}sf ${id}sfk ${id}pp
end
...
4,522
Posted By akrathi
You may modify this to work for your requirement ...
You may modify this to work for your requirement
Thanks
Ashok

awk '
{
if (...
48,348
Posted By akrathi
Are you using nohup.out as a log file ? I would...
Are you using nohup.out as a log file ? I would think that you can achive same result with

program name >log file

Am i miising something ?

Thanks
Ashok
48,348
Posted By akrathi
why do you need nohup in cron ? just trying to...
why do you need nohup in cron ? just trying to understand

Ashok
5,297
Posted By akrathi
ex - data << end-of-script # give your...
ex - data << end-of-script
# give your removiing creteria over here
#this will delete line number 2

2d
wq
end-of-script
this...
1,771
Posted By akrathi
paste file1 file2
paste file1 file2
82,650
Posted By akrathi
Can you explain why this is not the right way...
Can you explain why this is not the right way oor notr the solution . Just curious


ls -lt `find ./ -name "EL*" -print`
82,650
Posted By akrathi
Try this ========= ls -lt `find ./ -name...
Try this
=========

ls -lt `find ./ -name "EL*" -print`

Displays all the files starts with EL


Thanks
Ashok
1,732
Posted By akrathi
Sorry dude .... Don't think there is way ....
Sorry dude .... Don't think there is way ....
18,254
Posted By akrathi
I mean if you don't delete the the file . For...
I mean if you don't delete the the file . For example
if the shell script is like this

#!/bin/ksh

echo "Hello"
sleep 100
echo "World"

You run the command the script like say...
18,254
Posted By akrathi
I think this is the mechanism to provide command...
I think this is the mechanism to provide command level atomicity.
If you change the script in between it just work as per
new set of commands .
4,245
Posted By akrathi
Error Messages
I have got script like this
#!/bin/ksh -e
function errtrap {
es=$? ...
7,632
Posted By akrathi
Do you suggest any forum for perl where I can get...
Do you suggest any forum for perl where I can get questions and answers like this forum . Actually , I get a very few requirements where I have to use perl .

So thought of watching probably...
7,632
Posted By akrathi
Works Great ... Thanks a lot :)
Works Great ... Thanks a lot :)
7,632
Posted By akrathi
Character position
Hi ,
I am required to view the fixed postion file very often . I am looking for the utility like this

if the file has a one or multile line
abcdefghijklmnopqr

Utility should make my file...
Showing results 1 to 25 of 40

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