Hi all,
In unix shell, I want to get two strings ending with "." and starting with "." from a string "chan.txt"
For example, a string "chan.txt".
The first string is "chan"
The second string is "txt"
Yours
Wilson (1 Reply)
Hi,
I have defined an array which holds a couple of elements which are nothing but files names. I want to find the files in a directory for the matching file name(array elements) with less than 1 day old.
When I am trying to execute the code (as below), it gives an error.
Your help in this... (1 Reply)
OS: HP-UX
Programs I want to install: expect and tcl
I'm lost.
I bought the book.
I began reading the book.
I want to install expect.
I've been able to download the .z, and extract it successfully.
But, of course, it apparently needs tcl and possibly tk also, and ... I... (0 Replies)
im a new student in programming and im stuck on this question so please please HELP ME. thanks.
the question is this:
enter a command to delete all files that have filenames starting with labtest, except labtest itself (delete all files startign with 'labtest' followed by one or more... (2 Replies)
Hello fellow UNIX fans,
I'm running AIX 4.3 and getting an error message “cp: /a/file2.db: A file or directory in the path does not exist” when I run the following command:
cp /b/file.db /a/file2.db
It stops every time about 95% of the way through the copy process at 1,073,741,312 bits. ... (3 Replies)
I wrote a script to delete files which are older than "x" days, if the size of the directory is greater than "y"
#!/bin/bash
du -hs $1
while read SIZE ENTRY
do
if ;
then
find $1 -mtime +$2 -exec rm -f {} \;
echo "Files older than $2 days deleted"
else
echo "free Space available"... (4 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
LEARN ABOUT MINIX
mount
MOUNT(2) System Calls Manual MOUNT(2)NAME
mount, umount - mount or umount a file system
SYNOPSIS
#include <unistd.h>
#include <sys/mount.h>
int mount(char *special, char *name, int flag)
int umount(char *name)
DESCRIPTION
Mount() tells the system that the file system special is to be mounted on the file name, effectively overlaying name with the file tree on
special. Name may of any type, except that if the root of special is a directory, then name must also be a directory. Special must be a
block special file, except for loopback mounts. For loopback mounts a normal file or directory is used for special, which must be seen as
the root of a virtual device. Flag is 0 for a read-write mount, 1 for read-only.
Umount() removes the connection between a device and a mount point, name may refer to either of them. If more than one device is mounted
on the same mount point then unmounting at the mount point removes the last mounted device, unmounting a device removes precisely that
device. The unmount will only succeed if none of the files on the device are in use.
Both calls may only be executed by the super-user.
SEE ALSO mount(1), umount(1).
AUTHOR
Kees J. Bot (kjb@cs.vu.nl)
MOUNT(2)