Search
Search titles only
By:
Search titles only
By:
Forums
New posts
Search forums
What's new
New posts
Latest activity
Feedback
View Statistics
Members
Current visitors
Buy Sell Trade
WTB
Log in
Register
Search
Search titles only
By:
Search titles only
By:
New posts
Search forums
Menu
Install the app
Install
Reply to thread
Forums
Technology
Computer Software
how to remove characters between square brackets of file names.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="rupeshforu3" data-source="post: 2371080" data-attributes="member: 89235"><p>Hi I am Rupesh from India and I have Fedora 36 Linux and some files which consists of files with names consisting of square brackets and some text in between. I want to remove these square brackets including text.</p><p></p><p>Recently I have downloaded youtube videos using yt-dlp which is youtube downloader in Linux and succeeded but its file name has the following form.</p><p></p><p>This is youtube video [abcdefg-].mp4</p><p></p><p>Here in the above file name "This is youtube video" is the title of YouTube video and abcdefg- is the id for that youtube video. mp4 is the video file extension.</p><p></p><p>Now I want to remove characters between square brackets including square brackets ie., [abcdefg-]. Here before square brackets space character is present and I want to remove it also.</p><p></p><p>Finally I want file with name as "This is youtube video.mp4".</p><p></p><p>I have 100s of files as above.</p><p></p><p>I have searched web and found some sed commands but failed.Please try to suggest how to remove characters between brackets including square brackets from file name.</p><p></p><p>Regards,</p><p>Rupesh.</p></blockquote><p></p>
[QUOTE="rupeshforu3, post: 2371080, member: 89235"] Hi I am Rupesh from India and I have Fedora 36 Linux and some files which consists of files with names consisting of square brackets and some text in between. I want to remove these square brackets including text. Recently I have downloaded youtube videos using yt-dlp which is youtube downloader in Linux and succeeded but its file name has the following form. This is youtube video [abcdefg-].mp4 Here in the above file name "This is youtube video" is the title of YouTube video and abcdefg- is the id for that youtube video. mp4 is the video file extension. Now I want to remove characters between square brackets including square brackets ie., [abcdefg-]. Here before square brackets space character is present and I want to remove it also. Finally I want file with name as "This is youtube video.mp4". I have 100s of files as above. I have searched web and found some sed commands but failed.Please try to suggest how to remove characters between brackets including square brackets from file name. Regards, Rupesh. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Technology
Computer Software
how to remove characters between square brackets of file names.
Top
Bottom