Sponsored Content
Top Forums Shell Programming and Scripting [bash] jump from one txt file to another Post 302315856 by laurens on Wednesday 13th of May 2009 11:01:56 AM
Old 05-13-2009
Quote:
Originally Posted by Franklin52
Can you post a part of the file ftpservers.txt and the desired output within code tags?

Regards
The file: ftpservers.txt
Code:
80.xx.xx.76              -> IP server
ftpmac28                 -> username
passO#lanL              -> password
212.xx.xx.52             -> IP server
ftpmac28                 -> username
passO#lanL              -> password
212.xx.xx.61
ftpmac28
passO#lanL
212.xx.xx.62
ftpmac28
passO#lanL
212.xx.xx.17
ftpmac28
passO#lanL
212.xx.xx.10
ftpmac28
passO#lanL
212.xx.xx.75
ftpmac28
passO#lanL

...etc...

For the _folderlist.txt files; they look like this:
Code:
docshop.xx.be\files
extranetdocshop.xx.be\files
fleet.xx.be\doccshop\files

The thing I would like to have for now is that the folders would be displayed.

Thus, when I execute my bash script ./bash.sh , I should get something like:
Code:
212.124.56.75
docshop.xx.be\files
extranetdocshop.xx.be\files
fleet.xx.be\doccshop\files
212.124.56.76
-nothing-
212.124.56.101
project.xx.be\html\upload
project.xx.be\html\attachement
212.124.56.113
-nothing-

...etc...

The output of this shouldn't necessarily be the same (layout) but the most important is that it shows the folder paths.

I hope you understand now what it should be doing.

Thanks in advance!

Regards,
Laurens
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Binary txt file received when i use uuencode to send txt file as attachment

Hi, I have already read a lot of posts on sending attachments in unix...but none of them were of help for my problem...so here goes.. i wanna attach a text file and send to a mail id..used the following code : uuencode "$File1" "$File1" ;|mail -s "$Mail_sub" abc@abc.com it works... (2 Replies)
Discussion started by: ash22
2 Replies

2. Shell Programming and Scripting

Jump to a specific place in a file?

If I cat a file And want to go to the first instance of a particular value - what command would I use? And then from that point where I jumped to search for another value - but only search from that point forward not before the file? Thanks~ (2 Replies)
Discussion started by: llsmr777
2 Replies

3. Shell Programming and Scripting

bash script to sort a txt file

I am writing a script to write to and a sort txt file. After I sort the file I want to add 2 to each line of the file. My script thus far is #!/bin/bash cat > /ramdisk/home/stux/unsortedints.out COUNT=0 FILE =/ramdisk/home/stux/unsortedints.out for i in {1..100} do NUMBER = $ echo $NUMBER... (3 Replies)
Discussion started by: puttyirc
3 Replies

4. UNIX for Advanced & Expert Users

vimdiff jump to other file or switch windows

This took me quite awhile to find so I wanted to share this with other people. To switch windows in vimdiff or to navigate windows in vimdiff or to change windows in vimdiff try the following: The ":vertical" command can be inserted before another command that splits a window. ... (0 Replies)
Discussion started by: cokedude
0 Replies

5. Shell Programming and Scripting

awk append fileA.txt to growing file B.txt

This is appending a column. My question is fairly simple. I have a program generating data in a form like so: 1 20 2 22 3 23 4 12 5 43 For ever iteration I'm generating this data. I have the basic idea with cut -f 2 fileA.txt | paste -d >> FileB.txt ???? I want FileB.txt to grow, and... (4 Replies)
Discussion started by: theawknewbie
4 Replies

6. Shell Programming and Scripting

Need to append the date | abcddate.txt to the first line of my txt file

I want to add/append the info in the following format to my.txt file. 20130702|abcd20130702.txt FN|SN|DOB I tried the below script but it throws me some exceptions. <#!/bin/sh dt = date '+%y%m%d'members; echo $dt+|+members+$dt; /usr/bin/awk -f BEGIN { FS="|"; OFS="|"; } { print... (6 Replies)
Discussion started by: harik1982
6 Replies

7. UNIX for Dummies Questions & Answers

Write pid and command name to a txt file while executing a bash script

Hi All, Just have a requirement, I am executing a bash shell script, my requirement is to catch the pid and job name to a txt file in the same directory, is there anyway to do it? please help me out. Regards Rahul ---------- Post updated at 08:42 AM ---------- Previous update was at... (2 Replies)
Discussion started by: rahulkalra9
2 Replies

8. Shell Programming and Scripting

Call a Perl script within a bash script and store the ouput in a .txt file

I'm attempting to write a bash script that will create a network between virtual machines. It accepts three arguments: an RSpec that describes the network topology, and two list of machines (servers and clients). I have a (working) Perl script that I want to call. This Perl script takes an RSpec... (6 Replies)
Discussion started by: mecaka
6 Replies

9. Shell Programming and Scripting

Desired output.txt for reading txt file using awk?

