Hi,
I don't script often enough to know how to do this, and I can't seem to find a right example online. I have a csv output from an old, old system (Win2K???), from which I want to extract only certain fields.
Hello,
I am trying to modify 2 files, to yield results in a 3rd file.
File-1 is a 8-columned file, separted with tab.
Code:
1234:1 xyz1234 blah blah blah blah blah blah
1234:1 xyz1233 blah blah blah blah blah blah
1234:1 abc1234 blah blah blah blah blah blah
n/a RRR0000 blah blah blah blah blah blah
n/a RRR0000 blah blah blah blah blah blah
9876:2 htg234 blah blah blah blah blah b
Hi All.
I have a file that contains some special characters and I'm trying to use AWK to search for lines between <pattern1> and <pattern2>.
As an example:
I need the lines between the line containing ' select_id="x_0 ' and the line containing the next instance of ' from '.
Code:
cat my.log
blah blah blah
< 1 djfh jsdfhk jksdfh
< 2 dshkfl opeir pqowi
< 4 khasd wouipeui
say i am perfroming some action similar to below...
Code:
cat my.log | egrep "<" | awk -F' ' '{print $2}' | grep -v "[A-Za-z]"
it gives output as below
Code:
1
2
4
is there anyway to modify above same command so that output is displayed li
Hei buddies,
Need ur help once again.
I have a file which has bunch of lines which starts from a fixed pattern and ends with another fixed pattern.
I want to make use of these fixed starting and ending patterns to select the bunch, one at a time.
The input file is as follows.
Hi welcome
blah blah blah
blah blah blah
Bye**
Hi welcome
blah blah
blah blah
blah blah
blah blah
bl
Hi All,
Any one know what the syntax is in /etc/crypttab for passwords with spaces in them? Do you use quotes (doesn't seem to work), or back slashes? What is the proper syntax?
foo /dev/sdb1 "blah blah blah blah"
Edit: just rebooted again.
Having the hardest time figuring out the RegEx for a bash test.
Code:
if [[ ${array[@]} =~ -{2}current|-{1}c ]]; then
echo "blah"
fi
I want it to "blah" if --current or -c is in array[@] but the problem is that it also "blah"s on -current as well which I don't want.
Hi,
I have a file in the following format
Code:
"SYLVESTER,WILLARD G"|"S00633600"|"221052958A"|"H2256"|"015"|""|"00000042BASJ"|"665303"|"N"|"20100211"|"380.4"|""|""|""|"5400"|"20110218"|""|"20110218"|"FEESC&qu
Hi guys,i am trying to set up Vim as my C++ IDE since 2 days and no success so far.I have installed Vim pacman -Q vim
vim 7.3.661-1I have downloaded vim-latex and clang tar balls,extract and place appropriate directorys in ~/.vim e.g.