Sponsored Content
Top Forums Shell Programming and Scripting How and What should I read/study to can resolve this script? Post 302973551 by enodev on Wednesday 18th of May 2016 05:01:46 PM
Old 05-18-2016
Hello,

RudiC, please tell me if this example explain and it serves you understand.

This is my file .txt:

Code:
.
└── raiz_

1 directory
.
├── [ 16K]  ./prfw_
│   ├── [ 12K]  ./prfw_/C0
│   │   ├── [ 98K]  ./prfw_/dfs/index.html
│   │   ├── [6.0K]  ./prfw_/dfs/a_asdf
│   │   ├── [7.5K]  ./prfw_/dfs/a_asfd_5
│   │   ├── [7.9M]  ./prfw_/dfs/asdfsaf.pdf
│   │   ├── [241K]  ./prfw_/dfs/asfasfsdc.pdf
│   │   ├── [ 18M]  ./prfw_/dfs/sdf dsf.pdf
│   │   ├── [ 116]  ./prfw_/dfs/backup.txt
.....continue until 180 000 lines

And I need this result, after run the algorithmic:

Code:
values=    [│   │   ├── [ 98K]  ./prfw_/dfs/index.html]
        [info_line=[index.html][98K]]
values=    [│   │   ├── [6.0K]  ./prfw_/dfs/a_asdf]
        [info_line=[a_asdf][6.0K]]

Don Cragun, this request don't will be the homework. I need this to management the files on the disk!

Thanks
 

10 More Discussions You Might Find Interesting

1. IP Networking

Cannot Resolve Host Name

I am running LexMark MarkNetPro-3 print servers on my AIX network. All of the sudden, none of my printers will print anymore. I am getting an error message on the console: Unable to resolve host name. This message comes up everytime a user submits a print job. Any Ideas? (1 Reply)
Discussion started by: Docboyeee
1 Replies

2. UNIX for Dummies Questions & Answers

how do u resolve this????

Please help me on how to resolve: 1-unresponsive terminals 2-unresponsive applications 3-how to interrupt processe p.s unix/linux OS (1 Reply)
Discussion started by: zizu
1 Replies

3. Shell Programming and Scripting

Resolve a Variable

Hi I have a variable which is a path ie: UBERROR=/cobwrk/mchr/prodsup/ub/wrk/../error is there anyway I can get the output of an echo to read: #echo $UBERROR /cobwrk/mchr/prodsup/ub/error instead of #echo $UBERROR /cobwrk/mchr/prodsup/ub/wrk/../error Many thanks! (2 Replies)
Discussion started by: serm
2 Replies

4. Shell Programming and Scripting

please resolve the below problem

#!/bin/sh # 'clear' for i in $(seq -w 15 37) do echo $i echo The content in Z Z=`wget --dns-timeout=0.001 http://napdweb${i}.eao.abn-iad.ea.com:8000/webcore/test/test.jsp` echo $Z A="Connection timed out." echo The content in A echo $A expr "$A" : '..\(...\)' echo $A done ... (1 Reply)
Discussion started by: veerumahanthi41
1 Replies

5. UNIX for Dummies Questions & Answers

Please resolve it

#!/bin/sh# 'clear'for i in $(seq -w 15 37)doecho $iecho The content in ZZ=`wget --dns-timeout=0.001 http://napdweb${i}.eao.abn-iad.ea.co.../test/test.jsp`echo $ZA="Connection timed out."echo The content in Aecho $Aexpr "$A" : '..\(...\)'echo $Adone Hi,Please see the above program. The above... (9 Replies)
Discussion started by: veerumahanthi41
9 Replies

6. UNIX for Dummies Questions & Answers

Resolve IP to Hostname?

Good day, I would like to resolve IP's to Hostnames using Putty. I'm using Mandriva Linux 2008.0. Is this possible? Perhaps with nmap? (13 Replies)
Discussion started by: McGuywer
13 Replies

7. Shell Programming and Scripting

Please help to resolve the below script

Dear Members, Please help me to resolve below script. The script is used to send the attachment in the mail with all the details. However in one of the incidents, the attachment in the mail was blank. Now the client is after me to get it resolved ASAP. So prompt response would be highly... (2 Replies)
Discussion started by: SKO_TC
2 Replies

8. Shell Programming and Scripting

Resolve Environment Variable

I am tyring to resolve an environment variable that is part of a string I selected from our database. Simply put, I want cd to this folder before checking if a file exists. The variable $in_loc has the value '$PS_HOME/int/VSP' where $PS_HOME is the environment variable. I am using cd... (6 Replies)
Discussion started by: consult_jb
6 Replies

9. Shell Programming and Scripting

Filter out IP addresses in domain resolve script

Hello everyone, I have written a one liner which looks in a configuration file for remote hosts to connect to. It then resolves them by first ping, and nslookup if it fails, then places the info in the hosts file. The whole thing works, seemingly, apart from one slight issue. I would like to... (0 Replies)
Discussion started by: haggismn
0 Replies

10. Red Hat

Could not resolve ip through DNS

Dear all , Very recently our DNS server ip got changed. I have entered the DNS ip in /etc/resolv.conf ...but I could not resolv it for my ip address. Verified that , the IP is added in the DNS also. It is still working with the old DNS ip. Please let me know what could be... (11 Replies)
Discussion started by: jegaraman
11 Replies
shareall(1M)						  System Administration Commands					      shareall(1M)

NAME
shareall, unshareall - share, unshare multiple resources SYNOPSIS
shareall [ -F FSType [ ,FSType...]] [-| file] unshareall [ -F FSType [ ,FSType...]] DESCRIPTION
When used with no arguments, shareall shares all resources from file, which contains a list of share command lines. If the operand is a hyphen (-), then the share command lines are obtained from the standard input. Otherwise, if neither a file nor a hyphen is specified, then the file /etc/dfs/dfstab is used as the default. Resources may be shared by specific file system types by specifying the file systems in a comma-separated list as an argument to -F. unshareall unshares all currently shared resources. Without a -F flag, it unshares resources for all distributed file system types. OPTIONS
-F FSType Specify file system type. Defaults to the first entry in /etc/dfs/fstypes. FILES
/etc/dfs/dfstab ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
share(1M), unshare(1M), attributes(5) SunOS 5.10 6 Nov 2000 shareall(1M)
All times are GMT -4. The time now is 03:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy