10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
here is what i want to achieve.. i have a file with below contents
cat fileName
blah blah blah
.
.DROP this
REJECT that
.
--sport 7800 -j REJECT --reject-with icmp-port-unreachable
--dport 7800 -j REJECT --reject-with icmp-port-unreachable
.
.
.
more blah blah blah
--dport 3306... (14 Replies)
Discussion started by: vivek d r
14 Replies
2. UNIX for Dummies Questions & Answers
I have code that accepts input from a user, and when the user hits enter it is supposed to delete that whole line from the file.
echo "Which record? "
read record
sed '/$record/d' file
However, it does not delete it. Any help? (1 Reply)
Discussion started by: itech4814
1 Replies
3. UNIX for Dummies Questions & Answers
I apologize is this is somewhere else but I did look....
Is there a command to goto position # x within the VI editor? I've seen where you can search for a particular char string but I need to go to position 200 within a record (tired of counting positions)...:)
Thanks in advance... (2 Replies)
Discussion started by: hedrict
2 Replies
4. UNIX for Dummies Questions & Answers
I've been trying to delete a file with a space in it like this:
Nothing 1.jpg
I can't copy/delete it or anything like that.I've tried "Nothing_1.jpg" but that didn't work.Anyone know how to do this? (4 Replies)
Discussion started by: DISTURBED
4 Replies
5. Shell Programming and Scripting
I wonder how I shall read the result below, especially 'what'
shown below.
The result was shown when I entered 'w'.
E.g what is TOP? What is gosh ( what does selmgr mean?)?
login@ idle JCPU PCPU what
6:15am 7:04 39 39 TOP
6:34am 6:45 45 45 TOP
6:41am ... (1 Reply)
Discussion started by: Aelgen
1 Replies
6. UNIX for Dummies Questions & Answers
my solaris text talks about the 'find' command... it further goes to talk about an "action" used with the find command.
I am completely confused as to what the {} do with the find comand.
the explanation is this: "A set of braces, {}, delimits where the file name is passed to the command from... (2 Replies)
Discussion started by: xyyz
2 Replies
7. UNIX for Dummies Questions & Answers
I am kind of new with Unix and I really need some help. Can you please tell me what the 'whatis' command is? and what does it do?
Let's say that I have a file which I want to delete, what command will I need to use?
If I have a directory that I want to delete all files from what command do... (11 Replies)
Discussion started by: mischiefdemon
11 Replies
8. UNIX for Dummies Questions & Answers
I'd like to write a shell script that will enter '1', for example. How
do you do that?
You know, so instead of writing
echo "Enter 1 or 2"
read onetwo
and waiting for the user to enter a 1 or 2,
I'd like the script to act like someone entered a 1, or 2. Is there a
hex value for the... (1 Reply)
Discussion started by: jpprial
1 Replies
9. UNIX for Dummies Questions & Answers
when ever i type it in it always looks like so
echo $file | sed 's/~/\
/g'
how can i get it on one line? (6 Replies)
Discussion started by: Optimus_P
6 Replies
10. UNIX for Dummies Questions & Answers
I'm completely new to Unix, but familiar with Mac OSX. I've just discovered the command line terminal feature of this new OS and I'm trying to learn how to telnet into my host's server to change permissions to allow executable cgi scripts for my website. Is there anyone who might be able to... (2 Replies)
Discussion started by: tylerl
2 Replies