Dear all, I have a huge txt file (DATA.txt) with the following content . From this txt file, I want the following output using some shell script. Any help is greatly appreciated. Greetings, emily DATA.txt (snippet of the huge text file) 407202849... (2 Replies)
Discussion started by: emily
2 Replies

10. Shell Programming and Scripting

Bash incert line from 1.txt to 2.txt

i would like to insert a line from 2.txt into 1.txt between " and " or a way of adding to the end of each line " _01_ and have the numbers correspond to the line # 1.txt= foofoo "" _01_ foofoo "" _02_ foofoo "" _03_ foofoo "" _04_ 2.txt= ... (6 Replies)
Discussion started by: klein
6 Replies
NOUVEAU(4)						     Kernel Interfaces Manual							NOUVEAU(4)

NAME
nouveau - NVIDIA video driver SYNOPSIS
Section "Device" Identifier "devname" Driver "nouveau" ... EndSection DESCRIPTION
nouveau is an Xorg driver for NVIDIA video cards. The driver supports 2D acceleration and provides support for the following framebuffer depths: (15,) 16 and 24. TrueColor visuals are supported for these depths. SUPPORTED HARDWARE
The nouveau driver supports PCI, PCI-Express and AGP video cards based on the following NVIDIA chips: RIVA TNT NV4 RIVA TNT2 NV5 GeForce 256, QUADRO NV10 GeForce2, QUADRO2 NV11 & NV15 GeForce3, QUADRO DCC NV20 nForce, nForce2 NV1A, NV1F GeForce4, QUADRO4 NV17, NV18, NV25, NV28 GeForce FX, QUADRO FX NV30, NV31, NV34, NV35, NV36, NV37, NV38 GeForce 6XXX NV40, NV41, NV43, NV44, NV45, C51 GeForce 7XXX G70, G71, G72, G73 CONFIGURATION DETAILS
Please refer to xorg.conf(5) for general configuration details. This section only covers configuration details specific to this driver. The driver auto-detects the chipset type and the amount of video memory present for all chips. The following driver Options are supported: Option "HWCursor" "boolean" Enable or disable the HW cursor. Default: on. Option "NoAccel" "boolean" Disable or enable acceleration. Default: acceleration is enabled. Option "ShadowFB" "boolean" Enable or disable use of the shadow framebuffer layer. Default: off. Option "WrappedFB" "boolean" Enable or disable wfb, only affects nv50+. Useful for some legacy configurations where high rendering latency is perceived. Default: wfb is disabled. Option "GLXVBlank" "boolean" Synchronize GLX clients to VBlank. Useful where tearing is a problem, harmful if the GPU isn't fast enough to keep up with the moni- tor refresh rate. Default: off. Option "ZaphodHeads" "string" Specify the randr output(s) to use with zaphod mode for a particular driver instance. If you use this option you most use this option for all instances of the driver. For example: Option "ZaphodHeads" "LVDS,VGA-0" will assign xrandr outputs LVDS and VGA-0 to this instance of the driver. Option "PageFlip" "boolean" Enable DRI2 page flipping. Default: on. Option "SwapLimit" "integer" Set maximum allowed number of pending OpenGL double-buffer swaps for a drawable before a client is blocked. A value of 1 corresponds to double-buffering. A value of 2 corresponds to triple-buffering. Higher values may allow higher framer- ate, but also increase lag for interactive applications, e.g., games. Nouveau currently reliably supports a maximum value of 2 on XOrg 1.12+. A maximum setting of 2 on older x-servers is allowed, but it will break conformance with the OpenML OML_sync_control specification and will cause failure of software that relies on correct presentation timing behaviour as defined in that specifica- tion. Default: 2 for XOrg 1.12+, 1 for older servers. SEE ALSO
Xorg(1), xorg.conf(5), Xserver(1), X(7) AUTHORS
Authors include: David McKay, Jarno Paananen, Chas Inman, Dave Schmenk, Mark Vojkovich COPYRIGHT
NOTICE TO USER: The source code is copyrighted under U.S. and international laws. Users and possessors of this source code are hereby granted a nonexclusive, royalty-free copyright license to use this code in individual and commercial software. Any use of this source code must include, in the user documentation and internal comments to the code, notices to the end user as fol- lows: Copyright 1993-2003 NVIDIA, Corporation. All rights reserved. NVIDIA, CORPORATION MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOURCE CODE FOR ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND. NVIDIA, CORPORATION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOURCE CODE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL NVIDIA, CORPORATION BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFOR- MANCE OF THIS SOURCE CODE. U.S. Government End Users. This source code is a "commercial item," as that term is defined at 48 C.F.R. 2.101 (OCT 1995), con- sisting of "commercial computer software" and "commercial computer software documentation," as such terms are used in 48 C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government only as a commercial end item. Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all U.S. Government End Users acquire the source code with only those rights set forth herein. X Version 11 xf86-video-nouveau 1.0.10 NOUVEAU(4)
All times are GMT -4. The time now is 02:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy