Sponsored Content
Full Discussion: Assistance for sorting files
Top Forums Shell Programming and Scripting Assistance for sorting files Post 302766643 by jim mcnamara on Tuesday 5th of February 2013 05:48:14 AM
Old 02-05-2013
This can be done. But the way you have put your question together leaves too much guesswork on our part.

Please give us actual sample input - filenames - and actual expected results.
 

10 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Urgent Need for Assistance: Triggering Windows bat files from UNIX

Hello, Is there a way to trigger a Windows bat file or program on a different machine from a different UNIX server using KSC file? I hope you can assist me with this. Thanks! (0 Replies)
Discussion started by: punyenye
0 Replies

2. Shell Programming and Scripting

Assistance with regex and config files

I am trying to write a shell script that will such in data from a config file. The script should mount device nodes that are contained in a config file in the following format: # filesystem type # read/write #device # Mount Point xfs w ... (1 Reply)
Discussion started by: pryker
1 Replies

3. Shell Programming and Scripting

Need assistance with simple shell script to organize files. [Code attached]

I need some help with this shell script for class. All it does is organize your files. It works, but in the log file, it needs to show the new filepaths of the moved files. Heres my log of my output: Starting to organize... movie2.wmv --> movie3.mov --> movie1.mpg --> song1.mp3 --> ... (3 Replies)
Discussion started by: ryandamartini
3 Replies

4. Shell Programming and Scripting

Assistance pls - pipe error: Too many open files in system

When I run a bash script in the customer system, it throws the warning and script exits Exec '/root/sample.sh' @ hostname-- OK (warn) /root/sample.sh: pipe error: Too many open files in system /root/sample.sh: n + : syntax error: operand expected (error token is " ") Exec... (5 Replies)
Discussion started by: vidhyamirra
5 Replies

5. Shell Programming and Scripting

script assistance needed - create an archive of INI files

