Sponsored Content
Full Discussion: Help with ls, grep commands
Top Forums Shell Programming and Scripting Help with ls, grep commands Post 302897263 by Scrutinizer on Saturday 12th of April 2014 01:38:39 PM
Old 04-12-2014
ls -l prints the filename last, and it prints permissions first. That is why grep '^1' does not work, because none of the lines start with 1, they start with -
This User Gave Thanks to Scrutinizer For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

find and grep commands

I'm having trouble with the following commands i. count the number of lines which end in a 4 letter word grep '{4\}$' bfile <<seems to print out everything abc abc abcd joe joe john bob bill gregory greg greg gregory the grep command prints out the lines with 4 letter words and the... (3 Replies)
Discussion started by: StrengthThaDon
3 Replies

2. Shell Programming and Scripting

Grep commands in loop

Hi All, Reference to my previous post I need to compare all the lines in the file1 with file2 for this condition if file1 {$3,$5} ==file2 {$3,$5} then grep file2{$1}latest date. need output in file3 10/04/2008 09/04/2008 09/04/2008 08/04/2008 can anyone suggest me Thanks... (0 Replies)
Discussion started by: karthikn7974
0 Replies

3. UNIX for Dummies Questions & Answers

grep commands

I need your's help to display user with greep command form /etc/passwd 1. to display all login to begin and finishing with letter a or b etc.users admina bserb broota 2. beginning and finishing with the same sign etc. users aghata:.... roootr:....3. to contain what the least three... (1 Reply)
Discussion started by: ViruS89
1 Replies

4. Shell Programming and Scripting

Difference between 2 grep - commands

Hi, I need to know the difference between this commands: grep * *search* grep "*" *search* As far as i know does the 2nd command search for files which have a name with *search* and greps then all which have chars from a-z in the file content. But was does the first command?? Best... (1 Reply)
Discussion started by: xus
1 Replies

5. Shell Programming and Scripting

echo and grep commands

Hey im new in this...anything will be helpful... The user will input the word or phrase .... I want to search the user input in file (by lines) but not all then with this line search on another file ( with the specific line) and show to the user. Example: file1.txt ======= a aa aaa... (2 Replies)
Discussion started by: Sundown
2 Replies

6. Shell Programming and Scripting

Grep commands & format

I have these grep commands and need to put them next each other (in horizontal layout). cat /tmp/dsmc.out |grep Done cat /tmp/dsmc.out |grep "Elapsed processing time:" cat /tmp/dsmc.out |grep "Client date/time:" cat /tmp/dsmc.out |grep "Total number of bytes transferred:" so that it... (6 Replies)
Discussion started by: Daniel Gate
6 Replies

7. Shell Programming and Scripting

Join two commands sed and grep

Hi all, I have two separate commands which I would like to join. Basically, I want to match a line and insert a character at the end of the previous line to the matched line Here is what I have gotgrep -B1 '^>' sed 's/$/*/' Any help is much appreciated thanks (5 Replies)
Discussion started by: kaav06
5 Replies

8. Shell Programming and Scripting

Grep Commands

I have a text file that has multiple lines in it with multiple dates and years. I was trying to figure out the best way to remove the line that had 2010 and 2011 to an archive file. We only need to keep the 2012 and 2013 lines in the original file. The following is a sample line in the txt file:... (2 Replies)
Discussion started by: smkremer
2 Replies

9. Homework & Coursework Questions

Grep commands: need some practice help please

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Use the less command to view the words file. To see the results of a grep that returns many rows, pipe the... (3 Replies)
Discussion started by: asaint
3 Replies

10. UNIX for Beginners Questions & Answers

Task grep and awk commands

Hi everyone, I have a question, please help me. awk -F: '$3<75' /etc/passwd grep -ir nashorn ./ | grep "^*\.java" what do these commands do ? Thanks (2 Replies)
Discussion started by: burak171
2 Replies
fvwm-config(1)							   Fvwm Modules 						    fvwm-config(1)

NAME
fvwm-config - query an existing fvwm installation SYNOPSIS
fvwm-config [--help] [--version] [--info] [--prefix] [--exec-prefix] [--bindir] [--datadir] [--libexecdir] [--sysconfdir] [--mandir] [--localedir] [--fvwm-moduledir] [--fvwm-datadir] [--fvwm-perllibdir] [--default-imagepath] [--default-userdir] [--fvwm-exe] [--supports] [--supports-<feature>] [--is-final] [--is-stable] [--release-date] DESCRIPTION
fvwm-config is a shell script that provides an information about the fvwm version, installation directories, built-in paths and supported features. OPTIONS
fvwm-config prints to the standard output in all options. Both short and long GNU-like option names may be used. -h --help -? prints the short usage -v --version -V prints the version -i --info prints the full info page -P --prefix prints the installation prefix -E --exec-prefix prints the installation exec-prefix -B --bindir prints the installation bindir -D --datadir prints the installation datadir -L --libexecdir prints the installation libexecdir -S --sysconfdir prints the installation sysconfdir -M --mandir prints the installation mandir -O --localedir prints the installation localedir -m --fvwm-moduledir prints FVWM_MODULEDIR, where the modules are installed -d --fvwm-datadir prints FVWM_DATADIR, where the system wide configs are installed -p --fvwm-perllibdir prints FVWM_PERLLIBDIR, where the perl library is installed -I --default-imagepath prints the built-in ImagePath -U --default-userdir prints the default FVWM_USERDIR, note: $HOME is not expanded -e --fvwm-exe prints the fvwm executable name (in bindir) -s --supports lists all supported features, one per line --supports-<feature> prints nothing, returns: 0 if the <feature> is supported, 100 if not, 200 if unknown. All or supported feature names may be found using --info or --supports respectively. --is-final prints "yes" for final releases and "no" for cvs snapshots --is-stable prints "yes" for the stable branch and "no" otherwise --release-date prints the release date if the release is final USAGE
Here are some real life usages. Checks for xft support: if fvwm-config --supports-xft; then echo 1; else echo 0; fi fvwm-themes package checks for the correct fvwm version installed using: fvwm-config --version and tries to use the same installation directories: fvwm-config --bindir --mandir --fvwm-datadir A way to find the full path to the fvwm executable: echo `fvwm-config --bindir`/`fvwm-config --fvwm-exe` A way to start modules in perl: use lib `fvwm-config -p | tr -d '0`; use FVWM::Module; For a more human readable output, try: fvwm-config --info COPYING
fvwm-config is a part of fvwm package and distributed by the same terms, see GNU GPL. AUTHOR
Mikhael Goikhman <migo@homemail.com> 3rd Berkeley Distribution 09 May 2010 (2.5.30) fvwm-config(1)
All times are GMT -4. The time now is 06:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy