Sponsored Content
Top Forums Shell Programming and Scripting find files with 1 single row - UNIX Post 302994388 by Marlboro on Wednesday 22nd of March 2017 10:49:07 AM
Old 03-22-2017
I only want to delete the files of 1 single line, the other files if they are empty or with information for me is ok, I do not have files without line termination.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to find n'th row from UNIX file?

Hello Gurus, I am new to this forum and I have a BASIC knowlege in UNIX commands. I have a data file which contains 1 billion records, how to find 5678th row and put this rows into a new file? Can anybody please give the command how to do this? (3 Replies)
Discussion started by: nvkuriseti
3 Replies

2. Shell Programming and Scripting

Single/Multiple Line with Special characters - Find & Replace in Unix Script

Hi, I am creating a script to do a find and replace single/multiple lines in a file with any number of lines. I have written a logic in a script that reads a reference file say "findrep" and populates two variables $FIND and $REPLACE print $FIND gives Hi How r $u Rahul() Note:... (0 Replies)
Discussion started by: r_sarnayak
0 Replies

3. Shell Programming and Scripting

Combile two files - report should be in single row

Dear sir I am having a file x.lst having abcd andother file y.lst having efgh I should get report file having the result in a single row as abcdefgh pls help (3 Replies)
Discussion started by: suryanarayana
3 Replies

4. Shell Programming and Scripting

Converting Multiple rows to Single Row using unix commands

Can somebody help me in solving this.. Input data is like 0 A 1 B 2 C 3 D 0 A1 1 B1 2 C1 3 D1 0 A2 1 B2 2 C2 3 D2 Output should be like A B C D A1 B1 C1 D1 A2 B2 C2 D2 (7 Replies)
Discussion started by: Mahantesh Patil
7 Replies

5. Shell Programming and Scripting

Subtracting each row from the first row in a single column file using awk

Hi Friends, I have a single column data like below. 1 2 3 4 5 I need the output like below. 0 1 2 3 4 where each row (including first row) subtracting from first row and the result should print below like the way shown in output file. Thanks Sid (11 Replies)
Discussion started by: ks_reddy
11 Replies

6. Shell Programming and Scripting

Find all the files under a specific directory and zip them into a single file.

Hi, Is there a way to find all the files from a specific location and then zip them into a single file, even if they are in multiple directories? (3 Replies)
Discussion started by: rudoraj
3 Replies

7. Shell Programming and Scripting

how to find first files in a directory and combine them as a single file?

i have below list of files in a directory. /root/admin/files/file1.txt /root/admin/files/file2.txt /root/admin/files/file3.txt /root/admin/files/pattern.txt /root/admin/files/server.txt i need combine the above text files in the below sequence, file1.txt, pattern.txt,server.txt =>... (8 Replies)
Discussion started by: vel4ever
8 Replies

8. UNIX for Dummies Questions & Answers

How to find position of blank row in UNIX?

Hi I have file "emp.txt"like below Emp Id Name 123 aa 123 bb 223 cc 233 dd 334 ee Please help me to know that the position of the blank row. (5 Replies)
Discussion started by: rock_01
5 Replies

9. Shell Programming and Scripting

Create multiple files from single file based on row separator

Hello , Can anyone please help me to solve the below - Input.txt source table abc col1 char col2 number source table bcd col1 date col2 char output should be 2 files based on the row separator "source table" abc.txt col1 char (6 Replies)
Discussion started by: Pratik4891
6 Replies

10. Shell Programming and Scripting

Splitting single row into multiple rows based on for every 10 digits of last field of the row

Hi ALL, We have requirement in a file, i have multiple rows. Example below: Input file rows 01,1,102319,0,0,70,26,U,1,331,000000113200000011920000001212 01,1,102319,0,1,80,20,U,1,241,00000059420000006021 I need my output file should be as mentioned below. Last field should split for... (4 Replies)
Discussion started by: kotra
4 Replies
intro(1M)																 intro(1M)

NAME
intro - introduction to system maintenance commands and application programs DESCRIPTION
This section describes commands that are used chiefly for system maintenance and administration purposes. The commands in this section should be used in conjunction with other sections of this manual, as well as the HP-UX System Administration manuals for your system. Command Syntax Unless otherwise noted, commands described in this section accept options and other arguments according to the following syntax: name [ option ( s )] [ cmd_arg ( s )] where the elements are defined as follows: name Name of an executable file. option One or more options can appear on a command line. Each takes one of the following forms: A single letter representing an option without an argument. Two or more single-letter options combined into a single command-line argument. A single-letter option followed by a required argument where: arg_letter is the single letter representing an option that requires an argument, opt_arg is an argument (character string) satisfying the preceding arg_letter, <> represents optional white space. cmd_arg Path name (or other command argument) not beginning with or by itself indicating the standard input. If two or more cmd_args appear, they must be separated by white space. RETURN STATUS
Upon termination, each command returns two bytes of status, one supplied by the system giving the cause for termination, and (in the case of ``normal'' termination) one supplied by the program (for descriptions, see wait(2) and exit(2)). The system-supplied byte is 0 for nor- mal termination. The byte provided by the program is customarily 0 for successful execution and non-zero to indicate errors or failure such as incorrect parameters in the command line, or bad or inaccessible data. Values returned are usually called variously ``exit code'', ``exit status'', or ``return code'', and are described only where special conventions are involved. WARNINGS
Some commands produce unexpected results when processing files containing null characters. These commands often treat text input lines as strings and therefore become confused upon encountering a null character (the string terminator) within a line. SEE ALSO
getopt(1), exit(2), wait(2), getopt(3C), hier(5), introduction(9). Web access to HP-UX documentation at intro(1M)
All times are GMT -4. The time now is 01:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy