01-18-2008
i need to have that in unix code,i dont know how..
to switch this code into unix command
i need to make it as unix command
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
where can I find a list of unix commands to study? (4 Replies)
Discussion started by: Rush
4 Replies
2. Programming
Hello all,
i've written a small piece of code that will read commands from standard input and executes the commands.
Its working fine and is execting the commands well. Accepting arguments too. e.g
#mkdir <name of the directory>
The problem is that its not letting me change the directory i.e... (4 Replies)
Discussion started by: Phrozen Smoke
4 Replies
3. Shell Programming and Scripting
I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config.
I am not sure if I can do this with BASH scripting.
I have set up password less login by adding my public key to authorized_keys file, it works.
I am a little... (1 Reply)
Discussion started by: bash_in_my_head
1 Replies
4. AIX
Hi all,
I'm new in this forum.
I'm looking for the difference between the HACMP commands with the prefix "cl" and "cli".
The first type are under /usr/es/sbin/cluster/sbin directory and the second are under /usr/es/sbin/cluster/cspoc directory.
I know that the first are called HACMP for AIX... (0 Replies)
Discussion started by: peppix
0 Replies
5. UNIX for Dummies Questions & Answers
Hi!
i'd like from someone to explain me 'what is what' from these parts of code if it's possible.i'd like to understand them and their usage:
1)
sed '3d' filename
2)
sort –t: +0 -1 /etc/passwd
and also this:
tr ‘’ ‘ ‘ < filename
thank you! (11 Replies)
Discussion started by: strawhatluffy
11 Replies
6. Shell Programming and Scripting
Hello.
This small part of my script
#!/bin/bash
SRCDIR=/root/.kde4/share/config
for MY_FILE in $(ls $SRCDIR/kate*) ; do
echo "$MY_FILE"
donegive :
So for the moment I have modified my script like this :
#!/bin/bash
SRCDIR=/root/.kde4/share/config
for MY_FILE in $(ls... (5 Replies)
Discussion started by: jcdole
5 Replies
7. UNIX for Advanced & Expert Users
Using grep -r -H "foobar" / > result to give
all files that contain the string "foobar"
Half way , its waiting for some thing and does not end
Not Sure whats happening.
Any help is much appreciated
Thank you (2 Replies)
Discussion started by: shorn
2 Replies
8. Shell Programming and Scripting
Greetings everyone.
I have seen that you do wonders here.
I have a large folder on a Ubuntu linux.
Organization main folder, inside 20 000 subfolders, and inside those subolders many other like 5-6 folders and files.
I am interested to create an output to a txt file under the bash... (2 Replies)
Discussion started by: ultimo
2 Replies
9. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
4. Recall that the env command provides a list of various environment variables available to you. Two of those... (5 Replies)
Discussion started by: megachuk
5 Replies
LEARN ABOUT CENTOS
wcscspn
WCSCSPN(3) Linux Programmer's Manual WCSCSPN(3)
NAME
wcscspn - search a wide-character string for any of a set of wide characters
SYNOPSIS
#include <wchar.h>
size_t wcscspn(const wchar_t *wcs, const wchar_t *reject);
DESCRIPTION
The wcscspn() function is the wide-character equivalent of the strcspn(3) function. It determines the length of the longest initial seg-
ment of wcs which consists entirely of wide-characters not listed in reject. In other words, it searches for the first occurrence in the
wide-character string wcs of any of the characters in the wide-character string reject.
RETURN VALUE
The wcscspn() function returns the number of wide characters in the longest initial segment of wcs which consists entirely of wide-charac-
ters not listed in reject. In other words, it returns the position of the first occurrence in the wide-character string wcs of any of the
characters in the wide-character string reject, or wcslen(wcs) if there is none.
CONFORMING TO
C99.
SEE ALSO
strcspn(3), wcspbrk(3), wcsspn(3)
COLOPHON
This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU
1999-07-25 WCSCSPN(3)