04-20-2010
Quote:
Originally Posted by
SilversleevesX
The guide has missed "shebang" for # and I also think that using "currency symbol" for $ is simply incorrect.
10 More Discussions You Might Find Interesting
1. What is on Your Mind?
I was kinda bored one day, so I renamed my files in KDE. Here are some examples:
1) I renamed my Hard Drive "Komputer"
2) I renamed my Trashcan to "Krap Bin"
I'm kinda stuck on those two and I would like some suggestions on other file names. Please help a bored luser! ^_^ (1 Reply)
Discussion started by: gnerd
1 Replies
2. UNIX for Dummies Questions & Answers
Ok bit of a noob here.
Need some help with filenames. Cant see what has changed, but heres the info :
Have a directory on webserver - for documents, which is then broken down into year / month.
If you check the dir's on the webserver, or any other Linux box, then the file names are... (9 Replies)
Discussion started by: giantflameeater
9 Replies
3. Shell Programming and Scripting
Say I have a command that looks like this:
host=$(/usr/bin/host xxx.xxx.xxx.xxx)
What is the significance of the $()
I know what happens when I don't include them, and I know what happens when I do, but...
Why doo it woik wit $()
Sorry for the lame question :o (3 Replies)
Discussion started by: [MA]Flying_Meat
3 Replies
4. Shell Programming and Scripting
Sun Solaris Unix Question
Haven't been able to find any solution for this situation. Let's just say the file names listed below exist in a directory. I want the find command to find all files in this directory but at the same time I want to eliminate certain file names or files with certain... (2 Replies)
Discussion started by: 2reperry
2 Replies
5. UNIX for Dummies Questions & Answers
Dear All,
I have a file which I want to get the list of frequency of each word, ignoring list of stop words and now I have problems which punctuations and " 's ".
what I am doing is:
sed 's///g' file01.txt > file01-clear.txt
cat file01-clear.txt | tr "" ""| tr ' ' '\012' |sort |uniq -c... (3 Replies)
Discussion started by: A-V
3 Replies
6. Shell Programming and Scripting
I have a file xxx.txt containing
winter_kool
sugar_"sweet"
Is there anyway i can grep xxx.txt for strings without using punctuations.
for eg:
`grep sugarsweet xxx.txt` should give output :
sugar_"sweet" (2 Replies)
Discussion started by: jack_gb
2 Replies
7. Shell Programming and Scripting
#!/bin/bash
a=(*.pdf)
punct=((~`!@#$%^&*()_-+=|\{};':",./<>?))
for (( i =0; i < ${#a}; i++ ))
do
sed -ri 's/$punct//g' ${a}
done
I cannot use the above code, can you help me in removing all punctuation marks from file name except file extension. The idea is that once all... (9 Replies)
Discussion started by: ambijat
9 Replies
8. Shell Programming and Scripting
Data files coming in different names in a file name called process.txt.
1. shipments_yyyymmdd.gz
2 Order_yyyymmdd.gz
3. Invoice_yyyymmdd.gz
4. globalorder_yyyymmdd.gz
The process needs to discard all the below files and only process two of the 4 file names available
... (1 Reply)
Discussion started by: dsravanam
1 Replies
9. Shell Programming and Scripting
Greetings!
My first PHP question; and, no doubt, a "no-brainer" for the initiated :)
The question centers around the proper syntax for input field labeling. The snippet which puzzles me (and the candidate which I wish to modify) goes like this:<?php _e('Hello World'); ?>:<br />What I'd like... (0 Replies)
Discussion started by: LinQ
0 Replies
10. Shell Programming and Scripting
Hi All,
I would have though this would have been simple, but...
I have text in a variable that I need to insert into a bunch of other files... The text is simple:
... (2 Replies)
Discussion started by: joeg1484
2 Replies
LEARN ABOUT NETBSD
ypwhich
YPWHICH(1) BSD General Commands Manual YPWHICH(1)
NAME
ypwhich -- return hostname of NIS server of map master
SYNOPSIS
ypwhich [-T] [-d domain] [[-h] host]
ypwhich [-fTt] [-d domain] [-h host] -m [mname]
ypwhich -x
DESCRIPTION
ypwhich tells which NIS server supplies NIS services to a client, or which is the master for a map. If invoked without arguments, it gives
the NIS server for the local machine. If host is specified, that machine is queried to find out which NIS server it is using.
The options are as follows:
-d domain Specify a domain other than the default domain.
-f When used in conjunction with -m, force ypwhich to query host directly, without using the local copy of ypbind(8).
-h host Specify a host other than localhost to query for information.
-m [mname] Find the master NIS server for the named map. mname can be a map name or nickname. If mname is omitted, ypwhich will produce a
list of available maps.
-T Use TCP protocol instead of UDP.
-t Inhibit translation of map nicknames to their corresponding map names.
-x Display the map nickname table, found in /var/yp/nicknames. A built-in default translation table is used if /var/yp/nicknames
does not exist (see nicknames(5) for details).
EXIT STATUS
ypwhich exits with a non-zero exit code if -m is used, and there was a problem in determining the map's master.
SEE ALSO
domainname(1), ypcat(1), ypmatch(1), nicknames(5), nis(8), ypbind(8), yppoll(8), ypset(8)
AUTHORS
Charles D. Cranor
Greywolf
BSD
January 24, 2008 BSD