LinuxQuestions.org
Visit Jeremy's Blog.
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


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

Rep: Reputation: Disabled
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:59 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

https://www.linuxquestions.org/quest...ds-4175697187/
 
  


Closed Thread



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 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
awk commands/script to extract lines with a specific format oldfogey Linux - Software 5 10-02-2012 01:50 PM
[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 12:10 AM.

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