Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7700293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:40:30+00:00 2026-05-31T22:40:30+00:00

From the following command how can i eliminate all the lines that occur before

  • 0

From the following command how can i eliminate all the lines that occur before

 Owner     RepoName             CreatedDate

EDIT Command:

find /opt/site/ -name '.log.txt' | xargs cat | awk '{$NF=""; print $0}' | sed '1i Owner RepoName CreatedDate' | column -t

The output is

find: Filesystem loop detected; `/nfs/.snapshot/nightly.4' has the same device number and inode as a directory which is 2 levels higher in the filesystem hierarchy.
find: Filesystem loop detected; `/nfs/.snapshot/nightly.5' has the same device number and inode as a directory which is 2 levels higher in the filesystem hierarchy.
find: Filesystem loop detected; `/nfs/.snapshot/nightly.6' has the same device number and inode as a directory which is 2 levels higher in the filesystem hierarchy.
Owner     RepoName             CreatedDate
val        abc                  Fri          Mar  16  17:01:07  PDT
p1         repo_pc              Wed          Mar  21  11:34:42  PDT
New        fm                   Mon          Mar  19  00:15:51  PD 

Required output is only:

Owner     RepoName             CreatedDate
val        abc                  Fri          Mar  16  17:01:07  PDT
p1         repo_pc              Wed          Mar  21  11:34:42  PDT
New        fm                   Mon          Mar  19  00:15:51  PD 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T22:40:31+00:00Added an answer on May 31, 2026 at 10:40 pm

    Those find errors will be on stderr, so bypass your chain entirely, you’ll want to redirect the errors with 2>/dev/null, although that will prevent you seeing any other errors in the find command.

    find /opt/site/ -name '.log.txt' 2>/dev/null | xargs cat | awk '{$NF=""; print $0}' | xargs sed "/Filesystem/d" | sed '1i Owner RepoName CreatedDate' | column -t
    

    In general with a complicated command like this, you should break it down when you have errors so that you can work out where the problem is coming from.

    Let’s split up this command to see what it’s doing:

    find /opt/site/ -name '.log.txt' 2>/dev/null – find all the files under /opt/site/ named .log.txt

    xargs cat – get all their contents, one after the other

    awk '{$NF=""; print $0}' – delete the last column

    xargs sed "/Filesystem/d" – Treat each entry as a file and delete any lines containing Filesystem from the contents of those files.

    sed '1i Owner RepoName CreatedDate' – Insert Owner RepoName CreatedDate on the first line

    column -t – Convert the given data into a table

    I’d suggest building up the command, and checking the output is correct at each stage.

    Several things are surprising about your command:

    1. The find one looks for files that are exactly .log.txt rather than an extension.
    2. The second xargs call – converting the contents of the .log.txt files into filenames.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I find we can start monkey from workstation, by using the following command: adb
for example i use following command to find a record SELECT `users`.`mail` FROM `users`
How can I get the return code from the following command: RunspaceConfiguration rsConfig =
I know that I can use following command to extract a single file to
I can copy the records from one server to another using the following command.
I am using the following command to find a pattern spanning multiple lines and
When using PowerShell to extract information from TFS, I find that I can get
I know I can do the following from a command prompt: $ runghc WC
When using Curl from the command line you can use the following command to
Is there a MySQL command that can drop all the extra indexes except for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.