Search Results

Search: Posts Made By: askumarece
1,524
Posted By askumarece
Is there any way to get the exact value which I...
Is there any way to get the exact value which I enter in the textarea (in my HTML form) in shell script?
1,524
Posted By askumarece
Problem with while reading HTML inputs in cgi script
Hi All,

I am not able to read my HTML form inputs properly in my script.
I have a textarea in my form where user needs to enter sql query... but when user enter query like below :
select *...
3,224
Posted By askumarece
how to include "*" in echo command????
Hi All,

I am doing one simple web tool. I have a HTML as my front end and cgi as my backend. Here my pb is when I assign the html form input to a variable in my script, it is not accepting the...
6,350
Posted By askumarece
Sorry... I forgot add this line in my input...
Sorry... I forgot add this line in my input file.... If I have the below line in my file then it will not work....

something something oldtext

So it will not work.....
6,350
Posted By askumarece
I tried with this cmd : sed -e...
I tried with this cmd :
sed -e 's/oldtext/newtext/g' $file

but it is repalcing all the lines... :-(
6,350
Posted By askumarece
Replace fixed strings only
Hi All,

I just need to do find and replace in a file....
say for eg I have the input file like below:
in.txt
#####
oldtextoldtext
oldtext
oldtext
oldtext
oldtext123
oldtext-
...
1,864
Posted By askumarece
Thanks vgersh99... It works....... :-) ...
Thanks vgersh99... It works....... :-)

expand -t 5 abc.in > abc.out
1,864
Posted By askumarece
can v add 'n' of spaces by a single command?
Hi All,

I just need to check for 'tabs' in my input file and need to replace all tabs into 'n' no. of spaces. Say for example if I give NO_OF_SPACE=5, then it should replace all tabs with 5 spaces...
9,099
Posted By askumarece
thanhdat, I have to use all the 5 vi...
thanhdat,

I have to use all the 5 vi commands in my script to do alignment. But I don't know that how can I execute "vi" commands in shell script?
9,099
Posted By askumarece
how do execute "vi" commands in shell script?
Hi All,

I need to execute the following "vi" commands in my script. How can I do that??
pls help me....

1. escape (escape mode)
2. gg (goto first line)
3. shift+v (visual mode)
4. shift+g...
3,703
Posted By askumarece
I just need to correct the indent of each line as...
I just need to correct the indent of each line as per java standards....

Say for eg if have a input like below :
#######
import java.util.Date;

public class Test {

public static void...
3,703
Posted By askumarece
Script needed to align java/c/C++ code
Hi All,

Does anyone has script to align java/c/c++ code? or pls advice

I need it very badly...... :-(

Thanks in advance
2,131
Posted By askumarece
vgersh99, yes you are correct....... "nawk"...
vgersh99,
yes you are correct....... "nawk" works fine in my machine.

Thanks all
2,119
Posted By askumarece
How to add 'n' of tab char?
Hi All,

I need to add 'n' no. of tab char (\t) in a file thro' a script. Say for example if I give 5 as input then my script should give the all the lines with 5tabs.

Input File :
#######...
2,131
Posted By askumarece
Yes, I am giving absolute path for both...
Yes, I am giving absolute path for both IN_FILE_NAME and OUT_FILE_NAME.
like this :
awk 'NR>=39&&NR<=41' /export/home/sa156s/RdsTestClient.java | tee /tmp/align.11557

but still facing the same...
2,131
Posted By askumarece
Getting err with 'awk' command
Hi All,

I am trying to run the below cmd thro' a script.

awk 'NR>=48&&NR<=(58-1)' $IN_FILE_NAME | tee $OUT_FILE_NAME

but I am getting an err while running the script. It gives the below err...
13,674
Posted By askumarece
"sed" command is not working in shell script
Hi All,

I am not much strong in shell scripting...
I am using sed command in my script to find and replace a string.......

This is how script looks :
#############
#!/usr/bin/ksh
...
8,154
Posted By askumarece
Alternatively you can use the simple "tr" command...
Alternatively you can use the simple "tr" command to do this..
for eg :
$str=",,,ch,ecking,"
$echo $str | tr -d ","
O/P --> $checking

Thanks,
Saravana
33,927
Posted By askumarece
This is the file contents : ...
This is the file contents :
------------------------
package com.att.iom; line 1
[space][space]package com.att.iom; line 2
[space] package com.att.iom; line 3
[space][space][space][space]...
33,927
Posted By askumarece
Vino, see the o/p : Which I got line #6 is not...
Vino,
see the o/p : Which I got line #6 is not there.... How to grep including the lines which starts with [tab]....
O/P:
----
sa156s@::/export/home/sa156s> grep '^[ \\t]*package com.att.iom;'...
33,927
Posted By askumarece
Yeah I tried.... But it is ignoring the lines...
Yeah I tried.... But it is ignoring the lines which are being stored with tab insteadof space.....
for eg:
if i have the following lines in my file :
package com.att.iom; line 1...
33,927
Posted By askumarece
Jim, Is it possible to get zero or more...
Jim,
Is it possible to get zero or more white spaces b4 the pattern??

Bez i have a file which looks like this.......
File Content :
---------------
package com.att.iom; line 1
[single...
33,927
Posted By askumarece
jim, thanks a lot.... sorry for making u in...
jim,
thanks a lot.... sorry for making u in confusion....
33,927
Posted By askumarece
I want to grep for the lines w/ spaces before the...
I want to grep for the lines w/ spaces before the words. Can you give me the grep command for this?
33,927
Posted By askumarece
Jim, But it will miss the lines which are...
Jim,
But it will miss the lines which are having spaces b4 "package com.att.com;" I need to grep that also.....
Showing results 1 to 25 of 26

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