I am using Posix shell to write a script. The problem I am having is that when I use the read command to go through a file I lose the tabs. How can I keep this from happening? (1 Reply)
I posted a week ago regarding this scripting question, but I need to revisit and have a few more questions answered..
User cfajohnson was extremely helpful with the archive script, but clarification on my part is needed to help steer the answer in a direction that works in this particular... (5 Replies)
cat file1|while read i
do
echo "$i"|wc
done
with this command the space in the end of the line not considered
how can solve that
for example:
read h
"hgyr "
echo "$h"|wc
4 (2 Replies)
I have a large list of filenames from an Excel sheet, which I then translate into a simple text file. I'd like to use this list, which contains various file extensions , to archive these files and then remove them recursively through multiple directories and subdirectories. So far, it looks like... (5 Replies)
Hi
I am using Solaris8.I want to find the total disk space of my server.Can anyone please tell that which field in below mentioned code signifies the disk space and whether this space is in Mb or GB.
c11t0d52 <EMC-SYMMETRIX-5264 cyl 4 alt 2 hd 15 sec 64>
... (4 Replies)
Hi,
My Requirement is to read the filenames which possess space charatcer in it and pass the same file name to the other shell script as input parameter.
Please provide your valuable suggestion. (5 Replies)
Hi ,
My requirement is to scan a directory for file names with LTR.PDF*
and send those files via ftp to another server one by one.
Now the the problem is file names are like LTR.PDF ,LTR.PDF1 ,LTR.PDF2.....LTR.PDF10..upto 99
and these needs to be sent in sorted order.
is there a way to get... (10 Replies)
Hello, Unix-Forums.
How can I make a Space after a read prompt? let's assume:
read -p "Are you good?:" varthe output would be ( | is the cursor ):
Are you good?:|But I want it to be:
Are you good?: |That's what I mean.
How would I do that? (2 Replies)
Hi,
Is there any chance that a file system that mounted on the server becomes read only when the space in that file system becomes full?
Regards,
Sreejith (9 Replies)
Hi All,
Please let me know how to read space between 2 words in script. It is reading only first chars ES,NZ. But after space it is not reading next 3 chars.
ES LPI
NZ GBL
FR LPI
DK LPI
for v_sob_cntry_cd in `cat /shared/set_of_books_cntry_cd_list.lst`
do
... (6 Replies)
Discussion started by: kiranparsha
6 Replies
LEARN ABOUT OSX
projects
projects(1) User Commands projects(1)NAME
projects - print project membership of user
SYNOPSIS
projects [-dv] [ user]
projects -l [projectname [projectname...]]
DESCRIPTION
The projects command prints on standard output the projects to which the invoking user or an optionally specified user belongs. Each user
belongs to some set of projects specified in the project(4) file and possibly in the associated NIS maps and LDAP databases for project
information.
OPTIONS
The following options are supported:
-d Prints only default project.
-l Prints verbose info on each project projectname. If no projectnames are given, info on all projects is printed.
-v Prints project descriptions along with project names.
OPERANDS
The following operand is supported:
projectnaDisplay information for the specified project.
user Displays project memberships for the specified user.
EXAMPLES
Example 1: Displaying Membership for a Specified User
example$ projects paul
default beatles wings
example$ projects ringo
default beatles
example$ projects -d paul
beatles
EXIT STATUS
The following exit values are returned:
0 Successful completion.
1 A fatal error occurred during execution.
2 Invalid command line options were specified.
FILES
/etc/project Local database containing valid project definitions for this machine.
ATTRIBUTES
See attributes(5) for a description of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
|Stability |See below. |
+-----------------------------+-----------------------------+
The invocation is Evolving. The human-readable output is Unstable.
SEE ALSO getdefaultproj(3PROJECT), getprojent(3PROJECT), project(4), attributes(5)SunOS 5.10 13 May 2004 projects(1)