Sponsored Content
Full Discussion: Split and Rename Split Files
Top Forums UNIX for Beginners Questions & Answers Split and Rename Split Files Post 303014601 by techedipro on Thursday 15th of March 2018 01:55:42 PM
Old 03-15-2018
RudiC & apmcd47,

Initailly I did not tested the command with -d flag . I realized it only after running it on AIX machine that -d is not an option.

-d flag will not work.

Any other work around ?


Thanks for your time and patience on this!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Split a file with no pattern -- Split, Csplit, Awk

I have gone through all the threads in the forum and tested out different things. I am trying to split a 3GB file into multiple files. Some files are even larger than this. For example: split -l 3000000 filename.txt This is very slow and it splits the file with 3 million records in each... (10 Replies)
Discussion started by: madhunk
10 Replies

2. Shell Programming and Scripting

split and rename the file

Hi All, I have a requirement .I want to split a file and the split files should have certain names. Currently when i use the split command split -1000 testdata testdata_ Then the output is testdata_aa testdata_bb testdata_cc and so on. But i want the output as testdata1.snd... (3 Replies)
Discussion started by: dnat
3 Replies

3. Shell Programming and Scripting

awk split and rename files

I have a file test1.html like below: <dctm_topnav_en_US> <html> ..... </html> <dctm_topnav_en_CA> <html> ..... </html> <dctm_topnav_en_FR> <html> ..... </html> I need to use awk to split this into three file names like en_US.html , en_CA.html, en_FR.html each having content between... (4 Replies)
Discussion started by: vijay52
4 Replies

4. UNIX for Dummies Questions & Answers

Split then rename

Hi everyone, I am trying to write an if statement that will split a file if it is over 1 million records/lines into files with say 900,000 records and then rename those files without the aaa, aab, aac format that splitting normally does and into a specific naming convention. For instance, if... (2 Replies)
Discussion started by: coach5779
2 Replies

5. UNIX for Dummies Questions & Answers

Split and Rename files using Terminal and bin/bash

I have a file named Me_thread_spell.txt that I want to split into smaller files. I want it to be split in each place there is a ;;;. For example, blah blah blah ;;; blah bhlah hlabl awasnceuir asenduhfoijhacseiodnbfxasd;;; oabwcuhaweoir;;; This full file would be three separate files... (7 Replies)
Discussion started by: mschpers
7 Replies

6. Shell Programming and Scripting

awk to split one field and print the last two fields within the split part.

Hello; I have a file consists of 4 columns separated by tab. The problem is the third fields. Some of the them are very long but can be split by the vertical bar "|". Also some of them do not contain the string "UniProt", but I could ignore it at this moment, and sort the file afterwards. Here is... (5 Replies)
Discussion started by: yifangt
5 Replies

7. UNIX for Dummies Questions & Answers

Split and Rename multiple files

Hi, I have a data file like below messageid|email|timestamp 750452173|123@googlemail.com|2013-05-24 16:14:32 750464921|000@gmail.com|2013-06-13 19:38:01 750385426|001@googlemail.com|2013-01-06 12:06:36 750373470|000@wz.eu|2012-11-30 22:32:07 . . I want to split the files based on the... (4 Replies)
Discussion started by: armsaran
4 Replies

8. Shell Programming and Scripting

Split and rename files

Hello, Need to split files into n number of files and rename the files Example: Input: transaction.txt.1aa transaction.txt.1ab ...... Output: transaction.txt.1 transaction.txt.2 transaction.txt.3 (3 Replies)
Discussion started by: krux_rap
3 Replies

9. Shell Programming and Scripting

awk : split file and rename and save in path according to content

Hello, I'm using Windows 7 ; sed, awk and gnuwin32 are installed. I have a big text file I need to manipulate. In short, I will have to split it in thousands of short files, then rename and save in a folder which name is based upon filename. Here is a snippet of my big input.txt file (this... (4 Replies)
Discussion started by: sellig
4 Replies

10. UNIX for Beginners Questions & Answers

Automate splitting of files , scp files as each split completes and combine files on target server

