Fedora Linux Support Community & Resources Center
  #1  
Old 14th May 2012, 12:29 PM
sea Online
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Confoederatio Helvetica (Swissh)
Age: 34
Posts: 3,625
linuxfirefox
[bash] Cut off from array

Heyas

Just recently i have read a post where there was an existing bash function to cut off arguments from an array.
I dont recall that functions name.

Example how it probably works
array="entryA entryB entryC entryD"
cutarray=$(CUTFUNKTION $array 1)
echo $cutarray
entryB entryC entryD

Any ideas please?
Tia
__________________
Laptop: Toshiba satellite p50-a-11 CPU: Intel i7 8*2400 MHz GPU: GeForce GT 745M RAM: 8192 MB Distro: Fedora (Rawhide) DE: Awesome
Guide: Windows 8+ & Fedora 20+ Dualboot
Repo (sea-devel) :: Text User Interface (TUI), Video Handler Script (VHS), efi-helper, grub2-circled-nasa-themes, Essentials (blame, p, rmtf, rnd, siggen, screenshot...), (BETA) Dev-Scripts, (BETA) Fedora Account Scripts (FAS)
Reply With Quote
  #2  
Old 14th May 2012, 01:04 PM
Adunaic Offline
Registered User
 
Join Date: Mar 2009
Location: Lancaster, UK
Posts: 922
linuxfirefox
Re: [bash] Cut off from array

Not that familiar with arrays, but does any of this help? http://www.thegeekstuff.com/2010/06/...rray-tutorial/ Points 10 and/or 11 perhaps?
Reply With Quote
  #3  
Old 14th May 2012, 01:12 PM
sea Online
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Confoederatio Helvetica (Swissh)
Age: 34
Posts: 3,625
linuxfirefox
Re: [bash] Cut off from array

Great, even a another (better?) to handle arrays.
Thank you!
__________________
Laptop: Toshiba satellite p50-a-11 CPU: Intel i7 8*2400 MHz GPU: GeForce GT 745M RAM: 8192 MB Distro: Fedora (Rawhide) DE: Awesome
Guide: Windows 8+ & Fedora 20+ Dualboot
Repo (sea-devel) :: Text User Interface (TUI), Video Handler Script (VHS), efi-helper, grub2-circled-nasa-themes, Essentials (blame, p, rmtf, rnd, siggen, screenshot...), (BETA) Dev-Scripts, (BETA) Fedora Account Scripts (FAS)
Reply With Quote
Reply

Tags
array, bash, cut

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How does bash handle array variable? youhaodeyi Using Fedora 8 26th November 2008 04:34 AM
Bash Array Planescape Programming & Packaging 7 25th January 2007 09:41 AM
intel D945 matrix raid 1 array how do i rebuild array? cow Hardware & Laptops 4 13th April 2006 04:06 PM
FC3 on Raid array purplepangolin EOL (End Of Life) Versions 0 27th May 2005 12:03 PM
Get bash completion working on fedora 3 (bash 3.0) madcat Guides & Solutions (No Questions) 2 27th November 2004 12:05 PM


Current GMT-time: 05:33 (Thursday, 27-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
St. Reinold's Church, Dortmund Travel Photos on Instagram - St James Park, Newcastle Utd Instagram Photos - The Flying Pig