LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-02-2021, 01:35 PM   #1
ayman123
LQ Newbie
 
Registered: Jun 2016
Posts: 2

Rep: Reputation: Disabled
Post How to create script having specific commands


server:na> cd /opt/na/bin ///This Path
server:bin>
server:bin>
server:bin>
server:bin> file-export-parameter //run script
Which code do you want to export? ///We have these option to select
ID Started Stopped
214: 2021-06-27 2021-07-04
213: 2021-06-20 2021-06-27
212: 2021-06-13 2021-06-20

Make your selection from the ID's:213 ///select option 2
Do you want to export: //we have to select other options
1: fileA
2: fileB
3: fileC
Make your selection: 0..3, 0 to exit:2 //select option 2
[file-export-parameter] Exporting fileB; this can take a while ...
[file-export-parameter] Successfully exported fileB to /var/tmp/file-export-fileB.csv
server:bin> cd /var/tmp/ //go to path whic file downloaded
server:tmp> more file-export-fileB.csv | grep actual > file-export-fileB1.csv //create new file with specific filter
 
Old 07-02-2021, 01:57 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by ayman123 View Post
server:na> cd /opt/na/bin ///This Path
server:bin>
server:bin>
server:bin>
server:bin> file-export-parameter //run script
Which code do you want to export? ///We have these option to select
ID Started Stopped
214: 2021-06-27 2021-07-04
213: 2021-06-20 2021-06-27
212: 2021-06-13 2021-06-20

Make your selection from the ID's:213 ///select option 2
Do you want to export: //we have to select other options
1: fileA
2: fileB
3: fileC
Make your selection: 0..3, 0 to exit:2 //select option 2
[file-export-parameter] Exporting fileB; this can take a while ...
[file-export-parameter] Successfully exported fileB to /var/tmp/file-export-fileB.csv
server:bin> cd /var/tmp/ //go to path whic file downloaded
server:tmp> more file-export-fileB.csv | grep actual > file-export-fileB1.csv //create new file with specific filter
From the Site rules
Quote:
Do not post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and searches) and we'll do our best to help. Keep in mind that your instructor might also be an LQ member
 
1 members found this post helpful.
Old 07-05-2021, 12:39 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Also, please use CODE tags https://www.linuxquestions.org/quest...do=bbcode#code
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create script having specific commands ayman123 Linux - Newbie 1 07-02-2021 01:59 PM
How to zip csv files having specific pattern in a directory using UNIX shell script? ROOTS_S Linux - Newbie 3 12-23-2016 06:36 AM
[SOLVED] Sudo question specific commands on specific directories slufoot80 Linux - Security 6 12-30-2014 08:57 AM
[SOLVED] Console: Can i create keyshortcuts for specific personal commands (e.g. ctr+3) esgol Linux - Newbie 3 07-30-2012 02:54 AM
[SOLVED] Removing a line from file which is having specific pattern using shell script emcykm Linux - Newbie 5 03-21-2011 05:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration