Sorry I'm a complete novice and may have done something wrong. I tried exactly what you had written above. It only seems to create a folder title `{A..Z}{A..Z}{A..Z}{A..Z}'.
Update
I realized it would be easier to do this with numbers (the names of the folders don't matter to me as long as they're sequential), so I wrote this:
Can anyone direct me to a resource that explains scripting in simple terms?
I have visited many sites and browsed this forum and have yet to find simple explanations. (8 Replies)
Hi everyone,
I'm stuck with this scenario where our system creates files every night and puts them in several folders according from whom it came from.
I have managed to create a script which will list the folders in one column and the files that are in them in another column, now my problem... (6 Replies)
Hi all! Im wondering if its possible to create a GUI for a shell script I just got done writing as the people that will be using it dont like the command line all to well. Just something simple with radio buttons to select options, maybe a text field to enter a location to save the file generated... (1 Reply)
I have a local account for a unix server. The idle timeout for the account is around 10 mins. I have to login to the server multiple times during the day. Is there a way to increase the idle timeout or may be a script that I can run on background so it is not idle. Something like echo date every 9... (3 Replies)
Hi all, I am brand new to these forums and I am a brand new UNIX Administartor. Don't know any scripting yet :wall:, and would like to learn as my boss is slowly letting me understand everything about being a Sys/*Nix Admin. He created this script which I am trying to replicate because I lost it... (54 Replies)
Guys I want to do this:
copy:
/var/router/system1/config/backup/install.put
/var/router/system2/config/backup/install.put
/var/router/system3/config/backup/install.put
/var/router/system4/config/backup/install.put
into:
/var/router/system1/config/install.dat... (22 Replies)
hi again,
having an issue with the code here because it doesnt work :D
can someone point what and how to change, please.
#!/bin/bash
#create directory mylabs, inside create 6 directories named by user.
DIR1="$1"
DIR2="$2"
if ; then
echo -n " there is a folder named mylabs,
what... (1 Reply)
Dear all,
I have a directory named A and some subdirectories named B, C, D with .xml files. I want to use the following command to strip the file.
sed -re ':start s/<*>//g; /</ {N; b start}' file.xml > file.xml
At the same time, I want to remove the blank lines using
sed '/^$/d'
How can... (6 Replies)
Hello all!
This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician.
Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix:
... (16 Replies)
Hi All,
Could any one help me with a shell script which will create different sub folders in a folder and of which the sub folders names should be taken from a text file.
Thanks (1 Reply)
Discussion started by: chetansingh23
1 Replies
LEARN ABOUT DEBIAN
mtp_libmtp_folder_struct
LIBMTP_folder_struct(3) libmtp LIBMTP_folder_struct(3)NAME
libmtp - LIBMTP_folder_struct
SYNOPSIS
#include <libmtp.h>
Data Fields
uint32_t folder_id
uint32_t parent_id
uint32_t storage_id
char * name
LIBMTP_folder_t * sibling
LIBMTP_folder_t * child
Detailed Description
MTP Folder structure
Examples:
delfile.c, folders.c, getfile.c, newfolder.c, sendfile.c, and sendtr.c.
Field Documentation
LIBMTP_folder_t* LIBMTP_folder_struct::child
Child folder or NULL if no children
Examples:
folders.c.
Referenced by LIBMTP_destroy_folder_t(), LIBMTP_Find_Folder(), and LIBMTP_Get_Folder_List_For_Storage().
uint32_t LIBMTP_folder_struct::folder_id
Unique folder ID
Examples:
folders.c.
Referenced by LIBMTP_Find_Folder(), LIBMTP_Get_Folder_List_For_Storage(), LIBMTP_new_folder_t(), and LIBMTP_Set_Folder_Name().
char* LIBMTP_folder_struct::name
Name of folder
Examples:
folders.c.
Referenced by LIBMTP_destroy_folder_t(), LIBMTP_Get_Folder_List_For_Storage(), and LIBMTP_Set_Folder_Name().
uint32_t LIBMTP_folder_struct::parent_id
ID of parent folder
Referenced by LIBMTP_Get_Folder_List_For_Storage().
LIBMTP_folder_t* LIBMTP_folder_struct::sibling
Next folder at same level or NULL if no more
Examples:
folders.c.
Referenced by LIBMTP_destroy_folder_t(), LIBMTP_Find_Folder(), and LIBMTP_Get_Folder_List_For_Storage().
uint32_t LIBMTP_folder_struct::storage_id
ID of storage holding this folder
Referenced by LIBMTP_Get_Folder_List_For_Storage().
Author
Generated automatically by Doxygen for libmtp from the source code.
Version 1.1.3 Sun Feb 17 2013 LIBMTP_folder_struct(3)