03-12-2014
You have the file two times in the sed arguments, but in sed -i each file argument is input and output! Remove one of them, so sed runs once!
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi All,
I want to create a command that executes a text editor with the most recent file in the current current directory.
So a good start to achieve this is :
ls -lrt | cut -c55- | tail -1
which provides the name of the most recent file in a directory
The problem is to pipe the... (4 Replies)
Discussion started by: anonymous.nico
4 Replies
2. UNIX for Dummies Questions & Answers
current dir :
/home/sales
ls -l
abc.txt 17th aug
bcd .txt 16t oct
-------
------
Total files : 100
if i want to move only those files dated 17 aug into another sub directory /home/sales/texas
how do i pipe the result of 'ls' command to a 'mv' command (1 Reply)
Discussion started by: zomboo
1 Replies
3. Linux
How can I configure it?
I have a swedish keyboard with swedish keyboard setting. Everything works perfectly (едц) except that button. What can be wrong?
/Richard
++
NOTE: It seems like the computer notices the input but that the button isn't assigned to anything (the keyboard-cursor stops).... (1 Reply)
Discussion started by: riwa
1 Replies
4. UNIX for Dummies Questions & Answers
Hi My friends
I have used this command to find files are modified within the past 24 hours
and then many files are shown but I want transfer all these files to special directory by using pipe .
can any one tell me what is the next step ? (11 Replies)
Discussion started by: bintaleb
11 Replies
5. UNIX for Dummies Questions & Answers
I am confused over piping. :confused:
A | B
Will A and B run at the same time? or must A finish running before B starts to run?
Suppose I want to do the following:
sqlplus ... | split -1000 - filename_
sqlplus will return 1million rows, I want write the output into files of 1000... (4 Replies)
Discussion started by: Leion
4 Replies
6. Shell Programming and Scripting
problem with piping one output to another.Would like to avoid the intermediate file creation.The piping does nt work on places where files have been created and goes in an endless loop.
sed -e "s/^\.\///g" $LINE1| sed -e "s/_\(\)/kkk\1/g" > $file1
tr -s '_' ' ' < $file1| \
sort -n -k... (1 Reply)
Discussion started by: w020637
1 Replies
7. Shell Programming and Scripting
Hi all,
I have an gawk script to get user's input, So I use
getline name < "-" (or getline name < "/dev/stdin") in my script
They both work fine when my script deals with files. But it is broken for pipes.
When I try "some command | my awk script", the variable name just gets an empty... (17 Replies)
Discussion started by: qiulang
17 Replies
8. Shell Programming and Scripting
Hi,
I'm trying to write a script that checks gvfs to see if a mount exists so I can run it from network-manager's status hooks. I thought I'd pipe the output of gvfs-mount -l to grep for the particular mounts I care about. When I do this in a bash script:
cmnd="gvfs-mount -l | grep -i... (4 Replies)
Discussion started by: kcstrom
4 Replies
9. Shell Programming and Scripting
Hello,
I try to concatenate a command to execute. Sadly it throws an error.
#!/bin/bash
cd /
cmd="find -name *.txt | awk '{ printf "FILE: "$1; system("less "$1);}' | egrep 'FILE:|$1'"
echo "1."
$($cmd)
echo "2."
$("$cmd")
echo "3."
`$cmd`
echo "4."
`"$cmd"`1.&3. 'find: paths must... (2 Replies)
Discussion started by: daWonderer
2 Replies
10. Shell Programming and Scripting
Hi!
I actually got it running, but I still would like to understand, why and how, since I am a beginner in bash scripting. I Need floating numbers and thus use bc in my bash script. Here it is:
#!/bin/bash
num1="10^-15" | bc -l #power function piped to bc - DOES NOT WORK
echo $num1... (4 Replies)
Discussion started by: McHale
4 Replies
LEARN ABOUT CENTOS
intel_panel_fitter
intel_panel_fitter(1) General Commands Manual intel_panel_fitter(1)
NAME
intel_panel_fitter - Change the panel fitter settings
SYNOPSIS
intel_panel_fitter [options]
DESCRIPTION
intel_panel_fitter is a tool that allows you to change the panel fitter settings, so you can change the size of the screen being displayed
on your monitor without changing the real pixel size of your desktop. The biggest use case for this tool is to work around overscan done by
TVs and some monitors in interlaced mode.
Options
-p [pipe]
pipe to be used (A, B or C, but C is only present on Ivy Bridge and newer).
-x [value]
final screen width size in pixels (needs -p option).
-y [value]
final screen height size in pixels (needs -p option).
-d disable panel fitter (needs -p option, ignores -x and -y options).
-l list current state of each pipe.
-h prints the help message.
EXAMPLES
intel_panel_fitter -l
will list the current status of each pipe, so you can decide what to do.
intel_panel_fitter -p A -x 1850 -y 1040
will change the pipe A size to 1850x1040 pixels.
intel_panel_fitter -p A -d
will disable the panel fitter for pipe A.
NOTES
In the future, there will be support for this feature inside the Linux Kernel.
Machines older than Ironlake are still not supported, but support may be possible to implement.
X Version 11 intel-gpu-tools 1.3 intel_panel_fitter(1)