First and foremost - me != unix bubba. Here is the situation. We have a box with data AND settings in the same directory path. (Data files aren't in the SAME directories as settings.) I need a script that generates a tarred-up archive of only the INI files with the directory structure. We... (2 Replies)
Discussion started by: hindesite
2 Replies

6. UNIX for Dummies Questions & Answers

Assistance with combining, sorting and saving multi files into one new file

Good morning. I have a piece of code that is currently taking multiple files and using the CAT.exe command to combine into one file that is then sorted in reverse order based on the 3rd field of the file, then displayed on screen. I am trying to change this so that the files are being combined into... (4 Replies)
Discussion started by: jaacmmason
4 Replies

7. Shell Programming and Scripting

Need Assistance with gzipping files with same names

Hello, I have an issue on a webserver where I have a perl script rotating and moving the logs to an archive directory where they are gzipped. This is working fine. The problem is when there is tracing enabled on my webserver where the tracelogs are rotated whenenver they reach 100Meg and they... (2 Replies)
Discussion started by: techwiz45
2 Replies

8. Shell Programming and Scripting

Complex data sorting in excel files or text files

Dear all, I have a complex data file shown below,,,,, A_ABCD_13208 0 0 4.16735 141044 902449 1293900 168919 C_ABCD_13208 0 0 4.16735 141044 902449 1293900 168919 A_ABCDEF715 52410.9 18598.2 10611 10754.7 122535 252426 36631.4 C_DBCDI_1353 0... (19 Replies)
Discussion started by: AAWT
19 Replies

9. Shell Programming and Scripting

Assistance with an awk code to split files but keep the header

---------- Post updated at 11:48 AM ---------- Previous update was at 11:46 AM ---------- Hello all I have an awk code that successfully creates separate text files based on the first six letters of the second field. What it doesn't do is preserve the header into each resulting file. ... (6 Replies)
Discussion started by: colecandoo
6 Replies

10. UNIX for Beginners Questions & Answers

awk assistance - Comparing 2 csv files

Hello all, I have searched high and low for a solution to this, many have come really close but not quite what I'm after. I have 2 files. One contains GUID's, for example: 8121E002-96FE-4C9C-BC5A-6AFF20DACECD 84468F30-F3B7-418B-81F0-0908E80792BF A second file, contains a path to the... (8 Replies)
Discussion started by: tirmUK
8 Replies
fverify(8)						      System Manager's Manual							fverify(8)

Name
       fverify - verify software subsets

Syntax
       fverify [-yn]

Description
       The  command  reads  subset  inventory  records	from standard input and verifies that the attributes for the files on the system match the
       attributes listed in the corresponding records.	Invoking with no arguments causes it to report errors to the standard  output  and  prompt
       the user for confirmation before making corrections.

       Missing	files and inconsistencies in file size, checksum, user id, group id, mode, and file type are reported.	If inconsistencies in user
       id, group id or mode are detected the user is asked if they are to be corrected. If a missing file is a directory, it will be created.  All
       errors and informational messages are logged to the file

       The utility uses when installing subsets to guarantee correct installation.

Options
       Specifying both options will cause the -y option to be ignored.

       -n     Error reporting only. When specified, reports errors and does not perform any fixes.

       -y     Fixes  only. When specified, fixes modes, UIDs and GIDs on any files which have incorrect values for these attributes. No user input
	      is required.

Restrictions
       Problems with file size, file type, and file checksum cannot be corrected.

       Because the subset inventories give file names as relative paths, run in the root directory to which the software is installed.

       Many of the files on the system cannot be read or modified without appropriate privilege. Attempting to run without  appropriate  privilege
       may result in an excess of access errors being reported.

Examples
       To use to report verification problems with the BASE subset on ULTRIX, Version 4.0 (VAX), use the following command:
       % cd /
       % /etc/stl/fverify -n </usr/etc/subsets/ULTBASE400.inv

       To correct all problems with the same subset without being presented any prompts or diagnostic output, type:
       % cd /
       % /etc/stl/fverify -y < /usr/etc/subsets/ULTBASE400.inv

       To  interactively  repair  verification	problems with the COMM subset on ULTRIX, Version 4.0 (RISC), use the fverify command with no argu-
       ments:
       % cd /
       % /etc/stl/fverify < /usr/etc/subsets/UDTCOMM400.inv

Diagnostics
       fverify: out of memory
       Not enough memory is available from the system.

       pathname: cannot stat (error-message)
       The file pathname is listed in the inventory but is not on the system.  The error-message explains why.

       pathname: file type `x' should be `y'
       The file is listed in the inventory as being of type `y', but the copy of the file on the disk is type `x'.  The file type codes are:

	      b  block device files
	      c  character device files
	      d  directory files
	      f  regular files
	      l  hard links
	      p  fifos (named pipes)
	      s  symbolic links

       pathname: checksum n should be m
       There is a checksum error on pathname.  The values n and m are the actual and expected values.

       pathname: size n should be m
       The size of file pathname is not as expected. The numbers n and m are the actual and expected values.

       pathname: gid n should be m
       The group id for pathname is not as expected. The group ids n and m are the actual and expected values.

       pathname: uid n should be m
       The user id for pathname is not as expected. The user ids n and m are the actual and expected values.

       pathname: permissions string1 should be string2
       The permissions for pathname are not as expected.  String1 and string2 are the actual and expected permissions. The format of  string1  and
       string2 is the same as that used by the command.

       Creating directory pathname
       The  directory  pathname  is listed in the input inventory but does not exist on the system.  The command will attempt to create the direc-
       tory.

       cannot correct pathname (error-message)
       A problem reported with pathname could not be corrected. The error-message explains why.

       pathname corrected
       A problem with pathname was successfully corrected.

       Cannot create dir pathname (error-message)
       The program could not create a directory it was attempting to create.  The accompanying error-message explains why.

       n verification errors encountered.
       m corrections performed.
       Before exiting, the program prints these statistics describing what had been done.

       The exit status from is the total number of errors detected minus the total number of successful fixes.

Files
       Subset inventory files

       Log File

See Also
       ls(1), stl_inv(5), setld(8)
       Guide to Preparing Software for Distribution on ULTRIX Systems

																	fverify(8)
All times are GMT -4. The time now is 06:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy