Sponsored Content
Top Forums Shell Programming and Scripting How to move to the last subdirectory one by one? Post 302961315 by RudiC on Thursday 26th of November 2015 01:35:41 PM
Old 11-26-2015
Whenever the branch changes, last (holding the line before) will hold the longest previous branch; so that and only that should be printed.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

subdirectory password

Hi! I am a user of a workstation. I have got my own previlages on my system. Still I would like to have a security for my data. Can I set password or write a script that the entry to a particular subdirectiry is restricted?:confused: (1 Reply)
Discussion started by: sskb
1 Replies

2. Shell Programming and Scripting

Count files in every subdirectory

Hi if anyone could help me :) I did a lot of search and 70% of answer is "how to count files in all subdirectories". A basic problem for me is how to count files in every subdirectory separately then sort it by number of files For example: dir1 file1 file2 subdir11 dir2 dir3 ... (3 Replies)
Discussion started by: yorryk
3 Replies

3. Shell Programming and Scripting

How to deleting some files under subdirectory

Hi guys, sorry if my english not very well.. i have a problem.. i have a file and the structure is : Folder/ Folder/10.123.124.20/pm_data/A200807 Folder/10.123.124.20/pm_data/A200807 Folder/10.123.124.20/pm_data/A200807 Folder/10.123.124.20/pm_data/A200808... (4 Replies)
Discussion started by: AdziE
4 Replies

4. Shell Programming and Scripting

Comparing subdirectory names

I am trying to reformat data from one private directory and reformat it and move it to a public one, but i only want to get directories that have not already been moved to the public directory. Here's what i'm working with Dir1 contains folders for each named with timestamp 20090320081302... (2 Replies)
Discussion started by: dabombace
2 Replies

5. Shell Programming and Scripting

Regex to remove subdirectory

I need to remove subdirectories that are empty and I've not done this before. First I am going through the files to remove old records. Then if the directory is empty I want to delete it. There are files in /direcotry/images/fs* - 0-9 and a-z The fs* directories need to stay, but any directories... (4 Replies)
Discussion started by: janel10
4 Replies

6. UNIX for Dummies Questions & Answers

How to move all files in a directory and subdirectory?

I'm trying to organize my MB Pro by moving all my jpeg files to a single folder from the desktop. There are some on the desktop that are not in any folder. I was at the command line and typed mv *.jpg "Jpeg files" but it only moved the files that were on the desktop, not any of the ones that... (3 Replies)
Discussion started by: Straitsfan
3 Replies

7. UNIX for Dummies Questions & Answers

Listing files in subdirectory

Forgive me if there is an answer to this somewhere in the forums. I've gone through as much as I could but couldn't find a relevant answer. What I'm trying to do is use the ll command to list some files in a subdirectory that matches a certain format. I've tried ll *.*a* <subdirectory> but... (3 Replies)
Discussion started by: archaic
3 Replies

8. UNIX for Dummies Questions & Answers

How to Find files in subdirectory?

I am trying to find all DAT files in a subdirectory named IN. I do not know the entire path. For example: /stage/<?>/<?>/IN/file.DAT I am using the find command without success: find /stage -name IN -a -name '*.DAT' -print What is the correct logic and syntax? Thank you for the help. (5 Replies)
Discussion started by: TwinGT
5 Replies

9. Shell Programming and Scripting

Move all files not in a directory into a subdirectory named for each given file

Hi Everyone! Looking for some help with a script that will take all files in any given root folder (which are not already in a folder) and put them into separate folders with the name of each given file. Any ideas? Thank you! (1 Reply)
Discussion started by: DanTheMan
1 Replies

10. Shell Programming and Scripting

Drilling down to the last subdirectory

Within a BASH environment, I need to search through a filesystem looking for the last subdirectory. Once the last subdirectory of the filesystem is found, I need to create another directory within it: Basic example: /u01/data1/project_1/proj_data1/score... (9 Replies)
Discussion started by: leepet
9 Replies
branch(1rheolef)						    rheolef-6.1 						  branch(1rheolef)

NAME
branch -- handle a family of fields SYNOPSIS
branch [options] filename EXAMPLE
Generates vtk file colection for visualization with paraview: branch output.branch -paraview DESCRIPTION
Read and output a branch of finite element fields from file, in field text file format. INPUT FILE SPECIFICATION
-Idir add dir to the RHEOPATH search path. See also geo(2) for RHEOPATH mechanism. filename specifies the name of the file containing the input field. - read field on standard input instead on a file. -ndigit int Number of digits used to print floating point values when using the `-geo' option. Default depends upon the machine precision asso- ciated to the Float type. OUTPUT AND RENDER SPECIFICATION
-extract int Extract the i-th record in the file. The output is a field or multi-field file format. -branch Output on stdout in `.branch' format. This is the default. -paraview Generate a collection of vtk files for using paraview. -vtk Generate a single vtk file with numbered fields. -gnuplot Run 1d animation using gnuplot. -plotmtv This driver is unsupported for animations. OTHER OPTIONS
-umin float -umax float set the solution range for the gnuplot driver. By default this range is computed from the first field of the branch, and this could be problematic when this field is initialy zero. -topography filename[.field[.gz]] performs a tridimensionnal elevation view based on the topographic data. -proj performs a P1 projection on the fly. This option is useful when rendering P0 data while vtk render requieres P1 description. -elevation For two dimensional field, represent values as elevation in the third dimension. This is the default. -noelevation Prevent from the elevation representation. -scale float applies a multiplicative factor to the field. This is useful e.g. in conjonction with the elevation option. The default value is 1. -verbose print messages related to graphic files created and command system calls (this is the default). -noverbose does not print previous messages. -clean clear temporary graphic files (this is the default). -noclean does not clear temporary graphic files. -execute execute graphic command (this is the default). -noexecute does not execute graphic command. Generates only graphic files. This is usefull in conjuction with the -noclean command. BRANCH FILE FORMAT
The `.branch' file format bases on the `.field' one: EXAMPLE GENERAL FORM #!branch #!branch branch branch 1 1 11 <version> <nfield=1> <nvalue=N> time u <key> <field name> #time 3.14 #<key> <key value 1> #u #<field name> field <field 1> ..... .... ..... .... #time 6.28 #<key> <key value N> #u #<field name> field <field N> ..... .... The key name is here time, but could be any string (without spaces). The previous example contains one field at each time step. Labels appears all along the file to facilitate direct jumps and field and step skips. The format supports several fields, such as (t,u(t),p(t)), where u could be a multi-component (e.g. a vector) field: #!branch branch 1 2 11 time u p #time 3.14 #u mfield 1 2 #u0 field ... #u1 field ... #p #time 6.28 ... SEE ALSO
geo(2) rheolef-6.1 rheolef-6.1 branch(1rheolef)
All times are GMT -4. The time now is 05:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy