Sponsored Content
Top Forums Shell Programming and Scripting Errors trying to use all files of a type Post 302955367 by cmccabe on Wednesday 16th of September 2015 05:37:58 PM
Old 09-16-2015
Thank you very much.

Are the two variables $pref and $prefix different? Thank you Smilie
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

deleting files by type (symbolic links)

How do I delete just the symbolic links in a directory? I have files that I wish to keep that have similar names, length and date/time. Can I use file size? Thanks kyle (4 Replies)
Discussion started by: kryan_toolboy
4 Replies

2. UNIX for Advanced & Expert Users

Type v for generated files

Hi All, I was checking some of the files and I got the following entries:- =============== v, 664, serv, serv, version.txt, exe L, 775, serv, serv, start.sh, eventserv ================ Could someone please tell me what does the type"v" and "L" represent to. I have not... (2 Replies)
Discussion started by: shubhranshu
2 Replies

3. UNIX for Advanced & Expert Users

Deleting older files of a particular type

hi This should be easy but i'm obviously missing something obvious. :) I'm looking to delete files from yesterday and older of extension .txt and there a range of subfolders with these files in them. The command runs but doesn't delete anything. SUSE 10. find /testfolder -maxdepth 2 -type f... (6 Replies)
Discussion started by: cmap
6 Replies

4. UNIX for Advanced & Expert Users

find -type d returning files as well as directories

Can anyone see why the following command returns all files and not just the directories as specified? find . -type d -exec ls -F {} \; Also tried find . -type d -name "*" -exec ls -F {} \; find . -type d -name "*" -exec ls -F '{}' \; -print Always returns all files :-\ OS is... (2 Replies)
Discussion started by: tuns99
2 Replies

5. Shell Programming and Scripting

Reading files of different type and same basename

Hi ! all I have need of accessing multiple files of different type same base name, and I want to compare base name if matching then I want to send those 2 files of different type to some program, for further processing my files are like this file_1.txt file_2.txt file_3.txt file_4.txt... (6 Replies)
Discussion started by: Akshay Hegde
6 Replies

6. Shell Programming and Scripting

Delete files of the same type if there are more than 3

hi, I would like to delete files in a folder starting with letters ab and fe and so on. It should only delete if there are more than 3 files of that type in that folder. Please suggest me how to write a script. i am new to this scripting. (4 Replies)
Discussion started by: Sneddy
4 Replies

7. UNIX for Dummies Questions & Answers

Search in one type of files and replace

I am not sure how to search and replace the word in the few specific files. I need to search and replace word in only the name containing pepsi in the filename. (12 Replies)
Discussion started by: ramkumar15
12 Replies

8. Shell Programming and Scripting

Latest list of files of each type

find /tmp/testlog/kSR*"_"2018* -type f -printf '%T@ %p\n' | sort -n | tail -3 | cut -f2- -d" " /tmp/testlog/log/KSR04_2018-07-05.log /tmp/testlog/log/KSR04_2018-07-06.log /tmp/testlog/log/KSR01_2018-07-06.log But, I would see the following output(latest files for each KSR tuype) ... (3 Replies)
Discussion started by: jhonnyrip
3 Replies
PROP_SEND_SYCALL(3)					   BSD Library Functions Manual 				       PROP_SEND_SYCALL(3)

NAME
prop_array_send_syscall, prop_array_recv_syscall, prop_dictionary_send_syscall, prop_dictionary_recv_syscall -- send and receive property lists to and from the kernel using syscalls SYNOPSIS
#include <prop/proplib.h> int prop_array_send_syscall(prop_array_t array, struct plistref *prefp); int prop_array_recv_syscall(const struct plistref *prefp, prop_array_t *arrayp); int prop_dictionary_send_syscall(prop_dictionary_t dict, struct plistref *prefp); int prop_dictionary_recv_syscall(const struct plistref *prefp, prop_dictionary_t *dictp); DESCRIPTION
The prop_array_send_syscall, prop_array_recv_syscall, prop_dictionary_send_syscall, and prop_dictionary_recv_syscall functions implement the user space side of a protocol for sending property lists to and from the kernel using syscall(2). RETURN VALUES
If successful, functions return zero. Otherwise, an error number is returned to indicate the error. EXAMPLES
The following (simplified) example demonstrates using prop_dictionary_send_syscall() and prop_dictionary_recv_syscall() in an application: void foo_setprops(prop_dictionary_t dict) { struct pref pref; (void) prop_dictionary_send_syscall(dict, &pref); (void) my_syscall_set(&pref); } prop_dictionary_t foo_getprops(void) { prop_dictionary_t dict; struct pref pref; (void) my_syscall_get(&pref); if (prop_dictionary_recv_syscall(&pref, &dict) != 0) return (NULL); return (dict); } ERRORS
prop_array_send_syscall() and prop_dictionary_send_syscall() will fail if: [ENOMEM] Cannot allocate memory [ENOTSUP] Not supported prop_array_recv_syscall() and prop_dictionary_recv_syscall() will fail if: [EIO] Input/output error [ENOTSUP] Not supported SEE ALSO
prop_array(3), prop_dictionary(3), proplib(3), prop_copyin_ioctl(9) HISTORY
The proplib property container object library first appeared in NetBSD 4.0. BSD
January 17, 2011 BSD
All times are GMT -4. The time now is 07:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy