find files in sub dir with tag & add "." at the beginning [tag -f "Note" . | xargs -0 {} mv {} .{}]
I am trying find files in sub dir with certain tags using tag command, and add the period to the beginning. I can't use chflags hidden {} cause it doesn't add period to the beginning of the string for web purpose. So far with my knowledge, I only know mdfind or tag can be used to search files with tags in Mac OS x.
my current closest command is this (doesn't work):
Moderator's Comments:
Please wrap your samples/codes in CODE TAGS as per forum rules.
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Dear friends,
please tell me how to find the files which are existing in the current directory, but it sholud not search in the sub directories..
it is like this,
current directory contains
file1, file2, file3, dir1, dir2
and dir1 conatins
file4, file5
and dir2 contains
file6,... (9 Replies)
hi I have the following input and i want to print all the rows from "BUY" Tag till "SELL" alongwith Buy/sell tag at end of each row
------
INPUT
=====
30/06/2009,NORMAL,ALL,ALL
BUY
1,CBLO/020709,T+0,30/06/2009,100.00,3.00,999835643.46,200906300000422,-, 15:04:42,BUY... (5 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
I have a bunch of random character lines like ABCEDFG. I want to find all lines with "A" and then change any "E" to "X" in the same line. ALL lines with "A" will have an "X" somewhere in it. I have tried sed awk and vi editor. I get close, not quite there. I know someone has already solved this... (10 Replies)
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
I have the input file like this.
Input file: 12.txt
1) There are one or more than one <tr> tags in same line.
2) Some tr tags may have one <td> or more tna one <td> tags within it.
3) Few <td> tags having "<td> </td>". Few having more than one " " entry in it.
<tr> some td... (4 Replies)
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT NETBSD
m_tag_copy
M_TAG(9) BSD Kernel Developer's Manual M_TAG(9)NAME
m_tag, m_tag_get, m_tag_free, m_tag_prepend, m_tag_unlink, m_tag_delete, m_tag_delete_chain, m_tag_delete_nonpersistent, m_tag_find,
m_tag_copy, m_tag_copy_chain, m_tag_init, m_tag_first, m_tag_next -- mbuf tagging interfaces
SYNOPSIS
#include <sys/mbuf.h>
struct m_tag *
m_tag_get(int type, int len, int wait);
void
m_tag_free(struct m_tag *t);
void
m_tag_prepend(struct mbuf *m, struct m_tag *t);
void
m_tag_unlink(struct mbuf *m, struct m_tag *t);
void
m_tag_delete(struct mbuf *m, struct m_tag *t);
void
m_tag_delete_chain(struct mbuf *m, struct m_tag *t);
void
m_tag_delete_nonpersistent(struct mbuf *);
struct m_tag *
m_tag_find(struct mbuf *m, int type, struct m_tag *t);
struct m_tag *
m_tag_copy(struct m_tag *m);
int
m_tag_copy_chain(struct mbuf *to, struct mbuf *from);
void
m_tag_init(struct mbuf *m);
struct m_tag *
m_tag_first(struct mbuf *m);
struct m_tag *
m_tag_next(struct mbuf *m, struct m_tag *t);
DESCRIPTION
The m_tag interface is used to ``tag'' mbufs.
FUNCTIONS
m_tag_get(type, len, wait)
Allocate an mbuf tag. type is one of the PACKET_TAG_ macros. len is the size of the data associated with the tag, in bytes. wait
is either M_WAITOK or M_NOWAIT.
m_tag_free(t)
Free the mbuf tag t.
m_tag_prepend(m, t)
Prepend the mbuf tag t to the mbuf m. t will become the first tag of the mbuf m. When m is freed, t will also be freed.
m_tag_unlink(m, t)
Unlink the mbuf tag t from the mbuf m.
m_tag_delete(m, t)
The same as m_tag_unlink() followed by m_tag_free().
m_tag_delete_chain(m, t)
Unlink and free mbuf tags beginning with the mbuf tag t from the mbuf m. If t is NULL, m_tag_delete_chain() unlinks and frees all
mbuf tags associated with the mbuf m.
m_tag_delete_nonpersistent(m)
Unlink and free all non persistent tags associated with the mbuf m.
m_tag_find(m, type, t)
Find an mbuf tag with type type after the mbuf tag t in the tag chain associated with the mbuf m. If t is NULL, search from the
first mbuf tag. If an mbuf tag is found, return a pointer to it. Otherwise return NULL.
m_tag_copy(t)
Copy an mbuf tag t. Return a new mbuf tag on success. Otherwise return NULL.
m_tag_copy_chain(to, from)
Copy all mbuf tags associated with the mbuf from to the mbuf to. If to already has any mbuf tags, they will be unlinked and freed
beforehand. Return 1 on success. Otherwise return 0.
m_tag_init(m)
Initialize mbuf tag chain of the mbuf m.
m_tag_first(m)
Return the first mbuf tag associated with the mbuf m. Return NULL if no mbuf tags are found.
m_tag_next(m, t)
Return the next mbuf tag after t associated with the mbuf m. Return NULL if t is the last tag in the chain.
CODE REFERENCES
The mbuf tagging interfaces are implemented within the file sys/kern/uipc_mbuf2.c.
The PACKET_TAG_ macros are defined in the file sys/sys/mbuf.h.
SEE ALSO intro(9), malloc(9), mbuf(9)BUGS
The semantics of the term "persistent tag" are vague.
BSD September 7, 2004 BSD