LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-19-2014, 11:14 AM   #1
bani
LQ Newbie
 
Registered: Jan 2014
Posts: 2

Rep: Reputation: Disabled
bash script to display alias commands and un-alias any less than 12 characters


i need to build a bash script which display alias commands,controls commands that are renamed and make un-alias all commands that are shorter then 12 characters and show the new list.
thanks in advance
 
Old 01-19-2014, 11:26 AM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,245

Rep: Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684
And your attempt and where you are stuck is where??
 
Old 01-19-2014, 11:37 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
Quote:
Originally Posted by bani View Post
i need to build a bash script
Indeed you should show us what you've got already.
At least show what you know.
Maybe add some pseudo code.
 
Old 01-19-2014, 11:59 AM   #4
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,159
Blog Entries: 10

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
http://www.linuxquestions.org/questi...es-4175491414/
 
Old 01-19-2014, 12:38 PM   #5
bani
LQ Newbie
 
Registered: Jan 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
yes, i have seen that link and didn't find the solution there, that's why i'm asking myself now. I'm new in Linux area and i can't solve it. All i know is that when you want to see a list of aliases set up on your linux box, just type alias at the prompt..
 
Old 01-19-2014, 01:34 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,921

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by bani View Post
yes, i have seen that link and didn't find the solution there, that's why i'm asking myself now. I'm new in Linux area and i can't solve it. All i know is that when you want to see a list of aliases set up on your linux box, just type alias at the prompt..
Great...so back to the first reply you received: post what YOU have written/tried so far, and tell us where you're stuck. We are NOT going to write your scripts for you, but will be very happy to help you...but you have to show effort of your own, first. This is not the place to come for a handout...but if you do want someone to write your code for you, then post it in the LQ Job Marketplace (along with how much you're willing to PAY someone to do your work for you), and you'll find someone very quickly.

There are THOUSANDS of very easily found bash scripting tutorials, that the briefest of Google searches can lead you to. There is one in my posting signature, and many you can find with a search on this very site. ALL of which have sample code and explanations.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: alias.sh puts your Linux shell alias on the clouds LXer Syndicated Linux News 0 01-21-2013 01:00 AM
Wildcard email alias in /etc/alias file custangro Linux - Enterprise 1 10-02-2009 01:17 PM
Alias or shell script to confirm 'exit' commands from a shell rose_bud4201 Programming 2 03-08-2006 03:34 PM
Alias question (2 commands for one alias) gflores Linux - Newbie 3 01-21-2006 01:40 AM
ll and alias commands Steve Riley Ubuntu 3 01-20-2006 11:09 AM


All times are GMT -5. The time now is 10:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration