Sponsored Content
Top Forums Programming Results Of A Variable Into An Array Using C Language Post 302929353 by metallica1973 on Friday 19th of December 2014 04:58:24 PM
Old 12-19-2014
I believe the path I need to go is to use a struct of arrays and pass the data to it.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

store awk results in a variable

I try to get the month (of last save) and the filename into a variable, is this possible ? something like this : for month in `ls -la | awk '{print $6}'` do if ] then a=filename of the matching file cp $a /Sep fi thanks, Steffen (1 Reply)
Discussion started by: forever_49ers
1 Replies

2. UNIX for Dummies Questions & Answers

Setting the Results of a Command to a Variable

Hi, Hi, I run the command: hostname to get the host back from the server: db201 Now, I need to take that result and set it to a variable. Can anyone help me with this?? I need to be able to use the same script on multiple servers so I do not want to hardcode the hostname result into... (1 Reply)
Discussion started by: stky13
1 Replies

3. Shell Programming and Scripting

Results of command execution into array

Hi Can anybody tell me how can I dump the results of execution of a command into array form? For example, I want to execute: and put each part of the result in an array element: Thanks (2 Replies)
Discussion started by: alirezan
2 Replies

4. Shell Programming and Scripting

Compare Array results

Hi, In a kshell , i need to compare the results of two array . each Non-match value should copy to a new array. For example: ========== Array one contain the following values: A B C Array two contain the following values: C F A E After comparing this arrays , a new array should... (4 Replies)
Discussion started by: yoavbe
4 Replies

5. UNIX for Dummies Questions & Answers

how to - redirect query results to a variable

How can I send the results of a query to a unix variable. I basically want to run a query then do some logic on the results. Trying to redirect the result into a variable I define in the script. select count(*) as counter from table - nut to redirect the "count" returned from the query... (2 Replies)
Discussion started by: rstone
2 Replies

6. Shell Programming and Scripting

Adding results of a find to an array

I'm trying to add the paths of all the xml files in certain directories to an array. I want to use the array later in my code. Anyway, for some reason this isn't working. Any help would be appreciated. Path_Counter=0 for result in "find * -name '*.xml'"; do XmlPath="$result" echo... (2 Replies)
Discussion started by: Fly_Moe
2 Replies

7. Shell Programming and Scripting

Adding grep'd results in a variable

Here is one I am baffled with; I have not used unix for a while and now that I am back it has been fun remembering and I have enjoyed it, for the most past. this is in ksh. I need to search in a file for the line with X1 and cut columns 20-25, put them into a variable, added them (dollar... (3 Replies)
Discussion started by: CougarMutt
3 Replies

8. Shell Programming and Scripting

Storing the SQL results in array variables

Requirement 1) I need to execute 15 SQL queries in oracle through linux script. All these query results needs to be stored in array variables. Requirement 2) And these 15 queries needs to be executed in parallel. Requirement 3) Once all the queries executed then the shell script should... (3 Replies)
Discussion started by: Niranjancse
3 Replies

9. Shell Programming and Scripting

Append awk results into file or array

for a in {1..100} do awk '{ sum+=$a} END {print sum}' a=$a file1 > file2 done I know I will get only one number if following the code above, how can I get 100 sum numbers in file2? (2 Replies)
Discussion started by: wanliushao
2 Replies

10. Shell Programming and Scripting

I want to add a variable for the results from the formula of one variable and results of another var

Good morning all, This is the file name in question OD_Orders_2019-02-19.csv I am trying to create a bash script to read into files with yesterdays date on the file name while retaining the rest of the files name. I would like for $y to equal, the name of the file with a formula output with... (2 Replies)
Discussion started by: Ibrahim A
2 Replies
ARCHIVE_ENTRY_PATHS(3)					   BSD Library Functions Manual 				    ARCHIVE_ENTRY_PATHS(3)

NAME
archive_entry_hardlink, archive_entry_hardlink_w, archive_entry_set_hardlink, archive_entry_copy_hardlink, archive_entry_copy_hardlink_w, archve_entry_update_hardlink_utf8, archive_entry_set_link, archive_entry_copy_link, archive_entry_copy_link_w, archve_entry_update_link_utf8, archive_entry_pathname, archive_entry_pathname_w, archive_entry_set_pathname, archive_entry_copy_pathname, archive_entry_copy_pathname_w, archve_entry_update_pathname_utf8, archive_entry_sourcepath, archive_entry_copy_sourcepath, archive_entry_symlink, archive_entry_symlink_w, archive_entry_set_symlink, archive_entry_copy_symlink, archive_entry_copy_symlink_w, archve_entry_update_symlink_utf8 -- functions for manip- ulating path names in archive entry descriptions LIBRARY
Streaming Archive Library (libarchive, -larchive) SYNOPSIS
#include <archive_entry.h> const char * archive_entry_hardlink(struct archive_entry *a); const wchar_t * archive_entry_hardlink_w(struct archive_entry *a); void archive_entry_set_hardlink(struct archive_entry *a, const char *path); void archive_entry_copy_hardlink(struct archive_entry *a, const char *path); void archive_entry_copy_hardlink_w(struct archive_entry *a, const, wchar_t, *path"); int archive_entry_update_hardlink_utf8(struct archive_entry *a, const char *path); void archive_entry_set_link(struct archive_entry *a, const char *path); void archive_entry_copy_link(struct archive_entry *a, const char *path); void archive_entry_copy_link_w(struct archive_entry *a, const wchar_t *path); int archive_entry_update_link_utf8(struct archive_entry *a, const char *path); const char * archive_entry_pathname(struct archive_entry *a); const wchar_t * archive_entry_pathname_w(struct archive_entry *a); void archive_entry_set_pathname(struct archive_entry *a, const char *path); void archive_entry_copy_pathname(struct archive_entry *a, const char *path); void archive_entry_copy_pathname_w(struct archive_entry *a, const wchar_t *path); int archive_entry_update_pathname_utf8(struct archive_entry *a, const char *path); const char * archive_entry_sourcepath(struct archive_entry *a); void archive_entry_copy_sourcepath(struct archive_entry *a, const char *path); const char * archive_entry_symlink(struct archive_entry *a); const wchar_t * archive_entry_symlink_w(struct archive_entry *a); void archive_entry_set_symlink(struct archive_entry *a, const char *path); void archive_entry_copy_symlink(struct archive_entry *a, const char *path); void archive_entry_copy_symlink_w(struct archive_entry *a, const wchar_t *path); int archive_entry_update_symlink_utf8(struct archive_entry *a, const char *path); DESCRIPTION
Path names supported by archive_entry(3): hardlink Destination of the hardlink. link Update only. For a symlink, update the destination. Otherwise, make the entry a hardlink and alter the destination for that. pathname Path in the archive sourcepath Path on the disk for use by archive_read_disk(3). symlink Destination of the symbolic link. Path names can be provided in one of three different ways: char * Multibyte strings in the current locale. wchar_t * Wide character strings in the current locale. The accessor functions are named XXX_w(). UTF-8 Unicode strings encoded as UTF-8. This are convience functions to update both the multibyte and wide character strings at the same time. The sourcepath is a pure filesystem concept and never stored in an archive directly. For that reason, it is only available as multibyte string. The link path is a convience function for conditionally setting hardlink or sym- link destination. It doesn't have a corresponding get accessor function. archive_entry_set_XXX() is an alias for archive_entry_copy_XXX(). SEE ALSO
archive(3), archive_entry(3) BSD
February 2, 2012 BSD
All times are GMT -4. The time now is 02:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy