Search Results

Search: Posts Made By: chandrakanth
1,094
Posted By chandrakanth
How to append in the beginning not at the end?
Hi,

I now that >> will append text to the end of the text that is already inside the file.
How to append the new text infront of the text that is already in the file.

Thanks for any input.
...
16,205
Posted By chandrakanth
Thank You Both. Understood. Regards, ...
Thank You Both.

Understood.

Regards,
Chandu
8,183
Posted By chandrakanth
Help: code
Why am i getting notifications to use codes? What are they ? How to choose a Code? What is their purpose?

Regards,
Chandu
16,205
Posted By chandrakanth
Hi Dave, 1. I don't want to create another...
Hi Dave,
1. I don't want to create another file, i just want to sort the contents of the Test file itself.

Thanks for your help.

Hi Don,

But, I have no idea how you got two lines in your...
16,205
Posted By chandrakanth
How to save sorted content of a inside the same file?
Hi All,

When i use sort Test, here is the output:
[ha@cs ~]$ sort Test
a
b
b
c
d
e
f
g
h
i

But the contents in the file remain unsorted, how to do that?

]$ cat Test
g
i
28,085
Posted By chandrakanth
Hi Don, This is not a Homework assignment. I...
Hi Don,

This is not a Homework assignment. I just started learning shell programming.

Thanks for your inputs.

Regards,
Chandu
28,085
Posted By chandrakanth
So "" is used to print the value of a variable. ...
So "" is used to print the value of a variable.

Regards,
Chandu
28,085
Posted By chandrakanth
Thanks Both, Both the codes worked for me. ...
Thanks Both,

Both the codes worked for me.
Can you guys help me understand when to use "" and ' ' and $() ?
Or direct me to a link that explains these.

(I'm new to linux and shell...
28,085
Posted By chandrakanth
Display calendar in correct format using shell script
Hi All,

I'm trying to print calendar using shell script and i'm able to print it. But the format is not good.

Here is the script.
#!/bin/bash
echo $(date)
echo "Hello $USER"
echo Hostname...
Showing results 1 to 9 of 9

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