LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Did you know how to replace via the ^ command with bash?

Posted 03-12-2010 at 09:05 AM by invalidid
Updated 03-12-2010 at 09:11 AM by invalidid

Hello All!

At first, I want to ask one question about using the popular bash commandline interpreter. Did you know about the ^ command?

If yes, you are a really well expierenced bash-user. If not, you won't loose anything in reading this blog entry. The command ^ is used to substitude some text, typed the last time before you hit the enter key.

One example of how to use it, surely makes the usage clear:
Let's assume you have a directory called "~/temp"....
LQ Newbie
Posted in Tips and tricks
Views 1259 Comments 2 invalidid is offline
Old

Simple shell script to create playlists from file structure

Posted 03-01-2010 at 11:28 AM by invalidid
Updated 12-03-2013 at 03:15 PM by invalidid

Hi everybody!
In my first post on this blog I want to publish something simple but useful for guys who prefer to use applications like xine, mplayer or totem for playing music. It's a bash script, which creates playlists using the unix tool "find". Basic documentation can be found in the header of the script file.

I hope you find it useful and comfortable. Have fun with it!

Code:
#!/bin/bash
# mkpls.sh - Create a playlist from a bunch of files.
...
LQ Newbie
Views 3196 Comments 0 invalidid is offline

  



All times are GMT -5. The time now is 05:57 AM.

Main Menu
Advertisement
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