Hello All,
I was wondering if someone might know how to do this. I have a word list that is format like the example below. I need to take away the :number after that... is there some kind of command I could use to remove them?
Last edited by Scrutinizer; 05-12-2013 at 10:01 AM..
Reason: code tags
Hi,
How would I get rid of lines having something else than numbers (such as tabs,white space, special characters, empty line, letters).
So I have big file with numers as follows:
12345678901
23456789012
32343678901
42345638901
52345678901
and I sometimes the file might contain some... (2 Replies)
just have a file
1:2333 2:-09393 ]3:45453 4:-09999 5:-09933 6:93939
question is to get output by removing colons as well as number before each colon (in bold)
2333 -09393 45453 -09999 09933 93939 (5 Replies)
Hi all,
Can I edit this script:
find . -type f | while read i;do && mv "$i" "${i//abc/}" ;done
so that it will not only take out abc from the filename but also take out any numbers that might be in the filename as well.
An example would be,
Input:
filename abc 2009.mov
Output:... (7 Replies)
How can I remove the numeric (1,2,3,4,5,etc.) in front of each line? The file look like this..
1CREATE OR REPLACE pROD (p_sc_id number,
2 p_snap_id number , p_sid number, p_halt varchar2 default 'N', p_a_nm varchar2 )
3 as
4 v_rtn number;
5
6 v_rtn... (3 Replies)
What am I doing wrong here? Or is this not possible?
A bug?
alias f='find . >found 2>/dev/null &'
f ; sleep 20 ; ls -l
-bash: syntax error near unexpected token `;' (2 Replies)
Hi guys,
This is my input
2735:<7001> 34 789 701 2
2774:<7001> 34 789 701 2
How to delete characters after colon :
Including colon : too ?
My output should... (3 Replies)
I have a file that has some text that looks like this
Some Text
1. More text
2. Different text
Final Text
I would like the remove the lines of text that start with the numbers.
Some Text
Final Text
I have tried to use cat file.txt | grep -Ev 1. >... (9 Replies)
Although i tried multiple option i couldn't find a way to get the rigt ouput.
Say i have the following data
cat file.txt
C request
C response
C request
C response
The output should look like (9 Replies)
The bash below executes and does find all the .bam files in each R_2019 folder. However set -x shows that the .bam extension only gets removed from one .bam file in each folder (appears to be the last in each). Why is it not removing the extension from each (this is $SAMPLE)? Thank you :).
set... (4 Replies)
Discussion started by: cmccabe
4 Replies
LEARN ABOUT DEBIAN
bashbug
BASHBUG(1) bashbug BASHBUG(1)NAME
bashbug - report a bug in bash
SYNOPSIS
bashbug [--help] [--version] [bug-report-email-addresses]
DESCRIPTION
bashbug is a utility for reporting bugs in Bash to the maintainers.
bashbug will start up your preferred editor with a preformatted bug report template for you to fill in. Save the file and quit the editor
once you have completed the missing fields. bashbug will notify you of any problems with the report and ask for confirmation before
sending it. By default the bug report is mailed to both the GNU developers and the Debian Bash maintainers. The recipients can be changed
by giving a comma separated list of bug-report-email-addresses.
If you invoke bashbug by accident, just quit your editor. You will always be asked for confirmation before a bug report is sent.
OPTIONS --help
Show a brief usage message and exit.
--version
Show the version of bashbug and exit.
bug-report-email-addresses
Comma separated list of recipients' email addresses. By default the report is mailed to both the GNU developers and the Debian Bash
maintainers.
ENVIRONMENT
DEFEDITOR
Editor to use for editing the bug report.
EDITOR
Editor to use for editing the bug report (overridden by DEFEDITOR).
SEE ALSO bash(1), reportbug(1), update-alternatives(8) for preferred editor.
AUTHOR
This manual page was written by Christer Andersson <klamm@comhem.se> for the Debian project (but may be used by others).
GNU Bash 3.1 11 December 2007 BASHBUG(1)