09-16-2013
Thank you for your quick respond.
The command worked very well.
This User Gave Thanks to alex2005 For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi friends,
I am getting some trubles in folder reading. I am having 10 subfolders inside server7 folder. i wanna to read a subfolder name first and check if the foldername gets started with "http". if so , i need to read a file inside that folder. This willl continue for... (1 Reply)
Discussion started by: kamatchirajan
1 Replies
2. UNIX for Dummies Questions & Answers
I am adding some individual files to a tar archive and would like them to be added to the archive without any directory hierarchy, even though the files themselves exist in levels of hierarchy. Unfortunately, tar seems to always preserve the directory hierarchy when it adds the files.
Here is... (2 Replies)
Discussion started by: Special_K
2 Replies
3. Shell Programming and Scripting
In shell how would I get the parent directory of a file. E.g. I feed this in:
/path/to/textfile.txt
And get just:
/path/to
Thanks (2 Replies)
Discussion started by: pcwiz
2 Replies
4. UNIX for Dummies Questions & Answers
Is there anyway i can cd to the parent directory of my current directory without using .. entries? (6 Replies)
Discussion started by: linux17
6 Replies
5. Shell Programming and Scripting
Hi,
I have the following subfolder with files:
/data/a/1/xxx.txt
/data/b/2/yyy.txt
/data/c/3/zzz.txt
And i have a set of new folders which have exactly the same structure as above but different disk without the files:
/data_02/a/1/
/data_02/b/2/
/data_02/c/3/
Now i would like to... (6 Replies)
Discussion started by: total_ysf
6 Replies
6. UNIX for Dummies Questions & Answers
does anyone know how to check in an 'if' statement if a particular directory is a child directory of a particular directory?
help ~ (2 Replies)
Discussion started by: ymc1g11
2 Replies
7. Shell Programming and Scripting
I have directory with shorcuts of files.
for example:
gara@yn\short\name1 ( shortcut to gara@yn\FOLDER\OPT\GARA\1.jpg )
gara@yn\short\name2 ( shortcut to gara@yn\FOLDER\OPT\GARA\11.jpg )
gara@yn\short\name3 ( shortcut to gara@yn\MARA\URSA\2.jpg )
gara@yn\short\name4 ( shortcut to... (6 Replies)
Discussion started by: gogok_bg
6 Replies
8. Shell Programming and Scripting
Hi folks,
I have an query that is let say i have to search in an xml file an tag that is <abcdef> now this xml file is at /opt/usr/local so one fastest way to achieve this is go to this location by cd /opt/usr/local and then do grep like this... grep -i abcdef but for this I must know the... (4 Replies)
Discussion started by: punpun66
4 Replies
9. Shell Programming and Scripting
Hi Team,
I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder.
Eg:
parent folder --> /Interface/data/test/IN
Sub folder -->/Interface/data/test/IN/Invoice20180607233338
Subfolder will be always with timestamp... (6 Replies)
Discussion started by: srivarun15
6 Replies
10. Shell Programming and Scripting
The bash executes but returns no results and the set -xv showed while the $run variable in blue, was extracted correctly, the $match value in green, was not, rather both values in home/cmccabe/Desktop/f1 were extracted not just the matching.
There will always be an exact match from the $run to... (7 Replies)
Discussion started by: cmccabe
7 Replies
LEARN ABOUT DEBIAN
aoecfg
aoecfg(8) System Manager's Manual aoecfg(8)
NAME
aoecfg - manipulate AoE configuration strings
SYNOPSIS
aoecfg [-c cmd] [-s cfgstr] [-t timeout] [shelf slot] [netif]
DESCRIPTION
Aoecfg(8) sends AoE configuration commands that control the retrivial, conditional or unconditional setting of AoE configuration strings.
Since configuration happens before the MAC address of the target is known, the packet is broadcast. AoE targets with a matching shelf and
slot respond. Since the default shelf and slot are the wildcard values 0xffff and 0xff, with no arguments aoecfg(8) will return configura-
tion strings from all targets visible on the default interface, eth0.
OPTIONS
-c cmd specify the AoE configuration command. The default is read. The available commands are
read Read the server config string without performing any test and respond.
test Respond only if the specified string exactly matches the server configuration string.
prefix Respond only if the specified string is a prefix of the server configuration string.
set If the current server config string is empty, set the server config string to the argument string and respond. If the current server
config string is not empty, return a response with Flags bit E set and Error set to 4.
fset Force set the server config string to the argument string and respond.
-s cfgstr
specify the config string.
-t timeout
specify the timeout in seconds. The default is no timeout. If neither the shelf nor the slot are specified, aoecfg(8) will exit
after the first result. Otherwise, aoecfg(8) will exit only after the timeout has expired since it does not know how many
responses to expect.
shelf slot
specify the shelf and slot used in the query. If unspecified, they default to broadcast.
netif specifiy the network interface. The default is eth0.
SEE ALSO
aoe-discover(8), aoe-interfaces(8), aoe-mkdevs(8), aoe-mkshelf(8), aoe-stat(8), aoeping(8), AoE (ATA over Ethernet): http://sup-
port.coraid.com/documents/AoEr10.txt, ATA specification
AUTHOR
Erik Quanstrom (quanstro@coraid.com)
aoecfg(8)