06-13-2008
$ A=/bb/data/f233pdb
$ c=`basename $A`
$ echo $c
f233pdb
$ d=`dirname $A`
$ echo $d
/bb/data
10 More Discussions You Might Find Interesting
1. Ubuntu
Hi folks,
Ubuntu 7.04 server amd64
apache2-2.2.3
postfix-2.3.8
mysql Ver 14.12
SquirrelMail version 1.4.11
I have a running Mail Server. I need to make it as a file server, in addition, allowing users who have accounts (Linux/shell) on the Mail Server to upload/download their files... (1 Reply)
Discussion started by: satimis
1 Replies
2. HP-UX
Need help on making a loop script base on what is inside a file...
File to read: List.txt
List.txt contains below w/c are file name as well:
SAMPLEa
SAMPLEb
SAMPLEc
SAMPLEd
SAMPLEe
SAMPLEf
.
.
.
Want to make a loop that will manipulate those that are inside the file.txt w/c are... (3 Replies)
Discussion started by: JohnBalayo
3 Replies
3. UNIX for Dummies Questions & Answers
To make it clearer:
I have a file, List.txt
List.txt contains: (these are actually splitted files w/c I got from ls command and dump them to the List.txt file)
SAMPLEa
SAMPLEb
SAMPLEc
SAMPLEd
SAMPLEe
SAMPLEf
.
.
.
.
.
And I want to rename these files to have a .dat extension.... (3 Replies)
Discussion started by: JohnBalayo
3 Replies
4. Shell Programming and Scripting
hi
i have a cfg file,it contains
lpdma520.dev.ipc.us.aexp.com=SUBMCORE.REQUEST.FT
lpdma521.dev.ipc.us.aexp.com=SUBMCORE.REQUEST.FTREQ
lpdma522.dev.ipc.us.aexp.com=SUBMITSECUREFILEFLOW
i am retrieving the values using the function
RetrieveCfgvalue()
{
CFG_VALUE=`grep "$2="... (1 Reply)
Discussion started by: satish@123
1 Replies
5. UNIX for Advanced & Expert Users
How will retrieve for a particular months file in UNIX say for example from January to February 2008. (1 Reply)
Discussion started by: rajesh08
1 Replies
6. UNIX for Dummies Questions & Answers
Hi Guys,
How to retrieve/get *.sql file names which we refer in all *.sh files.
Can any one help me on this.
Thanks,
Kolipaka (3 Replies)
Discussion started by: lakshmanrk811
3 Replies
7. Shell Programming and Scripting
HI
I have input file A.txt
X
Y
Z
File B.txt
1 X 10 AAA 11123
2 Y 22 PlD 4563
3 Z 55 PlD 54645
4 Z 66 PlD 15698
5 F 44 PlD 154798
6 C 55 PlD 12554
7 Z 88 PlD 23265
8 C 99 PlD 151654
9 C 11 PlD 21546546
I need New File C.txt (1 Reply)
Discussion started by: pareshkp
1 Replies
8. Linux
Hi,
Anyone can help, I have a large textfile (one file), and I need to split into multiple file to break each file into ^L.
My textfile
==========
abc company
abc address
abc contact
^L
my company
my address
my contact
my skills
^L
your company
your address
========== (3 Replies)
Discussion started by: fspalero
3 Replies
9. UNIX for Beginners Questions & Answers
Hi,
I am trying to find out whether there are any Unix utilities that compares folders, files and contents within the file and provides a comprehensive report. The comparison can be against base version of a folder and file with content. Can you please let me know of such a utility?
Thanks,... (6 Replies)
Discussion started by: Sripathi_ks
6 Replies
10. UNIX for Beginners Questions & Answers
I am having trouble matching *two* strings from one file anywhere in a line of a second file, and could use some help getting this figured out. My preference would be to use grep for this because I would like to take advantage of its -A option. The latter is due to the fact that I would like both... (2 Replies)
Discussion started by: jvoot
2 Replies
LEARN ABOUT FREEBSD
fueword32
FETCH(9) BSD Kernel Developer's Manual FETCH(9)
NAME
fetch, fubyte, fuswintr, fuword, fuword16, fuword32, fuword64, fueword, fueword32, fueword64 -- fetch data from user-space
SYNOPSIS
#include <sys/types.h>
#include <sys/systm.h>
int
fubyte(volatile const void *base);
long
fuword(volatile const void *base);
int
fuword16(volatile const void *base);
int32_t
fuword32(volatile const void *base);
int64_t
fuword64(volatile const void *base);
long
fueword(volatile const void *base, long *val);
int32_t
fueword32(volatile const void *base, int32_t *val);
int64_t
fueword64(volatile const void *base, int64_t *val);
#include <sys/resourcevar.h>
int
fuswintr(void *base);
DESCRIPTION
The fetch functions are designed to copy small amounts of data from user-space of the current process. If read is successful, it is per-
formed atomically. The data read must be naturally aligned.
The fetch routines provide the following functionality:
fubyte() Fetches a byte of data from the user-space address base. The byte read is zero-extended into the results variable.
fuword() Fetches a word of data (long) from the user-space address base.
fuword16() Fetches 16 bits of data from the user-space address base. The half-word read is zero-extended into the results variable.
fuword32() Fetches 32 bits of data from the user-space address base.
fuword64() Fetches 64 bits of data from the user-space address base.
fuswintr() Fetches a short word of data from the user-space address base. This function is safe to call during an interrupt context.
fueword() Fetches a word of data (long) from the user-space address base and stores the result in the variable pointed by val.
fueword32() Fetches 32 bits of data from the user-space address base and stores the result in the variable pointed by val.
fueword64() Fetches 64 bits of data from the user-space address base and stores the result in the variable pointed by val.
The callers of fuword(), fuword32() and fuword64() functions cannot distinguish between -1 read from userspace and function failure.
RETURN VALUES
The fubyte(), fuword(), fuword16(), fuword32(), fuword64(), and fuswintr() functions return the data fetched or -1 on failure. The
fueword(), fueword32() and fueword64() functions return 0 on success and -1 on failure.
SEE ALSO
copy(9), store(9)
BSD
October 29, 2014 BSD