Afternoon,
I have a problem with the FIND and GREP commands working together.
The command that I am typing is this:-
find . -name *.sql -print --- This finds all files with an SQL suffix
I then want to examine all those files to check for the existence of a string in them.
I am... (2 Replies)
Hi,
I was wondering if there is a way to find a particular file and then give it as an input to a program and then dump it into another file.
Something like this:
find ./ -name '*.txt' -exec ~/processText {} > mod.<current_file> \;
I've been trying all sorts of weird things but not... (2 Replies)
System: Ubuntu Intrepid Ibex
I'm running webcamd as a sort of "security" program, but I need a script that will archive my webcam.jpg files.
So, take the following file:
/home/slag/www/webcam.jpg
Rename it--preferably with a time stamp.
Place it in say:
/home/slag/www/history/
... (4 Replies)
I am having a problem getting this to work right. The script needs to search through directories and subdirectories. If a jpg is found then create a folder in that directory, so on and so forth. Here is what I have so far but it doesn't work right. Help please
#!/bin/bash
for d in `find ./... (1 Reply)
Hi, Dear all:
One question ! ^_^
I'm using bash under Ubuntu 9.10.
My question is not to rename all ".JPG" files to ".jpg" in a single folder, but to rename all ".JPG" files to ".jpg" in all subfolders.
To rename all ".JPG" to ".jpg" in a single folder,
for x in *.JPG; do mv "$x"... (7 Replies)
In response to a closed thread for degraff63 at
https://www.unix.com/shell-programming-scripting/108882-using-mv-find-exec.html
the following command might do it as some shells spit it without the "exec bash -c " part:
Find . -name "*.model" -exec bash -c "mv {} \`echo {} | sed -e 's//_/g'\`"... (0 Replies)
Hi guys
First thing to say is that I am entirely new to Shell Scripting and am trying to write a script to do something I thought would be relatively simple, but has escaped me.
Essentially, I want to take file name information from a list, find the files listed and then copy the results into... (0 Replies)
Hello
Im trying to make a script in bash shell programming to find subdirectories with the same name into the same directory and rename one of them!!
Could you please help me?
Thanks in advance (1 Reply)
but it's not working.
Hello all.
I'm running the following command to find files with a specific name and rename them, but the command prompt returns a short 10 seconds after executing and doesn't find or rename anything.
What am I doing wrong here?
find . -type f | for file in... (3 Replies)
I want to find all jpg files and then sort them by modification date. This is where I started.
find . -type f -name "*.jpg"
I tried to pipe a sort in there but that did not seem to work. Do I need to use xargs? (10 Replies)
Discussion started by: cokedude
10 Replies
LEARN ABOUT DEBIAN
asn1_parser2tree
asn1_parser2tree(3) libtasn1 asn1_parser2tree(3)NAME
asn1_parser2tree - API function
SYNOPSIS
#include <libtasn1.h>
asn1_retCode asn1_parser2tree(const char * file_name, ASN1_TYPE * definitions, char * errorDescription);
ARGUMENTS
const char * file_name
specify the path and the name of file that contains ASN.1 declarations.
ASN1_TYPE * definitions
return the pointer to the structure created from "file_name" ASN.1 declarations.
char * errorDescription
return the error description or an empty string if success.
DESCRIPTION
Function used to start the parse algorithm. Creates the structures needed to manage the definitions included in file_name file.
RETURNS
ASN1_SUCCESS if the file has a correct syntax and every identifier is known, ASN1_ELEMENT_NOT_EMPTY if definitions not ASN1_TYPE_EMPTY,
ASN1_FILE_NOT_FOUND if an error occured while opening file_name, ASN1_SYNTAX_ERROR if the syntax is not correct, ASN1_IDENTIFIER_NOT_FOUND
if in the file there is an identifier that is not defined, ASN1_NAME_TOO_LONG if in the file there is an identifier whith more than
ASN1_MAX_NAME_SIZE characters.
COPYRIGHT
Copyright (C) 2006-2011 Free Software Foundation, Inc..
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
SEE ALSO
The full documentation for libtasn1 is maintained as a Texinfo manual. If the info and libtasn1 programs are properly installed at your
site, the command
info libtasn1
should give you access to the complete manual.
libtasn1 2.13 asn1_parser2tree(3)