i use the split command to split a one terabyte backup file into 10 chunks of 100 GB each. The files are split one after the other. While the files is being split, I will like to scp the files one after the other as soon as the previous one completes, from server A to Server B. Then on server B ,... (2 Replies)
Discussion started by: malaika
2 Replies
BOS_RESTART(8)						       AFS Command Reference						    BOS_RESTART(8)

NAME
       bos_restart - Restarts a server process

SYNOPSIS
       bos restart -server <machine name> [-instance <instances>+]
	   [-bosserver] [-all] [-cell <cell name>] [-noauth]
	   [-localauth] [-help]

       bos res -s <machine name> [-i <instances>+] [-b]
	   [-a] [-c <cell name>] [-n] [-l] [-h]

DESCRIPTION
       The bos restart command stops and immediately restarts server processes on the server machine named by the -server argument. Indicate which
       process or processes to restart by providing one of the following arguments:

       o   The -instance argument names each AFS server process to stop and restart immediately, regardless of its status flag in the
	   /etc/openafs/BosConfig file. Do not include bosserver in the list of processes; use the -bosserver flag instead.

       o   The -bosserver flag stops all AFS server processes running on the machine, including the BOS Server. A new BOS Server starts
	   immediately, and it starts a new instance of each process that is marked with the "Run" status flag in the BosConfig file.

       o   The -all flag stops all AFS server processes running on the machine, except the BOS Server, and immediately restarts the processes that
	   are marked with the "Run" status flag in the BosConfig file.

       This command does not change a process's status flag in the BosConfig file.

OPTIONS
       -server <machine name>
	   Indicates the server machine on which to restart each process.  Identify the machine by IP address or its host name (either fully-
	   qualified or abbreviated unambiguously). For details, see bos(8).

       -instance <instances>+
	   Names each process to stop and then restart immediately regardless of its status flag setting. Use the process name assigned with the
	   -instance argument to the bos create command. The output from the bos status command lists the names. Provide this flag or one of the
	   -bosserver or -all options, but do not combine them.

       -bosserver
	   Stops all AFS server processes running on the machine, including the BOS Server. A new BOS Server instance immediately starts, and
	   starts all processes marked with the "Run" status flag in the BosConfig file. Provide this flag or one of the -instance or -all
	   options, but do not combine them.

       -all
	   Stops all AFS server processes running on the machine other than the BOS Server, and immediately restarts the processes marked with the
	   Run status flag in the BosConfig file. Provide this flag or one of the -instance or -bosserver options, but do not combine them.

       -cell <cell name>
	   Names the cell in which to run the command. Do not combine this argument with the -localauth flag. For more details, see bos(8).

       -noauth
	   Assigns the unprivileged identity "anonymous" to the issuer. Do not combine this flag with the -localauth flag. For more details, see
	   bos(8).

       -localauth
	   Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. The bos command interpreter presents the ticket
	   to the BOS Server during mutual authentication. Do not combine this flag with the -cell or -noauth options. For more details, see
	   bos(8).

       -help
	   Prints the online help for this command. All other valid options are ignored.

EXAMPLES
       The following command stops and restarts all processes running on the machine "fs3.abc.com", including the BOS Server.

	  % bos restart -server fs3.abc.com -bosserver

       The following command stops and restarts all processes running on the machine "fs5.abc.com", excluding the BOS Server.

	  % bos restart -server fs5.abc.com -all

       The following command stops and restarts the Protection Server and Volume Location (VL) Server processes on the machine "db3.abc.com":

	  % bos restart -server db3.abc.com -instance ptserver vlserver

PRIVILEGE REQUIRED
       The issuer must be listed in the /etc/openafs/server/UserList file on the machine named by the -server argument, or must be logged onto a
       server machine as the local superuser "root" if the -localauth flag is included.

SEE ALSO
       BosConfig(5), KeyFile(5), UserList(5), bos(8), bos_create(8), bos_status(8)

COPYRIGHT
       IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.

       This documentation is covered by the IBM Public License Version 1.0.  It was converted from HTML to POD by software written by Chas
       Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.

OpenAFS 							    2012-03-26							    BOS_RESTART(8)
All times are GMT -4. The time now is 03:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy