Search Results

Search: Posts Made By: eawedat
11,530
Posted By eawedat
How to Reverse a sentence in linux ? (bash/cshell)
hey all,

If I have the given sentence.

I like bobo.

How could I reverse it to be :

.bobo like I

I am NOT talking about reversing words or characters by using rev. I am talking about...
2,493
Posted By eawedat
cshell reading file line by line
hey all,

I have this code :


#!/bin/tcsh -f

set line=($<)
while($#line > 0)
echo $line[1]
set line=($<)
end



the usage to run the script would be :

./file < file2

Is there a...
1,162
Posted By eawedat
Getting Same Lines from File(BASH)
hey all,

./test

#!/bin/bash
for line in $(cat data1)
do
echo $line
done


data1

ello there
nobody says a word


Output after running the file :

hello
1,964
Posted By eawedat
Bash Sockets ?
hey all,

I have got these two examples of sockets:



#!/bin/bash

# Config
NICK="UNIX-bot"
SERVER="example"
PORT=5555
CHANNEL="#de"


exec 3<>/dev/tcp/${SERVER}/${PORT}
echo "NICK...
Forum: Ubuntu 08-30-2011
1,921
Posted By eawedat
thank you radoulov:)
thank you radoulov:)
Forum: Ubuntu 08-30-2011
1,921
Posted By eawedat
execute command when Ubuntu boots up ?
hey all,,
I want to add comments when Ubuntu starts up..
now I know that there is a directory called /etc/init.d
which I can place my scripts there to run them at Ubuntu's startup..

but I...
Forum: Ubuntu 08-27-2011
1,994
Posted By eawedat
yes,, I did.
yes,, I did.
Forum: Ubuntu 08-27-2011
1,994
Posted By eawedat
Add Option To Right Menu
hey all,

I already installed nautilus-actions
now , I want to add "print path" script(option) to the right context menu!..

I did :

http://img853.imageshack.us/img853/6973/59818245.png
...
63,032
Posted By eawedat
easy & fast :) thank you xbin:)
easy & fast :)

thank you xbin:)
63,032
Posted By eawedat
How to loop(Iterate) through List with foreach(csh)
Hey all,,

I know cshell is harmful:) but I am using this just "to know" - for educational purposes!... not for a long-term use.

lets say i have a list..


set arr=(x y z e f)


I wanna...
1,249
Posted By eawedat
thank you very much Aia:) sorry for the late......
thank you very much Aia:)
sorry for the late...
thanks danmero

---------- Post updated at 12:02 PM ---------- Previous update was at 10:37 AM ----------

Do Expansion work with csh? because I...
1,116
Posted By eawedat
Numbering file's lines
hey

a file called test :
Code:


hey1
hey2
hey3
........


how to :
Code:


1.hey1
2.hey2
3.hey3
..........
1,249
Posted By eawedat
Shell Expansion Question
hey all,


x="a1 b1 c2 d2"

echo ${x#*1} b1 c2 d2
echo ${x##*1} c2 d2
echo ${x%1*} a1 b

echo ${x%%1*}
a


what does one # stand for?
what does two ## stand for?
what does % mean?...
Showing results 1 to 13 of 13

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