How to find the one file and move destination using scripts in AIX?
I have a script which has two output formats in which i'am getting the two different output format in str1 and str2.So i want to get the output if the format is like str1 then i have to copy that into a directory or str2 format means it should be moved.This script i'am executing in shell script in aix server .so guys kindly help me out in this. ---------- Post updated at 02:54 PM ---------- Previous update was at 02:53 PM ----------
Quote:
Originally Posted by rajivgandhi
I have a script which has two output formats in which i'am getting the two different output format in str1 and str2.So i want to get the output if the format is like str1 then i have to copy that into a directory or str2 format means it should be moved.This script i'am executing in shell script in aix server .so guys kindly help me out in this.
hi there,
i'm new to UNIX( just 3month used),
i found my new box contained alot of files and directories in /home/box/
i've tried to search script in tis forum and found many of them but, i don't know
how to combine them to make a script, although using pipes.
my tasks are:
1) to scan user... (5 Replies)
I am trying to move file created/modified in 2008 year to <new directory>. But trapped badly in Xargs {}.
Looks like mv is not getting destination file properly. It assumes source file s to be destination directory n gives me erroir. "Target must be a directory"
Run-
#/home/mktrisk: find... (4 Replies)
Move all files starting with a specific name to different directory.
This shell script program should have three parameters
File Name
Source Directory
Destination Directory
User should be able to enter ‘AB_CD*' in file name parameter. In this case all the files starting with AB_CD will... (1 Reply)
I need help with a bash script.
We have a directory of files which need to be renamed and moved to another directory based on filename information in a cvs file.
The contents of the cvs file are as follows:
A102345,abc123
A102347,dfg475
Where dfg475 is the basename without extension
Our... (8 Replies)
Hello, I have a lot of mp3 in a various directory. My goal is a command that find all mp3 file and move the files and directory where is the mp3 file to a destination folder.
Is it possible?
Thanks in advance (7 Replies)
hi frnds,
please help ... what will happen with below command if destination path does not exist on the system....
find /var/adm/cft* -mtime +1 -exec mv {} /global/ \ in unix
its remove all my files from the system from soruce file ... how is it possbile (1 Reply)
I have this situation
/u03/app/banjobs> ls -ltr icg*
82 Jun 12 10:37 iicgorldi_2419186.log
56810484 Jun 17 10:35 icgorldi_2421592.xml
2859 Jun 17 10:35 icgorldi_2421592.lis
- 125 Jun 17 10:35 icgorldi_2421592.log
82 Jun 12 10:37 iicgorldi_2419187.log
... (8 Replies)
Hi All,
Daily i am doing the house keeping in one of my server and manually moving the files which were older than 90 days and moving to destination folder.
using the find command . Could you please assist me how to put the automation using the shell script .
... (11 Replies)
Hello,
I supposed that it was working fine but now I see that it's not working as expected.
I am running under ubuntu14.04, trusty.
My plan was to search folderA and all subdirectories and move any txt file to destination folder, folderB :
find /home/user/folderA/ -type f -iname "*.txt"... (0 Replies)
Discussion started by: baris35
0 Replies
LEARN ABOUT NETBSD
prop_string_copy_mutable
PROP_STRING(3) BSD Library Functions Manual PROP_STRING(3)NAME
prop_string, prop_string_create, prop_string_create_cstring, prop_string_create_cstring_nocopy, prop_string_copy, prop_string_copy_mutable,
prop_string_size, prop_string_mutable, prop_string_cstring, prop_string_cstring_nocopy, prop_string_append, prop_string_append_cstring,
prop_string_equals, prop_string_equals_cstring -- string value property object
LIBRARY
Property Container Object Library (libprop, -lprop)
SYNOPSIS
#include <prop/proplib.h>
prop_string_t
prop_string_create(void);
prop_string_t
prop_string_create_cstring(const char *cstring);
prop_string_t
prop_string_create_cstring_nocopy(const char *cstring);
prop_string_t
prop_string_copy(prop_string_t string);
prop_string_t
prop_string_copy_mutable(prop_string_t string);
size_t
prop_string_size(prop_string_t string);
bool
prop_string_mutable(prop_string_t string);
char *
prop_string_cstring(prop_string_t string);
const char *
prop_string_cstring_nocopy(prop_string_t string);
bool
prop_string_append(prop_string_t str1, prop_string_t str2);
bool
prop_string_append_cstring(prop_string_t string, const char *cstring);
bool
prop_string_equals(prop_string_t str1, prop_string_t str2);
bool
prop_string_equals_cstring(prop_string_t string, const char *cstring);
DESCRIPTION
The prop_string family of functions operate on a string value property object type.
prop_string_create(void)
Create an empty mutable string. Returns NULL on failure.
prop_string_create_cstring(const char *cstring)
Create a mutable string that contains a copy of cstring. Returns NULL on failure.
prop_string_create_cstring_nocopy(const char *cstring)
Create an immutable string that contains a reference to cstring. Returns NULL on failure.
prop_string_copy(prop_string_t string)
Copy a string. If the string being copied is an immutable external C string reference, then the copy is also immutable and references
the same external C string. Returns NULL on failure.
prop_string_copy_mutable(prop_string_t string)
Copy a string, always creating a mutable copy. Returns NULL on failure.
prop_string_size(prop_string_t string)
Returns the size of the string, not including the terminating NUL. If the supplied object isn't a string, zero is returned.
prop_string_mutable(prop_string_t string)
Returns true if the string is mutable. If the supplied object isn't a string, false is returned.
prop_string_cstring(prop_string_t string)
Returns a copy of the string's contents as a C string. The caller is responsible for freeing the returned buffer.
In user space, the buffer is allocated using malloc(3). In the kernel, the buffer is allocated using malloc(9) using the malloc type
M_TEMP.
Returns NULL on failure.
prop_string_cstring_nocopy(prop_string_t string)
Returns an immutable reference to the contents of the string as a C string. If the supplied object isn't a string, NULL is returned.
prop_string_append(prop_string_t str1, prop_string_t str2)
Append the contents of str2 to str1, which must be mutable. Returns true upon success and false otherwise.
prop_string_append_cstring(prop_string_t string, const char *cstring)
Append the C string cstring to string, which must be mutable. Returns true upon success and false otherwise.
prop_string_equals(prop_string_t str1, prop_string_t str2)
Returns true if the two string objects are equivalent.
prop_string_equals_cstring(prop_string_t string, const char *cstring)
Returns true if the string's value is equivalent to cstring.
SEE ALSO prop_array(3), prop_bool(3), prop_data(3), prop_dictionary(3), prop_number(3), prop_object(3), proplib(3)HISTORY
The proplib property container object library first appeared in NetBSD 4.0.
BSD January 21, 2008 BSD