Search Results

Search: Posts Made By: d_swapneel14
31,934
Posted By d_swapneel14
i think this will work. usr/bin/ file1.txt |...
i think this will work.

usr/bin/ file1.txt | mailx "subject" "mail_id"

Regards,
Swapneel
2,092
Posted By d_swapneel14
Thanks a lot
Thanks a lot for your time and advise

Regards,
Swapneel
2,092
Posted By d_swapneel14
help to retrive data from log file
hi

i have following file.
where i m trying to retrive data on latest date.
let us say we are extracting data from this file for Jun 30 where date is highest date in log file.
here i want to...
11,414
Posted By d_swapneel14
hey i got it thanks
hey
i got it thanks
11,414
Posted By d_swapneel14
hi i tried go statements also. i dont get any...
hi
i tried go statements also.
i dont get any otput on screen.
is prints 1 and then come out from programm

as per my logic i should get output in my file

i dont where i m missing

plz...
5,861
Posted By d_swapneel14
hi i never seen wrong output. but wht is your...
hi
i never seen wrong output.
but wht is your excat case??

cheers
swapneel
11,414
Posted By d_swapneel14
isql output
hi all
i m running following code

# set up environment
. /u/pimms/pimms_global.ksh

echo "Get record from database"
#echo ${PIMMS_ID}
#echo ${PIMMS_PWD}
#echo "1"
isql -U${PIMMD_ID}...
1,569
Posted By d_swapneel14
change only selected line
hi

i dont know how to go abt this? as i m new to unix.
i have file say as xct. in file there are so many commands.
[ frankly its crontab file]. now here i m accepting new cron settings from...
22,346
Posted By d_swapneel14
hi it also returns ls -lg output i dont know...
hi

it also returns ls -lg output i dont know how to avoid that
can u guide me on same.

regards,
swapneel
81,208
Posted By d_swapneel14
hi write your ls commad in crontab and make...
hi

write your ls commad in crontab and make it run for each minute..
2,581
Posted By d_swapneel14
hi u need to pass file name to new script. ...
hi

u need to pass file name to new script.
see this thread

https://www.unix.com/showthread.php?t=26603
22,346
Posted By d_swapneel14
hi try this ls -lg | awk '// { ...
hi

try this

ls -lg | awk '//
{
if(length($7)==4)
{
print $8,$7
}
else
{
print $8, system("date +%Y")
}
}'

it will prints file name and year - if exists...
22,346
Posted By d_swapneel14
hi it does not work on unix. i dont know if...
hi

it does not work on unix. i dont know if there is any command for this query. As i m new to unix/linux/

here one logic im trying to use.. when we do ls-l
in resultant set -- update...
3,699
Posted By d_swapneel14
hi wht does this code do? ...
hi

wht does this code do?

rej=${file##${file%???}}

thanks
swapneel
2,581
Posted By d_swapneel14
hi first chk it out in debug mode. ...
hi
first chk it out in debug mode.

otherwise use complete path with filename instead of only filename. use "pwd"

hope so it works.


regards,
swapneel
21,145
Posted By d_swapneel14
thanks a lot
hi matrixmadhan

thanks dude. i got it.
its is working fine. thanks a lot.

Regards,
swapneel
21,145
Posted By d_swapneel14
hi abhijeet,matrixmadhan see i have some...
hi abhijeet,matrixmadhan

see i have some shellcomads in crontab.
i my trying to write a script which will ask abt the
new time and new date ....


see here line numbers are same. measn if i...
21,145
Posted By d_swapneel14
edit crontab without -e
hi

i need to change crontab settings as
minute,hour,day of month,month year,day of week
certain times. for that i need to go as crontab -e. i want to avoid that as its creating many problems in...
3,728
Posted By d_swapneel14
all the best
hi

i m not sure. i will post actual code tommarow.

First - read a file into vaiable like
read var < cat filename [ test]

Next start a for loop by using number of lines in a file [ test]
...
1,628
Posted By d_swapneel14
sed 's/address1/address2/g' filename dont...
sed 's/address1/address2/g' filename

dont forget to use g - for global by defulat it consider 1

Cheers!!

swapneel
1,957
Posted By d_swapneel14
hi make sure that if u r accessing any file...
hi

make sure that if u r accessing any file from particular path.. then specify complete path while accessing that file.

like u r reading a content of file - as name test. and
path for this...
8,773
Posted By d_swapneel14
hi try ls */ or visit this page...
hi

try ls */

or

visit this page http://www.computerhope.com/unix/uls.htm
and have a look at directoy of file

Cheers

Swapneel
46,808
Posted By d_swapneel14
hi Perderabo ya its working fine. but...
hi Perderabo

ya its working fine. but frankly i m not able to understand
-en;ba parameters...

sed '-e/swap/{;s/swap/swap1/;:a' '-en;ba' '-e}' <filename

could you plz explain us its...
8,773
Posted By d_swapneel14
ls -d */ Only list the directories in the...
ls -d */

Only list the directories in the current directory

cheers

swapneel
8,773
Posted By d_swapneel14
ls -d */ Only list the directories in the...
ls -d */

Only list the directories in the current directory

cheers

swapneel
Showing results 1 to 25 of 57

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