Search Results

Search: Posts Made By: ecearund
954
Posted By ecearund
Reg. Environment variables
cat s1.ksh
----------------------------------------
Initialize()
{

while getopts :s:S: arg
do
case $arg in
s|S) SCHEMA=$OPTARG ;;
esac
done
}


Initialize $*...
2,662
Posted By ecearund
Thanks Once again Man. Its working as...
Thanks Once again Man.

Its working as expected.
2,662
Posted By ecearund
Thank you ctsgnb. Its printing correctly. ...
Thank you ctsgnb.

Its printing correctly.

But how I can assign the values to my variable 'var'
2,662
Posted By ecearund
Assign values to variable
Hi Masters,

I want to assign the values of one variable to another variable.

Here the varaible name 'var' is dynamic. I know the values of V_2 and U_3, but
If the i/p of TYPE is 'U' and the NO...
2,337
Posted By ecearund
Sorting - Reg.
Hi masters,
I have one doubt,
lets's say file1 has the following contents,
1
2.0
3.1
5.5
7
5.10
5.9

How to sort these contents to get the o/p like
1
2.0
3.1
5.5
5.9
5.10
7
2,681
Posted By ecearund
Appending the contents of two files in computational manner
Hi,

I have two files say file 1 file 2
File1
1
2
4
5
File 2
asdf
adf

How to get the ouput something like
asdf1
adf1
asdf2
adf2
asdf4
adf4
asdf5
2,891
Posted By ecearund
Diff b/w 2 files
Hi Masters,

I have two files named file1 and file2.
Both the files contains the same contents with some difference in comments,space.But no content change.

I tried to find the diff between the...
3,715
Posted By ecearund
Try this sed -e '/^:/d' b.sql > c.sql ...
Try this

sed -e '/^:/d' b.sql > c.sql

Where, Contents of i/p File : b.sql
1,348
Posted By ecearund
Hai colemar. Thank you dear.. Yes, Ur...
Hai colemar.

Thank you dear..
Yes, Ur suggession is really solves my problem..
Do well..
1,348
Posted By ecearund
Some Junk contents.
Hai Masters,

When i m trying to do comparing some 600 files of filename and size from server 1 with same from server 2.

Server1:
You when i m trying to do the following cmd.
ls -lrt | awk '{...
2,473
Posted By ecearund
@ravi, Try this one too.. sed...
@ravi,

Try this one too..
sed 's/ravi/xxx/g;s/xxx30/ravi30/g' File_name

Hope it will work fine...
1,546
Posted By ecearund
@prav076, For example if u want to find a ...
@prav076,

For example if u want to find a file name has a pattern say "sed" means.

find . -name "sed*" -print --------------case sensitive
find . -iname "sed*" -print --------------case...
23,031
Posted By ecearund
@siri, Just do diff b/w the two tar files. ...
@siri,

Just do diff b/w the two tar files.

diff -ibw file1.tar file2.tar
O/P: Binary files file1.tar and file2.tar differ.
But it will not show the difference.

cmp file1.tar file2.tar
The...
5,528
Posted By ecearund
@lmatlebyane, Try this, The...
@lmatlebyane,

Try this,

The following command rename the files in the directory.

rename 1.pdf .pdf *1.pdf

This one replace all the contents in the files whichever filename ends...
6,158
Posted By ecearund
Thats Fine man.. Ya, now its working fine.. ...
Thats Fine man..
Ya, now its working fine..
Great Frank.
6,158
Posted By ecearund
Hai Franklin. Thank you Frank.. This one...
Hai Franklin.

Thank you Frank..
This one "linuxcommands.sql >new.sql " is working fine..

But that awk script is not woking.
6,158
Posted By ecearund
Hai Franklin, Fine... Its working for...
Hai Franklin,

Fine...
Its working for replacing the spaces..
Is it possible to remove the leading n characters frm all the lines
Note: n characters may be spaces or number or characters.
...
6,158
Posted By ecearund
@Hammadi dali, No man, its not working.. ...
@Hammadi dali,

No man, its not working..
See
Yes by using your script,
E.g
echo " sdfsdf" | sed 's/^ /zzz/g'

Then the o/p is zzzsdfsdf.

But for example if a file contains content as...
6,158
Posted By ecearund
Replace space
Hai masters,

If a file contains content of 2000 lines,
from which i need to remove the first n characters or first n spaces from each line of the file.

If suppose to remove n characters or...
3,979
Posted By ecearund
Hai all.. Thakyou for your kind response.. ...
Hai all..

Thakyou for your kind response..
Keep rocking...
3,979
Posted By ecearund
Renaming a file
Hai masters,

Suppose i have so many files named xxxx.ksh.tar, yyyy.ksh.tar and so on.
My requirement : i want to rename all the files with extension ".ksh.tar" to ".tar" in my directory.
Could...
Showing results 1 to 21 of 21

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