Search Results

Search: Posts Made By: anupam_jash
2,659
Posted By anupam_jash
Hi , You can use the below code for your...
Hi ,

You can use the below code for your required output.

echo "sum,5,4,3,0" | awk -F"," 'BEGIN {OFS=","} { for(i=2;i<NF+1;i++) x=x+$i ; print "sum",x}'

~ Jash
2,493
Posted By anupam_jash
Hi , I have written the below script. Hope...
Hi ,

I have written the below script. Hope this will help you.


#!/bin/ksh

echo "Enter your string containing poly character :"
read input_string

prev_char=`echo $input_string | cut...
2,796
Posted By anupam_jash
Hi , Your code is expecting a # as field...
Hi ,

Your code is expecting a # as field delimeter. In the line "II#JJJ#KKKKKKKKK" it is treating 'II' as the first field and 'JJJ' as second field but it is not treating 'KKKKKKKKK' as third...
5,378
Posted By anupam_jash
you can also use it
perl -pi -e 's/disk0 */disk0/g' filename
2,223
Posted By anupam_jash
try with this
can you please try with this :

awk -F"," '{ for(i=1;i<=NF;i=i+90) { for(j=0;j<90;j++) { printf "%s," , $(i+j) } printf "\n" } }'
1,943
Posted By anupam_jash
Thanks a lot friend . It is working. Regards...
Thanks a lot friend . It is working.

Regards
Jash
1,943
Posted By anupam_jash
problem while deleting a file
Hi ,

In a particular path the below mentioned three files has been created.
-rw-r--r-- 1 edwprod edw 0 Jun 5 00:06 -f%*lock.clock
-rw-r--r-- 1 edwprod edw ...
Showing results 1 to 7 of 7

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