Search Results

Search: Posts Made By: RahulJoshi
2,483
Posted By RahulJoshi
Cool it worked
Cool it worked
2,483
Posted By RahulJoshi
When trying to open file Message:-Terminal too wide?
Hi,

I am trying to open small size file only in vi editor on solaris or Linux machine
but it giving message "Terminal too wide" and then I have to come out.

As shown below:-

-rwxr-x--- ...
1,783
Posted By RahulJoshi
What are cron and crontab, and how do I use them?...
What are cron and crontab, and how do I use them? - Knowledge Base (http://kb.iu.edu/data/afiz.html)
Looks you need to understand syntex ,read this page will solve your problem
1,447
Posted By RahulJoshi
not think that help * My is Linux: ...
not think that help
*
My is Linux:
_____________________________________
$ du -h DIR_A/
40M DIR_A/CDC
1.6M DIR_A/DQI/dqiadhoc-431
du: cannot read directory...
1,447
Posted By RahulJoshi
How to Calculating space used in GB for any particular directory in UNIX?
How to Calculating space used in GB for any particular directory in unix



Currently I am using : df -h which gives me space for each mout point

ldndyn1:/vol/v01/dyn/sbcexp/dyn
...
1,368
Posted By RahulJoshi
i want to understand bit:- why you wrote 1 after print command in awk
awk 'NR==1 {print "new information"}1' oldfile > newfile
above command is working well.
i want to understand bit:- why you wrote 1 after print command in awk

below "1" i am asking for :
...
1,368
Posted By RahulJoshi
How to append data in file at start of file?
In unix - how to append data in start of file ?

Please advise.

Thanks
14,832
Posted By RahulJoshi
thanks for advise ....actually was not in touch...
thanks for advise ....actually was not in touch with unix script from 1 year :)
anyway thanks for prompt checking and replying on site
14,832
Posted By RahulJoshi
thanks Subbeh !!! it worked for me :) Could you...
thanks Subbeh !!! it worked for me :)
Could you please explain how it works ?
14,832
Posted By RahulJoshi
How to Remove comma as last character in end of last line of file?
how to Remove comma as last charector in end of last line of file:



example:

input file
---------------

aaaaaa,
bbbbbb,
cccc,
12345,

____________

output file :
-----------...
953
Posted By RahulJoshi
For loop in older version of ksh
When I am trying to use below code of for loop on older version of ksh

it not working,and I just want to use only FOR loop
-----------------
for i in (1..5)
do
echo $i
done...
15,853
Posted By RahulJoshi
Pravin ,can you please describe me this command...
Pravin ,can you please describe me this command how it working?

this command working on ksh but not worked for bash shell?

RJ
15,853
Posted By RahulJoshi
Julian date to Calendar date conversion
Hi all,

I require to convert julian date to normal calander date in unix

for eg julian date=122

now i want corresponding calander date

----------------------------------------
gr8 if...
1,060
Posted By RahulJoshi
the code given as solution is nothing but reading...
the code given as solution is nothing but reading the output file from /tmp it is indisual script just using variable of origional script you can put in end of your origional script.

----------...
42,357
Posted By RahulJoshi
just give input file and output file...
just give input file and output file .........till now everything goes confusion
4,414
Posted By RahulJoshi
set a=3 set D1="5/21/2010 9:14:00 AM" set...
set a=3
set D1="5/21/2010 9:14:00 AM"
set D2="5/24/2010 7:23:00 AM"
set DDM=$((($(date -d "$D2" +%s)-$(date -d "$D1" +%s))/60))
Variable syntax
printf "%s:%02d\n" $((DDM/60)) $((DDM%60))...
2,042
Posted By RahulJoshi
> echo 1,2,3,4 | sed 's/,/\n/g' output :1n2n3n4...
> echo 1,2,3,4 | sed 's/,/\n/g'
output :1n2n3n4
&
> echo 1,2,3,4 | awk 1 RS=,
output
awk: syntax error near line 1
awk: bailing out near line 1

both not work suggest please
5,373
Posted By RahulJoshi
file contain: This is the best site I have...
file contain:
This is the best site I have never come across. The best one indeed.
Very best site to post queries.


SED NOT WORKING : sed 's/ /\n/g' file1
...
5,373
Posted By RahulJoshi
Using sed I want to replace space by newline
Input:
--------------------------
123asd 456sdasda 789a
-------------------------

output wanted:
---------------------
123asd
456sdasda
789a
----------------------

I want this by sed...
2,718
Posted By RahulJoshi
problem not clear ,make it with example input
problem not clear ,make it with example input
2,995
Posted By RahulJoshi
better you make spool of all qurey and the grep...
better you make spool of all qurey and the grep from that file and then put loop on each record of file .because each time connecting in sql takes cycles of db and take time :-)
1,793
Posted By RahulJoshi
no it's not working i am using SunOS
no it's not working

i am using SunOS
1,793
Posted By RahulJoshi
In vi editor I want to replace next line char by space
in vi editor I want to replace next line char by space

help me

eg:
input:

123
123
123

output:

123 123 123
6,376
Posted By RahulJoshi
sed 'h; s/.* //; s/.\{8\}/& /g; x; s/[^ ]*$//; G;...
sed 'h; s/.* //; s/.\{8\}/& /g; x; s/[^ ]*$//; G; s/\n//' file1


please explain this code many thing I have not understand or aware of:-)
1,587
Posted By RahulJoshi
USE this: awk 'BEGIN{OFS="\t";i=1;print "x\t\t...
USE this:
awk 'BEGIN{OFS="\t";i=1;print "x\t\t y\tgroup\t\tz"} /^$/ {i++}$1~/[0-9]/ && $2 ~/[0-9]/ {print $2,$3,$4,i}' file
Showing results 1 to 25 of 145

 

Featured Tech Videos

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